joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444738
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x444770]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x444751
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x444760
or bl, 4
test esi, 0x20000000
je 0x44476b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44ae34
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44ae46
add esp, 0xfffffff0
call fcn.00403954
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419c68
mov eax, dword [0x453e58]
mov dword [eax + 4], ebx
mov dword [eax], 0x44b1d8
mov eax, dword [0x453e64]
mov dword [eax + 4], ebx
mov dword [eax], 0x44b1e4
mov eax, ebx
call fcn.0044b1f0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411cf8]
call fcn.00403604
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411cf8]
call fcn.00403604
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411cf8]
call fcn.00403604
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411cf8]
call fcn.00403604
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411cf8]
call fcn.00403604
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x447608
push eax
push 0
push 0
mov eax, dword [0x453fa0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b690]
call fcn.0041caf8
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b690]
call fcn.0041caf8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b690]
call fcn.0041caf8
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044b640
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44b508
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44b508
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44b508
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44af83
call fcn.004039ac
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44b2ec
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44b497
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44b478
mov dl, 1
mov eax, dword [0x412114]
call fcn.00403604
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004043a8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44b467
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00439204
test al, al
je 0x44b45a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44b4a8
lea eax, [ebp - 0x254]
call fcn.00408fe4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44b45a
xor eax, eax
push ebp
push 0x44b453
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44b4e0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44b43c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404618
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44b43c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404618
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44b45a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44b35d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415d54
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44b49e
lea eax, [ebp - 0x260]
call fcn.004043a8
ret

Function at 0x44bde0
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x455b44]
cmp byte [eax + 0xa5], 0
jne 0x44be51
cmp dword [0x455b5c], 0
jne 0x44be12
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44bd9c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x455b5c], eax
cmp dword [0x455b58], 0
jne 0x44be2d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x455b58], eax
cmp dword [0x455b60], 0
jne 0x44be51
push esp
push 0
push 0
push 0x44bd40
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x455b60], eax
pop edx
ret
Function at 0x44c4e4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x455b44]
cmp dword [eax + 0x30], 0
je 0x44c58e
cmp dword [ebx + 0x94], 0
jne 0x44c588
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44c474
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44c588
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44c54e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44c588
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414074
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44c55d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44d0ec
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44d121
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404498
jmp 0x44d12e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004043fc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44e2e0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44e321
mov eax, esi
call fcn.00434928
test al, al
je 0x44e321
mov eax, dword [ebx + 0x84]
call fcn.00434624
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44e321
push 0
mov eax, dword [ebx + 0x84]
call fcn.00434624
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x450d0c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.004509a4
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404868
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x450d6a
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x453fa8]
mov dl, 1
mov eax, dword [0x45089c]
call fcn.0040bb80
call fcn.00403dbc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x450d74
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404868
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x450dcc
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x45417c]
mov dl, 1
mov eax, dword [0x45089c]
call fcn.0040bb80
call fcn.00403dbc
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004509d4
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x8ce500
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3b8000]
push edi
or ebp, 0xffffffff
jmp 0x8ce522
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x8ce529
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8ce518
mov eax, 1
add ebx, ebx
jne 0x8ce53b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x8ce54c
jne 0x8ce55c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8ce55c
dec eax
add ebx, ebx
jne 0x8ce558
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x8ce530
xor ecx, ecx
sub eax, 3
jb 0x8ce574
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8ce5e6
sar eax, 1
mov ebp, eax
jmp 0x8ce57f
add ebx, ebx
jne 0x8ce57f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x8ce58c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x8ce5b0
inc ecx
add ebx, ebx
jne 0x8ce59c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x8ce591
jne 0x8ce5ad
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x8ce591
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8ce5d0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8ce5c1
jmp 0x8ce51e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8ce5d0
add edi, ecx
jmp 0x8ce51e
pop esi
mov edi, esi
mov ecx, 0x46eb3c
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x8ce60b
cmp byte [edi], 0x78
jne 0x8ce5f0
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x8ce5ee
lea edi, [esi + 0x4cc000]
mov eax, dword [edi]
or eax, eax
je 0x8ce65c
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4cf208]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4cf244]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x8ce611
mov ecx, edi
jns 0x8ce640
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4cf248]
or eax, eax
je 0x8ce656
mov dword [ebx], eax
add ebx, 4
jmp 0x8ce62e
call dword [esi + 0x4cf24c]
popal
jmp 0x4012ec
Function at 0x401ba4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401bb9
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x401bcb
xor eax, eax
jmp 0x401bfd
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x401bef
cmp esi, eax
jae 0x401bc7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401be1
cmp esi, eax
jae 0x401bc7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x40265f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x4026b2
call fcn.00422479
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x4026b2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x4026a8
xor eax, eax
jmp 0x4027cb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x4026e2
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x4026e2
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x4027c8
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x40270f
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00403ac7
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x4027c8
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x402758
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x402758
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x402752
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00403ac7
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x4027b8
and dword [ebp + 0xc], 0
jmp 0x4027b8
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x4027b8
push 0xc
call fcn.004198e5
mov esi, eax
test esi, esi
pop ecx
je 0x40279a
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x40279c
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x4027b3
push dword [ebp - 8]
call fcn.00417cc3
jmp 0x4027b8
call fcn.00417c9a
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x40271d
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40b8a9
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040bb90
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40b944
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4350d8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40b944
cmp eax, 1
je 0x40b965
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40b944
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40b911
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40b940
xor eax, eax
inc eax
jmp 0x40b984
cmp edi, eax
jae 0x40b948
xor eax, eax
jmp 0x40b984
cmp eax, esi
jae 0x40b94f
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4350d8]
jmp 0x40b968
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c29d
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4295f8
call fcn.0040d088
mov edi, 0x94
mov eax, edi
call fcn.0040bb90
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 [0x4350d8], ecx
mov eax, dword [esi + 4]
mov dword [0x4350e4], eax
mov edx, dword [esi + 8]
mov dword [0x4350e8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4350dc], esi
cmp ecx, 2
je 0x40c2fd
or esi, 0x8000
mov dword [0x4350dc], esi
shl eax, 8
add eax, edx
mov dword [0x4350e0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40c338
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40c338
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40c350
cmp eax, 0x20b
je 0x40c33d
mov dword [ebp - 0x1c], esi
jmp 0x40c364
cmp dword [ecx + 0x84], 0xe
jbe 0x40c338
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40c35e
cmp dword [ecx + 0x74], 0xe
jbe 0x40c338
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040e643
pop ecx
test eax, eax
jne 0x40c378
push 0x1c
call fcn.0040c279
pop ecx
call fcn.00410031
test eax, eax
jne 0x40c389
push 0x10
call fcn.0040c279
pop ecx
call fcn.0041178e
mov dword [ebp - 4], esi
call fcn.00411590
test eax, eax
jge 0x40c3a2
push 0x1b
call fcn.0040c254
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4369b0], eax
call fcn.0041146e
mov dword [0x4350c8], eax
call fcn.004113cc
test eax, eax
jge 0x40c3c8
push 8
call fcn.0040c254
pop ecx
call fcn.00411199
test eax, eax
jge 0x40c3d9
push 9
call fcn.0040c254
pop ecx
push 1
call fcn.0040cd2e
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40c3ef
push eax
call fcn.0040c254
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041113c
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40c410
movzx eax, word [ebp - 0x40]
jmp 0x40c413
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00417850
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40c431
push edi
call fcn.0040ce5b
call fcn.0040ce7d
jmp 0x40c463
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040d0c3
ret
Function at 0x40cd98
Capabilities:
Terminate process

Disassembly:
push 8
push 0x429658
call fcn.0040d088
push 8
call fcn.0040e5f8
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x435118], esi
jne 0x40cdcc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x435114], esi
mov al, byte [ebp + 0x10]
mov byte [0x435110], al
cmp dword [ebp + 0xc], edi
jne 0x40ce16
cmp dword [0x4369a8], edi
je 0x40ce06
mov eax, dword [0x4369a4]
sub eax, 4
mov dword [0x4369a4], eax
cmp eax, dword [0x4369a8]
jb 0x40ce06
mov eax, dword [eax]
cmp eax, edi
je 0x40cde7
call eax
jmp 0x40cde7
push 0x431094
mov eax, 0x43108c
call fcn.0040cd16
pop ecx
push 0x4310a0
mov eax, 0x431098
call fcn.0040cd16
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40ce47
cmp dword [ebp + 0x10], edi
jne 0x40ce55
mov dword [0x435118], esi
push dword [ebp + 8]
call fcn.0040ccd4
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40ce54
push 8
call fcn.0040e543
pop ecx
ret
call fcn.0040d0c3
ret
Function at 0x40f1d2
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40f200
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40f207
cmp ebx, dword [eax + 4]
jae 0x40f207
xor eax, eax
jmp 0x40f3f7
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40f218
xor eax, eax
inc eax
jmp 0x40f3f6
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40f22e
cmp ecx, edx
jae 0x40f373
cmp dword [eax + 4], 0
je 0x40f237
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40f21f
cmp dword [ebp + 8], 0
je 0x40f259
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40f373
cmp eax, esi
jae 0x40f373
mov eax, dword [0x435288]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40f27e
cmp dword [esi*4 + 0x435290], edi
je 0x40f377
inc esi
cmp esi, eax
jl 0x40f26c
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40f3f3
cmp dword [ebp - 8], 0x1000000
jne 0x40f3f3
test byte [ebp - 0xc], 0xcc
je 0x40f2fc
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40f3f3
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40f3f3
cmp word [eax + 0x18], 0x10b
jne 0x40f3f3
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40f3f3
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40f2fc
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40f2fc
test byte [ecx + 0x27], 0x80
jne 0x40f373
push 1
push 0x4352d0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40f210
mov ecx, dword [0x435288]
test ecx, ecx
mov edx, ecx
jle 0x40f330
lea eax, [ecx*4 + 0x43528c]
cmp dword [eax], edi
je 0x40f330
dec edx
sub eax, 4
test edx, edx
jg 0x40f324
test edx, edx
jne 0x40f361
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40f33d
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40f355
lea eax, [edx*4 + 0x435290]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40f343
cmp ecx, 0x10
jge 0x40f361
inc ecx
mov dword [0x435288], ecx
push 0
push 0x4352d0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40f210
xor eax, eax
jmp 0x40f3f6
test esi, esi
jle 0x40f210
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4352d0
call ebx
test eax, eax
jne 0x40f210
cmp dword [esi*4 + 0x435290], edi
je 0x40f3cd
mov eax, dword [0x435288]
lea esi, [eax - 1]
test esi, esi
jl 0x40f3bb
cmp dword [esi*4 + 0x435290], edi
je 0x40f3b7
dec esi
jns 0x40f3ab
test esi, esi
jge 0x40f3cb
cmp eax, 0x10
jge 0x40f3c6
inc eax
mov dword [0x435288], eax
lea esi, [eax - 1]
jmp 0x40f3cd
je 0x40f3e5
xor ecx, ecx
test esi, esi
jl 0x40f3e5
lea eax, [ecx*4 + 0x435290]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40f3d3
push 0
push 0x4352d0
call ebx
jmp 0x40f210
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret