joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401631
Capabilities:
Query service status

Disassembly:
jmp 0x411cc0
mov eax, dword [ecx]
sub esp, 0x1c
test eax, eax
je 0x411ce4
mov eax, dword [ecx + 4]
test eax, eax
je 0x411ce4
lea ecx, [esp]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov eax, dword [esp + 4]
add esp, 0x1c
ret
xor eax, eax
add esp, 0x1c
ret

Function at 0x40164f
Capabilities:
Read file via mapping

Disassembly:
jmp 0x415800
sub esp, 0x114
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
mov dword [esp + 8], 0
call fcn.0040187f
mov edi, dword [esp + 0x120]
mov dword [esi + 0x108], 0
push edi
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi], eax
jne 0x415856
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, esi
pop edi
pop esi
add esp, 0x114
ret 4
push 0x103
lea eax, [esi + 4]
push edi
push eax
mov dword [esi + 0x108], 4
call dword [sym.imp.MSVCRT.dll_strncpy]
mov ecx, dword [esi]
add esp, 0xc
push 0
push 0
push 0
push 6
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0x110], eax
jne 0x415897
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
add esp, 0x114
ret 4

Function at 0x4016c7
Capabilities:
Write file on windows

Disassembly:
jmp 0x40caf0
sub esp, 0x20c
lea eax, [esp + 4]
push esi
push edi
push 0x104
mov edi, ecx
push eax
call fcn.0041a360
lea ecx, [esp + 0x14]
push str.wmadd.dat
push ecx
lea edx, [esp + 0x120]
push 0x425660
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
lea eax, [esp + 0x110]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40cb5b
pop edi
xor eax, eax
pop esi
add esp, 0x20c
ret
lea ecx, [esp + 8]
push 0
push ecx
add edi, 0x110
push 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
add esp, 0x20c
ret
Function at 0x4016ea
Capabilities:
Create process on windows
Create process suspended

Disassembly:
jmp 0x4052e0
sub esp, 0x25c
push ebx
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x60]
mov dword [esp + 0x10], eax
push 0x104
mov dword [esp + 0x18], eax
push ecx
mov dword [esp + 0x20], eax
mov byte [esp + 0x68], al
call fcn.0041a360
mov eax, dword [esp + 0x274]
add esp, 8
lea edx, [esp + 0x164]
mov ecx, 0x42a830
push edx
push eax
call fcn.0040173a
lea edi, [esp + 0x164]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x60]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x64]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 0x270]
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x4053b2
mov edx, dword [esp]
mov dword [ecx], edx
mov edx, dword [esp + 4]
mov dword [ecx + 4], edx
mov edx, dword [esp + 8]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0xc]
mov dword [ecx + 0xc], edx
add esp, 0x25c
ret 8

Function at 0x401767
Capabilities:
Enumerate processes

Disassembly:
jmp 0x4062e0
sub esp, 0x230
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 4], esi
jne 0x406305
xor eax, eax
pop esi
add esp, 0x230
ret
lea eax, [esp + 8]
mov dword [esp + 8], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x40632d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
add esp, 0x230
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
push ecx
push 0
push 0x1f0fff
call ebx
mov esi, eax
test esi, esi
je 0x406360
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
call ebp
push esi
call edi
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x406342
mov ecx, dword [esp + 0x10]
push ecx
call edi
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0x230
ret
Function at 0x4017c6
Capabilities:
Terminate process

Disassembly:
jmp 0x40db90
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x3d0]
cmp eax, edi
je 0x40dba9
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esi + 0x3c8]
cmp eax, edi
je 0x40dbc2
push eax
call fcn.0041b380
add esp, 4
mov dword [esi + 0x3c8], edi
mov eax, dword [esi + 0x3cc]
cmp eax, edi
je 0x40dbdb
push eax
call fcn.0041b380
add esp, 4
mov dword [esi + 0x3cc], edi
xor eax, eax
lea ecx, [esi + 0x3e0]
mov dword [esi + 0x3d0], eax
mov dword [esi + 0x3d4], eax
mov dword [esi + 0x3d8], eax
mov dword [esi + 0x3dc], eax
mov dword [esi + 0x2d8], edi
mov dword [esi + 0x2dc], edi
mov dword [esi + 0x3a4], edi
call fcn.0040158c
pop edi
pop esi
ret
Function at 0x407558
Capabilities:
Copy file
Delete file

Disassembly:
jmp 0x407550
sub esp, 0x410
push ebx
push ebp
push esi
mov esi, ecx
push 0
call dword [sym.imp.VMProtectSDK32.dll_VMProtectBeginMutation]
lea eax, [esp + 0x318]
push 0x104
push eax
mov ecx, esi
call fcn.00401276
lea ecx, [esp + 0x110]
push 0x104
push ecx
call fcn.0041a360
mov ebx, dword [sym.imp.MSVCRT.dll__snprintf]
lea edx, [esp + 0x118]
push str.ZBinwinlink.dll
push edx
push 0x425660
lea eax, [esp + 0x228]
push 0x104
push eax
call ebx
lea ecx, [esp + 0x334]
push str.winmm.dll
push ecx
push 0x425660
lea edx, [esp + 0x34]
push 0x104
push edx
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x30
lea eax, [esp + 0xc]
push eax
call ebp
lea ecx, [esp + 0xc]
push 1
lea edx, [esp + 0x218]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
call fcn.0041b3e0
test eax, eax
je 0x407646
push edi
mov edi, str.C:WindowsSysWOW64_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x114]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x104
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call fcn.0041a3a0
mov dl, byte [esp + 0x18]
add esp, 8
mov byte [esp + 0x114], dl
pop edi
jmp 0x40765b
lea eax, [esp + 0x110]
push 0x104
push eax
call fcn.0041a3a0
add esp, 8
lea ecx, [esp + 0x110]
push str.winmm.dll
push ecx
push 0x425660
lea edx, [esp + 0x220]
push 0x104
push edx
call ebx
lea eax, [esp + 0x32c]
push str.winmn.dll
push eax
push 0x425660
lea ecx, [esp + 0x2c]
push 0x104
push ecx
call ebx
add esp, 0x28
lea edx, [esp + 0xc]
push edx
call ebp
lea eax, [esp + 0xc]
push 1
lea ecx, [esp + 0x218]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
call dword [sym.imp.VMProtectSDK32.dll_VMProtectEnd]
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x410
ret
Function at 0x40f925
Capabilities:
Connect to http server
Create http request

Disassembly:
jmp 0x40f910
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41f0d8
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
mov eax, dword [esp + 0x18]
push 0
push 0x4269c8
push 0x4269c8
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
mov dword [esi + 0xea64], eax
jne 0x40f97c
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x14]
mov dword [esi + 0xea84], eax
mov dword [esp + 0xc], 0xffffffff
call sub.MFC42u.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0x14
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push 0
push 0x4400000
push 3
push 0x4269c8
push 0x4269c8
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
mov dword [esi + 0xea68], eax
jne 0x40f9e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xea84], eax
mov eax, dword [esi + 0xea64]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0xffffffff
call sub.MFC42u.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0x14
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 4]
mov eax, 1
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0x14

Function at 0x410500
Capabilities:
Read data from internet
Receive data

Disassembly:
jmp 0x410500
push esi
mov esi, ecx
mov eax, dword [esi + 0xea6c]
test eax, eax
jne 0x41051f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xea84], eax
xor eax, eax
pop esi
ret 8
mov edx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
mov ecx, edx
push ebp
mov ebp, ecx
push edi
xor eax, eax
mov edi, ebx
push 0x42b694
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
push edx
and ecx, 3
push ebx
rep stosb byte es:[edi], al
mov eax, dword [esi + 0xea6c]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
pop edi
pop ebp
test eax, eax
pop ebx
jne 0x41056f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xea84], eax
mov dword [0x42b694], 0
mov eax, dword [0x42b694]
pop esi
ret 8

Function at 0x413530
Capabilities:
Find taskbar

Disassembly:
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x41357e
mov esi, dword [sym.imp.USER32.dll_FindWindowExW]
push ebx
push str.TrayNotifyWnd
push ebx
push eax
call esi
mov edi, eax
test edi, edi
je 0x41357e
push ebx
push str.SysPager
push ebx
push edi
call esi
push ebx
push str.ToolbarWindow32
test eax, eax
push ebx
je 0x413577
push eax
call esi
pop edi
pop esi
pop ebx
ret
push edi
call esi
pop edi
pop esi
pop ebx
ret
pop edi
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x416750
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x21c
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call dword [sym.imp.VMProtectSDK32.dll_VMProtectBeginVirtualization]
mov ebx, dword [esp + 0x230]
test ebx, ebx
je 0x4168c2
mov edi, dword [esp + 0x234]
test edi, edi
je 0x4168c2
mov ebp, dword [esp + 0x238]
test ebp, ebp
je 0x4168c2
push 0x825da9
lea eax, [esp + 0x14]
push 0x12
push eax
mov ecx, esi
mov byte [esp + 0x1c], 0xcb
mov byte [esp + 0x1d], 0x32
mov byte [esp + 0x1e], 0xf6
mov byte [esp + 0x1f], 0x69
mov byte [esp + 0x20], 0xcd
mov byte [esp + 0x21], 0x60
mov byte [esp + 0x22], 0xa7
mov byte [esp + 0x23], 0x73
mov byte [esp + 0x24], 0x8f
mov byte [esp + 0x25], 0x3f
mov byte [esp + 0x26], 0xed
mov byte [esp + 0x27], 0x74
mov byte [esp + 0x28], 0xd9
mov byte [esp + 0x29], 0x2a
mov byte [esp + 0x2a], 0xe6
mov byte [esp + 0x2b], 0x3d
mov byte [esp + 0x2c], 0x8c
mov byte [esp + 0x2d], 0x2e
mov byte [esp + 0x2e], 0
call fcn.004172e0
push edi
lea ecx, [esp + 0x14]
push ebx
lea edx, [esp + 0x130]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [esp + 0x24]
lea ecx, [esp + 0x128]
push eax
push ecx
push 0xc
mov ecx, esi
call fcn.00418150
mov esi, eax
test esi, esi
jne 0x4168ad
lea edx, [esp + 0x24]
push 0x26
push edx
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
lea ecx, [esp + 0x2c]
sub esi, ecx
add esp, 8
sub esi, 8
test eax, eax
je 0x41687d
test esi, esi
jle 0x41687d
lea edx, [esp + 0x2c]
push esi
push edx
push ebp
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov byte [esi + ebp], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret 0xc
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret 0xc
call dword [sym.imp.VMProtectSDK32.dll_VMProtectEnd]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret 0xc
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x21c
ret 0xc
Function at 0x4168e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x228
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call dword [sym.imp.VMProtectSDK32.dll_VMProtectBeginVirtualization]
mov ebp, dword [esp + 0x23c]
test ebp, ebp
je 0x416a15
mov ebx, dword [esp + 0x240]
test ebx, ebx
je 0x416a15
mov edi, dword [esp + 0x244]
test edi, edi
je 0x416a15
mov al, 0x75
mov cl, 0x72
mov byte [esp + 0x12], al
mov byte [esp + 0x1b], al
mov al, 0x4e
push 0x10139cc
mov byte [esp + 0x21], al
mov byte [esp + 0x29], al
lea eax, [esp + 0x14]
mov dl, 0x24
mov byte [esp + 0x1b], cl
mov byte [esp + 0x2f], cl
push 0x1c
push eax
mov ecx, esi
mov byte [esp + 0x1c], 0xae
mov byte [esp + 0x1d], 0x56
mov byte [esp + 0x1f], 0x68
mov byte [esp + 0x20], 0xa8
mov byte [esp + 0x21], 4
mov byte [esp + 0x22], dl
mov byte [esp + 0x24], 0xea
mov byte [esp + 0x25], 0x5b
mov byte [esp + 0x26], 0x6e
mov byte [esp + 0x28], 0xbc
mov byte [esp + 0x2a], 0x65
mov byte [esp + 0x2b], 0x3c
mov byte [esp + 0x2c], 0xe9
mov byte [esp + 0x2d], 0x4a
mov byte [esp + 0x2e], 0x27
mov byte [esp + 0x2f], 0x6f
mov byte [esp + 0x30], 0xa9
mov byte [esp + 0x32], 0x71
mov byte [esp + 0x33], 0x76
mov byte [esp + 0x34], 0xa8
mov byte [esp + 0x35], 4
mov byte [esp + 0x36], dl
mov byte [esp + 0x38], 0
call fcn.004172e0
push edi
push ebx
lea ecx, [esp + 0x18]
push ebp
lea edx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
lea eax, [esp + 0x134]
lea ecx, [esp + 0x30]
push eax
push ecx
push 0xd
mov ecx, esi
call fcn.00418150
mov esi, eax
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
call dword [sym.imp.VMProtectSDK32.dll_VMProtectEnd]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x228
ret 0xc
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x228
ret 0xc
Function at 0x416a30
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x234
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call dword [sym.imp.VMProtectSDK32.dll_VMProtectBeginVirtualization]
mov eax, dword [esp + 0x248]
test eax, eax
je 0x416bbd
mov ebp, dword [esp + 0x24c]
test ebp, ebp
je 0x416bbd
mov ebx, dword [esp + 0x250]
test ebx, ebx
je 0x416bbd
mov edi, dword [esp + 0x254]
test edi, edi
je 0x416bbd
mov al, 0x20
mov cl, 0x3e
mov byte [esp + 0x20], al
mov byte [esp + 0x21], al
mov al, 0x64
push 0x3ba5305
mov byte [esp + 0x27], al
mov byte [esp + 0x28], al
mov al, 0xdf
mov dl, 0x23
mov byte [esp + 0x2a], al
mov byte [esp + 0x32], al
lea eax, [esp + 0x14]
mov byte [esp + 0x23], cl
mov byte [esp + 0x29], cl
push 0x29
push eax
mov ecx, esi
mov byte [esp + 0x1c], 0x67
mov byte [esp + 0x1d], 0x3c
mov byte [esp + 0x1e], 0xce
mov byte [esp + 0x1f], 0x6a
mov byte [esp + 0x20], 0x61
mov byte [esp + 0x21], 0x6e
mov byte [esp + 0x22], 0x9f
mov byte [esp + 0x23], 0x70
mov byte [esp + 0x24], dl
mov byte [esp + 0x25], 0x31
mov byte [esp + 0x26], 0xd5
mov byte [esp + 0x27], 0x77
mov byte [esp + 0x28], 0x75
mov byte [esp + 0x29], 0x24
mov byte [esp + 0x2a], 0xde
mov byte [esp + 0x2e], 0x9c
mov byte [esp + 0x33], 0x6a
mov byte [esp + 0x34], 0x61
mov byte [esp + 0x35], 0x6e
mov byte [esp + 0x36], 0x9f
mov byte [esp + 0x37], 0x70
mov byte [esp + 0x38], dl
mov byte [esp + 0x39], 0x3d
mov byte [esp + 0x3b], 0x74
mov byte [esp + 0x3c], 0x62
mov byte [esp + 0x3d], 0x32
mov byte [esp + 0x3e], 0xd7
mov byte [esp + 0x3f], 0x66
mov byte [esp + 0x40], 0x6c
mov byte [esp + 0x41], 0x37
mov byte [esp + 0x42], 0x87
mov byte [esp + 0x43], 0x26
mov byte [esp + 0x44], 0x76
mov byte [esp + 0x45], 0
call fcn.004172e0
mov ecx, dword [esp + 0x248]
push edi
push ebx
push ebp
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
lea ecx, [esp + 0x140]
lea edx, [esp + 0x3c]
push ecx
push edx
push 0xe
mov ecx, esi
call fcn.00418150
mov esi, eax
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
call dword [sym.imp.VMProtectSDK32.dll_VMProtectEnd]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x234
ret 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x234
ret 0x10

Function at 0x416e70
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x47c
push esi
push edi
mov esi, ecx
push 0
call dword [sym.imp.VMProtectSDK32.dll_VMProtectBeginVirtualization]
add esi, 0x17fc
mov ecx, 0x11f
lea edi, [esp + 8]
lea eax, [esp + 8]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x46c]
mov ecx, 0x11f
mov esi, dword [eax]
add eax, 4
xor esi, edx
dec ecx
mov dword [eax - 4], esi
jne 0x416ea3
lea edi, [esp + 0x58]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x488]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.VMProtectSDK32.dll_VMProtectEnd]
pop edi
xor eax, eax
pop esi
add esp, 0x47c
ret 4
Function at 0x416ef0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x47c
push esi
push edi
mov esi, ecx
push 0
call dword [sym.imp.VMProtectSDK32.dll_VMProtectBeginVirtualization]
add esi, 0x17fc
mov ecx, 0x11f
lea edi, [esp + 8]
lea eax, [esp + 8]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x46c]
mov ecx, 0x11f
mov esi, dword [eax]
add eax, 4
xor esi, edx
dec ecx
mov dword [eax - 4], esi
jne 0x416f23
lea edi, [esp + 0x15c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x488]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.VMProtectSDK32.dll_VMProtectEnd]
pop edi
xor eax, eax
pop esi
add esp, 0x47c
ret 4

Function at 0x416f70
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x47c
push esi
push edi
mov esi, ecx
push 0
call dword [sym.imp.VMProtectSDK32.dll_VMProtectBeginVirtualization]
add esi, 0x17fc
mov ecx, 0x11f
lea edi, [esp + 8]
lea eax, [esp + 8]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x46c]
mov ecx, 0x11f
mov esi, dword [eax]
add eax, 4
xor esi, edx
dec ecx
mov dword [eax - 4], esi
jne 0x416fa3
lea edi, [esp + 0x260]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x488]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.VMProtectSDK32.dll_VMProtectEnd]
pop edi
xor eax, eax
pop esi
add esp, 0x47c
ret 4

Function at 0x417390
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esi
mov ebp, ecx
push 0
call dword [sym.imp.VMProtectSDK32.dll_VMProtectBeginVirtualization]
mov esi, dword [esp + 0x10]
or eax, 0xffffffff
xor ecx, ecx
test esi, esi
jle 0x4173d1
push ebx
push edi
mov edi, dword [esp + 0x14]
xor edx, edx
mov ebx, eax
mov dl, byte [ecx + edi]
and ebx, 0xff
xor edx, ebx
shr eax, 4
mov edx, dword [edx*4 + 0x4262d0]
xor eax, edx
inc ecx
cmp ecx, esi
jl 0x4173af
pop edi
pop ebx
mov esi, dword [ebp + 0x3900]
not eax
xor esi, eax
call dword [sym.imp.VMProtectSDK32.dll_VMProtectEnd]
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x4175b0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebx
push ebp
push esi
push edi
push 0
call dword [sym.imp.VMProtectSDK32.dll_VMProtectBeginUltra]
mov al, byte [esp + 0x14]
mov ebx, dword [esp + 0x24]
mov cl, byte [esp + 0x18]
xor al, 0x82
mov byte [ebx + 0xc], al
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
xor cl, 0x21
mov edx, eax
mov byte [ebx + 0xd], cl
xor edx, 0x82765a92
mov ecx, eax
mov dword [ebx + 0xe], edx
mov edx, ecx
lea edi, [ebx + 0x12]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
lea esi, [eax + 0xe]
call edi
xor eax, 0x82765a92
mov dword [ebx + 4], eax
call edi
xor eax, 0x82765a92
mov byte [esp + 0x24], 4
mov dword [ebx + 8], eax
mov byte [esp + 0x25], 0x20
mov byte [esp + 0x26], 0x24
mov byte [esp + 0x14], 2
mov byte [esp + 0x15], 0x40
mov byte [esp + 0x16], 0x42
call edi
xor eax, 0x9f16cd15
xor edx, edx
mov ecx, 3
div ecx
mov ebp, edx
call edi
xor eax, 0x9f16cd1
xor edx, edx
mov ecx, 3
div ecx
mov al, byte [esp + ebp + 0x24]
mov cl, byte [ebx + 7]
and cl, 0xbd
mov edi, edx
mov dl, byte [ebx + 0xb]
and dl, 0xdb
or al, dl
mov dl, byte [esp + edi + 0x14]
or dl, cl
mov cl, byte [ebx + 0xc]
mov byte [ebx + 0xb], al
mov byte [ebx + 7], dl
mov al, byte [ebx + ebp + 8]
mov dl, byte [ebx + 0xd]
xor cl, al
or eax, 0xffffffff
mov byte [ebx + 0xc], cl
mov cl, byte [edi + ebx + 4]
xor dl, cl
xor edi, edi
test esi, esi
mov byte [ebx + 0xd], dl
jle 0x4176b8
xor edx, edx
mov ecx, eax
mov dl, byte [edi + ebx + 4]
and ecx, 0xff
xor edx, ecx
shr eax, 4
mov edx, dword [edx*4 + 0x4262d0]
xor eax, edx
inc edi
cmp edi, esi
jl 0x417697
not eax
mov dword [ebx], eax
mov cl, al
add esi, 4
mov eax, 1
xor cl, 0x5a
cmp esi, eax
jle 0x4176da
mov dl, byte [eax + ebx]
xor dl, cl
mov byte [eax + ebx], dl
inc eax
cmp eax, esi
jl 0x4176cd
xor byte [ebx], 0x83
call dword [sym.imp.VMProtectSDK32.dll_VMProtectEnd]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 0x14