📄 clsasm.cls
字号:
Function Mov_EAX_DWORD_Ptr_EDX_Add(i As Long) As Long
If i <= 255 Then
OPcode = OPcode + "8B42" + Int2Hex(i, 2)
Else
OPcode = OPcode + "8B82" + Int2Hex(i, 8)
End If
End Function
Function Mov_EAX_DWORD_Ptr_EDI_Add(i As Long) As Long
If i <= 255 Then
OPcode = OPcode + "8B47" + Int2Hex(i, 2)
Else
OPcode = OPcode + "8B87" + Int2Hex(i, 8)
End If
End Function
Function Mov_EAX_DWORD_Ptr_EBP_Add(i As Long) As Long
If i <= 255 Then
OPcode = OPcode + "8B45" + Int2Hex(i, 2)
Else
OPcode = OPcode + "8B85" + Int2Hex(i, 8)
End If
End Function
Function Mov_EAX_DWORD_Ptr_ESI_Add(i As Long) As Long
If i <= 255 Then
OPcode = OPcode + "8B46" + Int2Hex(i, 2)
Else
OPcode = OPcode + "8B86" + Int2Hex(i, 8)
End If
End Function
Function Mov_EBX_DWORD_Ptr_EAX() As Long
OPcode = OPcode + "8B18"
End Function
Function Mov_EBX_DWORD_Ptr_EBP() As Long
OPcode = OPcode + "8B5D00"
End Function
Function Mov_EBX_DWORD_Ptr_EBX() As Long
OPcode = OPcode + "8B1B"
End Function
Function Mov_EBX_DWORD_Ptr_ECX() As Long
OPcode = OPcode + "8B19"
End Function
Function Mov_EBX_DWORD_Ptr_EDX() As Long
OPcode = OPcode + "8B1A"
End Function
Function Mov_EBX_DWORD_Ptr_EDI() As Long
OPcode = OPcode + "8B1F"
End Function
Function Mov_EBX_DWORD_Ptr_ESP() As Long
OPcode = OPcode + "8B1C24"
End Function
Function Mov_EBX_DWORD_Ptr_ESI() As Long
OPcode = OPcode + "8B1E"
End Function
Function Mov_EDX_DWORD_Ptr_EAX() As Long
OPcode = OPcode + "8B10"
End Function
Function Mov_EDX_DWORD_Ptr_EBP() As Long
OPcode = OPcode + "8B5500"
End Function
Function Mov_EDX_DWORD_Ptr_EBX() As Long
OPcode = OPcode + "8B13"
End Function
Function Mov_EDX_DWORD_Ptr_ECX() As Long
OPcode = OPcode + "8B11"
End Function
Function Mov_EDX_DWORD_Ptr_EDX() As Long
OPcode = OPcode + "8B12"
End Function
Function Mov_EDX_DWORD_Ptr_EDI() As Long
OPcode = OPcode + "8B17"
End Function
Function Mov_EDX_DWORD_Ptr_ESI() As Long
OPcode = OPcode + "8B16"
End Function
Function Mov_EDX_DWORD_Ptr_ESP() As Long
OPcode = OPcode + "8B1424"
End Function
Function Mov_EAX_EBP() As Long
OPcode = OPcode + "8BC5"
End Function
Function Mov_EAX_EBX() As Long
OPcode = OPcode + "8BC3"
End Function
Function Mov_EAX_ECX() As Long
OPcode = OPcode + "8BC1"
End Function
Function Mov_EAX_EDI() As Long
OPcode = OPcode + "8BC7"
End Function
Function Mov_EAX_EDX() As Long
OPcode = OPcode + "8BC2"
End Function
Function Mov_EAX_ESI() As Long
OPcode = OPcode + "8BC6"
End Function
Function Mov_EAX_ESP() As Long
OPcode = OPcode + "8BC4"
End Function
Function Mov_EBX_EBP() As Long
OPcode = OPcode + "8BDD"
End Function
Function Mov_EBX_EAX() As Long
OPcode = OPcode + "8BD8"
End Function
Function Mov_EBX_ECX() As Long
OPcode = OPcode + "8BD9"
End Function
Function Mov_EBX_EDI() As Long
OPcode = OPcode + "8BDF"
End Function
Function Mov_EBX_EDX() As Long
OPcode = OPcode + "8BDA"
End Function
Function Mov_EBX_ESI() As Long
OPcode = OPcode + "8BDE"
End Function
Function Mov_EBX_ESP() As Long
OPcode = OPcode + "8BDC"
End Function
Function Mov_ECX_EBP() As Long
OPcode = OPcode + "8BCD"
End Function
Function Mov_ECX_EAX() As Long
OPcode = OPcode + "8BC8"
End Function
Function Mov_ECX_EBX() As Long
OPcode = OPcode + "8BCB"
End Function
Function Mov_ECX_EDI() As Long
OPcode = OPcode + "8BCF"
End Function
Function Mov_ECX_EDX() As Long
OPcode = OPcode + "8BCA"
End Function
Function Mov_ECX_ESI() As Long
OPcode = OPcode + "8BCE"
End Function
Function Mov_ECX_ESP() As Long
OPcode = OPcode + "8BCC"
End Function
Function Mov_EDX_EBP() As Long
OPcode = OPcode + "8BD5"
End Function
Function Mov_EDX_EBX() As Long
OPcode = OPcode + "8BD3"
End Function
Function Mov_EDX_ECX() As Long
OPcode = OPcode + "8BD1"
End Function
Function Mov_EDX_EDI() As Long
OPcode = OPcode + "8BD7"
End Function
Function Mov_EDX_EAX() As Long
OPcode = OPcode + "8BD0"
End Function
Function Mov_EDX_ESI() As Long
OPcode = OPcode + "8BD6"
End Function
Function Mov_EDX_ESP() As Long
OPcode = OPcode + "8BD4"
End Function
Function Mov_ESI_EBP() As Long
OPcode = OPcode + "8BF5"
End Function
Function Mov_ESI_EBX() As Long
OPcode = OPcode + "8BF3"
End Function
Function Mov_ESI_ECX() As Long
OPcode = OPcode + "8BF1"
End Function
Function Mov_ESI_EDI() As Long
OPcode = OPcode + "8BF7"
End Function
Function Mov_ESI_EAX() As Long
OPcode = OPcode + "8BF0"
End Function
Function Mov_ESI_EDX() As Long
OPcode = OPcode + "8BF2"
End Function
Function Mov_ESI_ESP() As Long
OPcode = OPcode + "8BF4"
End Function
Function Mov_ESP_EBP() As Long
OPcode = OPcode + "8BE5"
End Function
Function Mov_ESP_EBX() As Long
OPcode = OPcode + "8BE3"
End Function
Function Mov_ESP_ECX() As Long
OPcode = OPcode + "8BE1"
End Function
Function Mov_ESP_EDI() As Long
OPcode = OPcode + "8BE7"
End Function
Function Mov_ESP_EAX() As Long
OPcode = OPcode + "8BE0"
End Function
Function Mov_ESP_EDX() As Long
OPcode = OPcode + "8BE2"
End Function
Function Mov_ESP_ESI() As Long
OPcode = OPcode + "8BE6"
End Function
Function Mov_EDI_EBP() As Long
OPcode = OPcode + "8BFD"
End Function
Function Mov_EDI_EAX() As Long
OPcode = OPcode + "8BF8"
End Function
Function Mov_EDI_EBX() As Long
OPcode = OPcode + "8BFB"
End Function
Function Mov_EDI_ECX() As Long
OPcode = OPcode + "8BF9"
End Function
Function Mov_EDI_EDX() As Long
OPcode = OPcode + "8BFA"
End Function
Function Mov_EDI_ESI() As Long
OPcode = OPcode + "8BFE"
End Function
Function Mov_EDI_ESP() As Long
OPcode = OPcode + "8BFC"
End Function
Function Mov_EBP_EDI() As Long
OPcode = OPcode + "8BDF"
End Function
Function Mov_EBP_EAX() As Long
OPcode = OPcode + "8BE8"
End Function
Function Mov_EBP_EBX() As Long
OPcode = OPcode + "8BEB"
End Function
Function Mov_EBP_ECX() As Long
OPcode = OPcode + "8BE9"
End Function
Function Mov_EBP_EDX() As Long
OPcode = OPcode + "8BEA"
End Function
Function Mov_EBP_ESI() As Long
OPcode = OPcode + "8BEE"
End Function
Function Mov_EBP_ESP() As Long
OPcode = OPcode + "8BEC"
End Function
'Push
'+++++++++++++++++++++++++++++++++++
Function Push(i As Long) As Long
If i <= 255 Then
OPcode = OPcode + "6A" + Int2Hex(i, 2)
ElseIf i > 255 And i <= 65535 Then
OPcode = OPcode + "6668" + Int2Hex(i, 4)
ElseIf i > 65535 Then
OPcode = OPcode + "68" + Int2Hex(i, 8)
End If
End Function
Function Push_DWORD_Ptr(i As Long) As Long
OPcode = OPcode + "FF35" + Int2Hex(i, 8)
End Function
Function Push_EAX() As Long
OPcode = OPcode + "50"
End Function
Function Push_ECX() As Long
OPcode = OPcode + "51"
End Function
Function Push_EDX() As Long
OPcode = OPcode + "52"
End Function
Function Push_EBX() As Long
OPcode = OPcode + "53"
End Function
Function Push_ESP() As Long
OPcode = OPcode + "54"
End Function
Function Push_EBP() As Long
OPcode = OPcode + "55"
End Function
Function Push_ESI() As Long
OPcode = OPcode + "56"
End Function
Function Push_EDI() As Long
OPcode = OPcode + "57"
End Function
'LEA
Function Lea_EAX_DWORD_EAX_Add(i As Long) As Long
If i <= 255 Then
OPcode = OPcode + "8D40" + Int2Hex(i, 2)
Else
OPcode = OPcode + "8D80" + Int2Hex(i, 8)
End If
End Function
Function Lea_EAX_DWORD_EBX_Add(i As Long) As Long
If i <= 255 Then
OPcode = OPcode + "8D43" + Int2Hex(i, 2)
Else
OPcode = OPcode + "8D83" + Int2Hex(i, 8)
End If
End Function
Function Lea_EAX_DWORD_ECX_Add(i As Long) As Long
If i <= 255 Then
OPcode = OPcode + "8D41" + Int2Hex(i, 2)
Else
OPcode = OPcode + "8D81" + Int2Hex(i, 8)
End If
End Function
Function Lea_EAX_DWORD_EDX_Add(i As Long) As Long
If i <= 255 Then
OPcode = OPcode + "8D42" + Int2Hex(i, 2)
Else
OPcode = OPcode + "8D82" + Int2Hex(i, 8)
End If
End Function
Function Lea_EAX_DWORD_ESI_Add(i As Long) As Long
If i <= 255 Then
OPcode = OPcode + "8D46" + Int2Hex(i, 2)
Else
OPcode = OPcode + "8D86" + Int2Hex(i, 8)
End If
End Function
Function Lea_EAX_DWORD_ESP_Add(i As Long) As Long
If i <= 255 Then
OPcode = OPcode + "8D40" + Int2Hex(i, 2)
Else
OPcode = OPcode + "8D80" + Int2Hex(i, 8)
End If
End Function
Function Lea_EAX_DWORD_EBP_Add(i As Long) As Long
If i <= 255 Then
OPcode = OPcode + "8D4424" + Int2Hex(i, 2)
Else
OPcode = OPcode + "8D8424" + Int2Hex(i, 8)
End If
End Function
Function Lea_EAX_DWORD_EDI_Add(i As Long) As Long
If i <= 255 Then
OPcode = OPcode + "8D47" + Int2Hex(i, 2)
Else
OPcode = OPcode + "8D87" + Int2Hex(i, 8)
End If
End Function
'POP
Function Pop_EAX() As Long
OPcode = OPcode + "58"
End Function
Function Pop_EBX() As Long
OPcode = OPcode + "5B"
End Function
Function Pop_ECX() As Long
OPcode = OPcode + "59"
End Function
Function Pop_EDX() As Long
OPcode = OPcode + "5A"
End Function
Function Pop_ESI() As Long
OPcode = OPcode + "5E"
End Function
Function Pop_ESP() As Long
OPcode = OPcode + "5C"
End Function
Function Pop_EDI() As Long
OPcode = OPcode + "5F"
End Function
Function Pop_EBP() As Long
OPcode = OPcode + "5D"
End Function
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -