joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40af90
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 4]
sub esp, 0x10
push esi
push edi
mov esi, ecx
mov ecx, dword [esp + 0x20]
push eax
push ecx
push edx
mov ecx, esi
call fcn.0040adf0
push 0x42d15c
push 0x42d158
push 0x42d14c
push 0x42d140
call fcn.004051a0
mov ecx, eax
call fcn.00405120
push eax
call dword [sym.imp.kernel32.dll_lstrcmpiA]
test eax, eax
jne 0x40afe8
mov dword [esi + 0xc], 0x320
mov dword [esi + 0x10], 0x258
jmp 0x40aff6
mov dword [esi + 0xc], 0x280
mov dword [esi + 0x10], 0x1e0
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
push ebx
push ebp
dec eax
push eax
dec ecx
push ecx
push 0
push 0
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.user32.dll_SetRect]
mov edi, dword [esi + 4]
xor eax, eax
test edi, edi
setne al
lea ecx, [esp + 0x10]
push eax
push 0x90cb0000
push ecx
call dword [sym.imp.user32.dll_AdjustWindowRect]
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov ebx, dword [sym.imp.user32.dll_GetDesktopWindow]
sub edx, ebp
inc edx
sub eax, edi
inc eax
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], eax
call ebx
push eax
call dword [sym.imp.user32.dll_GetDC]
mov ebp, dword [sym.imp.gdi32.dll_GetDeviceCaps]
mov edi, eax
push 8
push edi
call ebp
sub eax, dword [esi + 0x14]
cdq
sub eax, edx
push 0xa
sar eax, 1
push edi
mov dword [esi + 0x1c], eax
call ebp
sub eax, dword [esi + 0x18]
cdq
sub eax, edx
sar eax, 1
push edi
mov dword [esi + 0x20], eax
call ebx
push eax
call dword [sym.imp.user32.dll_ReleaseDC]
push 0x42c33a
push 0x42c334
push 0x42c328
mov byte [esi + 9], 0
mov byte [esi + 0xa], 1
call fcn.004051a0
mov ecx, eax
call fcn.00405120
cmp byte [eax], 0
pop ebp
pop ebx
push 0xff
lea edi, [esi + 0x2d]
je 0x40b0be
push eax
jmp 0x40b0c3
push 0x42c30c
push edi
call dword [sym.imp.kernel32.dll_lstrcpynA]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 4]
mov eax, dword [esi + 0x18]
push 0
push ecx
mov ecx, dword [esi + 0x14]
push edx
mov edx, dword [esi + 0x20]
push 0
push eax
mov eax, dword [esi + 0x1c]
push ecx
push edx
push eax
push 0x90cb0000
push edi
push 0x42d11c
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx]
mov edi, eax
xor eax, eax
mov al, byte [esi + 9]
push eax
mov eax, dword [esi + 0x10]
push eax
mov eax, dword [esi + 0xc]
push eax
push edi
call dword [edx + 0x10]
mov ecx, dword [esp + 0x24]
push ecx
push edi
call dword [sym.imp.user32.dll_ShowWindow]
push edi
call dword [sym.imp.user32.dll_UpdateWindow]
push edi
call dword [sym.imp.user32.dll_DrawMenuBar]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx]
push eax
mov eax, dword [esi + 0xc]
push eax
call dword [edx + 0xc]
push 0
push edi
mov byte [esi + 8], al
mov dword [esi], edi
call sub.imm32.dll_ImmAssociateContext
pop edi
mov dword [esi + 0x130], eax
pop esi
add esp, 0x10
ret 0xc
Function at 0x4101c0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
mov esi, ecx
jge 0x4101db
mov eax, 0x20825
sub eax, edi
mov eax, dword [esi + eax*4]
pop edi
pop esi
ret 4
cmp edi, 1
jne 0x41022f
push ebx
call fcn.0040b5a0
mov ecx, eax
call fcn.00417bb0
mov ebx, eax
call dword [sym.imp.user32.dll_GetFocus]
cmp ebx, eax
pop ebx
jne 0x41021b
push 0x11
call dword [sym.imp.user32.dll_GetAsyncKeyState]
test ax, ax
jge 0x41021b
mov eax, edi
mov dword [esi + 0x82098], eax
mov eax, dword [esi + edi*4 + 0x82094]
pop edi
pop esi
ret 4
xor eax, eax
mov dword [esi + 0x82098], eax
mov eax, dword [esi + edi*4 + 0x82094]
pop edi
pop esi
ret 4
cmp edi, 6
jne 0x410258
call fcn.0040b5a0
mov ecx, eax
call fcn.0040b450
neg al
sbb eax, eax
neg eax
mov dword [esi + 0x820ac], eax
mov eax, dword [esi + edi*4 + 0x82094]
pop edi
pop esi
ret 4
cmp edi, 0xb
jne 0x410275
call fcn.0040b5a0
mov ecx, eax
call fcn.0040b160
neg al
sbb eax, eax
neg eax
mov dword [esi + 0x820c0], eax
mov eax, dword [esi + edi*4 + 0x82094]
pop edi
pop esi
ret 4
Function at 0x419cb0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
je 0x419cd3
mov edx, dword [esp + 8]
push 0
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push ecx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x419cd9
or eax, 0xffffffff
ret 8
mov eax, dword [esp + 8]
ret 8
Function at 0x41f790
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push ebp
push esi
push 0x72b5b8
push 0x104
xor bl, bl
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov esi, dword [sym.imp.kernel32.dll_lstrcatA]
push 0x42f3e4
push 0x72b5b8
call esi
mov eax, dword [esp + 0x14]
push eax
push 0x72b5b8
call esi
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x72b5b8
call fcn.00407fb0
mov ecx, eax
call fcn.004082e0
mov ebp, eax
test ebp, ebp
je 0x41f832
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0xc], ecx
je 0x41f80d
push 0x30
push 0x42e880
push 0x42f3ec
call fcn.0040b5a0
mov ecx, eax
call fcn.00417bb0
push eax
call dword [sym.imp.user32.dll_MessageBoxA]
jmp 0x41f825
mov edx, ecx
push edi
mov edi, dword [esp + 0x1c]
shr ecx, 2
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov bl, 1
pop edi
push ebp
call fcn.00407fb0
mov ecx, eax
call fcn.00407ec0
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret 0xc

Function at 0x41f840
Capabilities:
Get common file path

Disassembly:
push esi
push 0x72b5b8
push 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov esi, dword [sym.imp.kernel32.dll_lstrcatA]
push 0x42f3e4
push 0x72b5b8
call esi
mov eax, dword [esp + 8]
push eax
push 0x72b5b8
call esi
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
push edx
push 0x72b5b8
call fcn.00407fb0
mov ecx, eax
call fcn.00407ed0
mov al, 1
pop esi
ret 0xc
Function at 0x420070
Capabilities:
Check mutex on windows
Set current directory

Disassembly:
sub esp, 0x108
mov eax, dword [0x467c30]
xor eax, dword [esp + 0x108]
push 0x42f550
push 1
push 0
mov dword [esp + 0x110], eax
call dword [sym.imp.kernel32.dll_CreateMutexA]
test eax, eax
mov dword [0x72b7cc], eax
jne 0x4200b8
push eax
push 0x42f548
push 0x42f500
push eax
call dword [sym.imp.user32.dll_MessageBoxA]
jmp 0x42019f
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4200ea
mov eax, dword [0x72b7cc]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0
push 0x42f548
push 0x42f458
push 0
call dword [sym.imp.user32.dll_MessageBoxA]
jmp 0x42019f
push esi
mov esi, dword [esp + 0x110]
push 0x104
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
lea edx, [esp + 4]
push edx
call dword [sym.imp.kernel32.dll_lstrlenA]
test eax, eax
jbe 0x42012f
mov cl, 0x5c
cmp byte [esp + eax + 4], cl
je 0x42011f
dec eax
jne 0x420114
jmp 0x42012f
mov byte [esp + eax + 5], 0
lea eax, [esp + 4]
push eax
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
push 0
push 0x21
push 0x283
call dword [sym.imp.user32.dll_GetDesktopWindow]
push eax
call sub.imm32.dll_ImmGetDefaultIMEWnd
push eax
call dword [sym.imp.user32.dll_SendMessageA]
push esi
call fcn.004020b0
mov ecx, eax
call fcn.00401df0
mov ecx, dword [esp + 0x11c]
push ecx
call fcn.004020b0
mov ecx, eax
call fcn.00402010
push esi
call fcn.004020b0
mov ecx, eax
call fcn.00401f10
call fcn.004020b0
mov ecx, eax
call fcn.00402040
call fcn.004020b0
mov ecx, eax
call fcn.00401f30
mov edx, dword [0x72b7cc]
push edx
call dword [sym.imp.kernel32.dll_CloseHandle]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, dword [esp + 0x108]
xor eax, eax
call fcn.004211fa
add esp, 0x108
ret 0x10

Function at 0x4220fb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x422118
call fcn.00425bd7
mov dword [eax], 0x16
xor eax, eax
jmp 0x422182
push esi
push 0x88
push 1
call fcn.00425c5c
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x42216d
push esi
call fcn.004237e3
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x42214b
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x422057
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
jne 0x422181
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00422dfb
test ebx, ebx
pop ecx
je 0x42217f
push ebx
call fcn.00425be9
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4221cf
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x42f700
call fcn.00422c4c
mov edi, 0x94
mov eax, edi
call fcn.00421fb0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.kernel32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x72b7fc], ecx
mov eax, dword [esi + 4]
mov dword [0x72b808], eax
mov edx, dword [esi + 8]
mov dword [0x72b80c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x72b800], esi
cmp ecx, 2
je 0x42222f
or esi, 0x8000
mov dword [0x72b800], esi
shl eax, 8
add eax, edx
mov dword [0x72b804], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.kernel32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x42226a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42226a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x422282
cmp eax, 0x20b
je 0x42226f
mov dword [ebp - 0x1c], esi
jmp 0x422296
cmp dword [ecx + 0x84], 0xe
jbe 0x42226a
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x422290
cmp dword [ecx + 0x74], 0xe
jbe 0x42226a
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004265c7
pop ecx
test eax, eax
jne 0x4222aa
push 0x1c
call fcn.004221ab
pop ecx
call fcn.004239d2
test eax, eax
jne 0x4222bb
push 0x10
call fcn.004221ab
pop ecx
call fcn.00426525
mov dword [ebp - 4], esi
call fcn.00426327
test eax, eax
jge 0x4222d4
push 0x1b
call fcn.00422186
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x72cfd0], eax
call fcn.00426205
mov dword [0x72b7e8], eax
call fcn.00426163
test eax, eax
jge 0x4222fa
push 8
call fcn.00422186
pop ecx
call fcn.00425f30
test eax, eax
jge 0x42230b
push 9
call fcn.00422186
pop ecx
call fcn.00422a5e
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x42231e
push eax
call fcn.00422186
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
call fcn.00425ec7
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x42233f
movzx eax, word [ebp - 0x34]
jmp 0x422342
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00420070
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x422360
push edi
call fcn.00422b96
call fcn.00422bb8
jmp 0x422392
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00422c87
ret
Function at 0x422ac3
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.00422dca
xor esi, esi
inc esi
cmp dword [0x72b83c], esi
pop ecx
jne 0x422aeb
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x72b838], esi
mov byte [0x72b834], al
jne 0x422b51
mov ecx, dword [0x72cfc8]
test ecx, ecx
je 0x422b32
mov eax, dword [0x72cfc4]
sub eax, 4
cmp eax, ecx
jmp 0x422b2b
mov eax, dword [eax]
test eax, eax
je 0x422b1d
call eax
mov eax, dword [0x72cfc4]
sub eax, 4
cmp eax, dword [0x72cfc8]
mov dword [0x72cfc4], eax
jae 0x422b15
mov eax, 0x434024
mov esi, 0x43402c
cmp eax, esi
mov edi, eax
jae 0x422b51
mov eax, dword [edi]
test eax, eax
je 0x422b4a
call eax
add edi, 4
cmp edi, esi
jb 0x422b42
mov eax, 0x434030
mov esi, 0x434038
cmp eax, esi
mov edi, eax
jae 0x422b70
mov eax, dword [edi]
test eax, eax
je 0x422b69
call eax
add edi, 4
cmp edi, esi
jb 0x422b61
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x422b81
push 8
call fcn.00422d36
jmp 0x422b93
push dword [ebp + 8]
mov dword [0x72b83c], 1
call fcn.00422a1c
pop ecx
pop ebp
ret

Function at 0x425d17
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x467c30]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4681a0]
je 0x425d44
inc eax
cmp eax, 0x12
jb 0x425d35
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4681a0]
jne 0x425e78
mov eax, dword [0x72b7f0]
cmp eax, 1
je 0x425e53
cmp eax, edx
jne 0x425d74
cmp dword [0x467cb4], 1
je 0x425e53
cmp ecx, 0xfc
je 0x425e78
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x425dad
lea eax, [ebp - 0x10c]
push 0x42f82c
push eax
call fcn.00423fb0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00422480
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x425def
lea eax, [ebp - 0x10c]
push eax
call fcn.00422480
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x42f828
push edi
call fcn.00427910
add esp, 0x10
push edi
call fcn.00422480
push dword [esi + 0x4681a4]
mov ebx, eax
call fcn.00422480
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00421fb0
mov ebx, esp
push 0x42ff60
push ebx
call fcn.00423fb0
push edi
push ebx
call fcn.00423fc0
push 0x42f824
push ebx
call fcn.00423fc0
push dword [esi + 0x4681a4]
push ebx
call fcn.00423fc0
push 0x12010
push 0x42f7f0
push ebx
call fcn.0042780d
add esp, 0x2c
jmp 0x425e78
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x4681a4]
push dword [esi]
call fcn.00422480
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004211fa
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42780d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x72bac0], ebx
push esi
push edi
jne 0x42788d
push 0x430058
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4278c8
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x43004c
push edi
call esi
test eax, eax
mov dword [0x72bac0], eax
je 0x4278c8
push 0x43003c
push edi
call esi
push 0x430028
push edi
mov dword [0x72bac4], eax
call esi
cmp dword [0x72b7fc], 2
mov dword [0x72bac8], eax
jne 0x42788d
push 0x43000c
push edi
call esi
test eax, eax
mov dword [0x72bad0], eax
je 0x42788d
push 0x42fff4
push edi
call esi
mov dword [0x72bacc], eax
mov eax, dword [0x72bacc]
test eax, eax
je 0x4278d2
call eax
test eax, eax
je 0x4278b9
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x72bad0]
test eax, eax
je 0x4278b9
test byte [ebp - 8], 1
jne 0x4278d2
cmp dword [0x72b808], 4
jb 0x4278cc
or byte [ebp + 0x12], 0x20
jmp 0x4278f1
xor eax, eax
jmp 0x427901
or byte [ebp + 0x12], 4
jmp 0x4278f1
mov eax, dword [0x72bac4]
test eax, eax
je 0x4278f1
call eax
mov ebx, eax
test ebx, ebx
je 0x4278f1
mov eax, dword [0x72bac8]
test eax, eax
je 0x4278f1
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x72bac0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x428cc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x467c30]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x428ce9
xor eax, eax
jmp 0x428e57
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x72cec0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x428d1c
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.0042a251
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x428dee
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x428e29
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x428d77
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x428d68
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x428d4b
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x428db7
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x428dc0
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x428d3c
jmp 0x428dc2
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x428e52
cmp dword [ebp - 8], edi
je 0x428e29
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x428e1b
call fcn.00425bd7
mov dword [eax], 9
call fcn.00425be0
mov dword [eax], esi
jmp 0x428e24
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x428e10
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x428dc2
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x428dc2
push dword [ebp - 8]
call fcn.00425be9
pop ecx
or eax, 0xffffffff
jmp 0x428e55
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x428e3e
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x428e3e
xor eax, eax
jmp 0x428e55
call fcn.00425bd7
mov dword [eax], 0x1c
call fcn.00425be0
mov dword [eax], edi
jmp 0x428e24
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.004211fa
leave
ret
Function at 0x42939e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00421fb0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x429433
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x72b7fc]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x429433
cmp eax, 1
je 0x42944b
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x429433
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x429408
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x42942f
xor eax, eax
inc eax
jmp 0x429467
cmp esi, ebx
jae 0x429437
xor eax, eax
jmp 0x429467
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov eax, dword [0x72b7fc]
jmp 0x42944d
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.kernel32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42a4d8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x42a69e
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x72cec0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x42a69e
test cl, 0x48
je 0x42a53e
mov al, byte [eax + 5]
cmp al, 0xa
je 0x42a53e
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x42a590
call dword [sym.imp.kernel32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x42a578
call fcn.00425bd7
mov dword [eax], 9
call fcn.00425be0
mov dword [eax], esi
jmp 0x42a588
cmp eax, 0x6d
je 0x42a69e
push eax
call fcn.00425be9
pop ecx
or eax, 0xffffffff
jmp 0x42a6a0
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x42a699
test edx, edx
je 0x42a5b3
cmp byte [ebx], 0xa
jne 0x42a5b3
or al, 4
jmp 0x42a5b5
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x42a693
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x42a683
cmp al, 0xd
je 0x42a5e9
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x42a675
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x42a603
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x42a5fe
add dword [ebp + 0x10], 2
jmp 0x42a657
mov dword [ebp + 0x10], eax
jmp 0x42a671
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x42a62b
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x42a671
cmp dword [ebp - 0xc], 0
je 0x42a671
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x42a64c
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x42a657
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x42a674
cmp ebx, dword [ebp + 0xc]
jne 0x42a65c
cmp byte [ebp - 1], 0xa
jne 0x42a65c
mov byte [ebx], 0xa
jmp 0x42a674
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00428ba1
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x42a675
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x42a5cd
jmp 0x42a693
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x42a693
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x42a6a0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403f0f
Capabilities:
Encode data using xor

Disassembly:
test al, 0x83
inc ecx
pop esi
mov dh, 0x1a
jb 0x403f24
mov fs, ebp
sub byte [esi - 0x4dd40288], dh
adc eax, 0xc3902cee
mov edx, 0x22fe40a2
xchg edi, eax
shl dword [ebx - 0x2f], 0x41
mov esi, 0xb6cdf7a9
xchg byte [edi - 0x52], ah
push ss
mov cl, 0x1a
scasd eax, dword es:[edi]
or eax, 0x399dd12c
mov dword [0xc004e5f7], eax
pmullw mm0, qword [edx + esi*4 + 0x3f40b756]
xor dh, byte [ecx + edx*8]
dec esi
mov eax, 0x25dc1ae4
push edi
sbb dword [ebx - 0x5bad8cc6], ebx
out dx, eax
or edx, dword [eax - 0x3a1c863c]
add al, 0x49
and eax, ecx
push eax
arpl word [edi - 0x11], si
add byte [edi], al
and edx, dword cs:[edx + ebx*2 + 0x29]
pop ecx
cdq
sub dword [ecx - 0x67], ebx
ja 0x403ec1
pop ebp
and al, 0x4e
mov esp, 0xb0999207
xchg byte [edi], cl
pop eax
leave
pop es
test eax, 0xbe22be79
and dword [0xfa326d11], ebx
das
mov esp, 0xe9a42796
ret 0x6a1c
Function at 0x409544
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x409583
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x409583
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x409583
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x409583
cmp dword [ecx + 0x74], 0xe
jbe 0x409583
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret