joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411140
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x43d7bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb0
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x3c]
xor edi, edi
call fcn.0040fdd0
lea ecx, [esp + 0x3c]
mov dword [esp + 0xc8], edi
call fcn.0040fba0
test eax, eax
je 0x41132b
lea eax, [esi + 0x70]
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x1c], 1
call fcn.004101f0
lea ebx, [esi + 0x84]
push ebx
lea ecx, [esp + 0x40]
call fcn.00410210
lea ecx, [esp + 0x1c]
call fcn.0040cf20
mov byte [esp + 0xc8], 1
call fcn.00433b2e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xc8], 2
call fcn.0040f480
push eax
lea eax, [esp + 0x18]
push 0x440f8c
push eax
call fcn.00401e40
mov eax, dword [esi + 0x78]
add esp, 0xc
cmp eax, edi
jle 0x4112be
lea esp, [esp]
push 0x43f89f
lea ecx, [esp + 0x14]
call fcn.00401f20
test edi, edi
mov byte [esp + 0xc8], 3
jl 0x411326
cmp edi, dword [esi + 0x78]
jge 0x411326
mov eax, dword [esi + 0x74]
lea ebp, [edi*4]
add eax, ebp
push eax
lea ecx, [esp + 0x14]
call fcn.00401d90
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x104]
push ecx
push 0
push 0x143
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp edi, dword [ebx + 8]
jge 0x411326
mov eax, dword [ebx + 4]
add eax, ebp
mov eax, dword [eax]
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.0041fb91
add esp, 8
test eax, eax
jne 0x41128c
mov ecx, dword [esi + 0x104]
push eax
push edi
push 0x14e
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0xc8], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4112b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 0x78]
inc edi
cmp edi, eax
jl 0x411200
lea ecx, [esp + 0x28]
call fcn.0042e31c
mov eax, dword [esi + 0x104]
push 0x43f89f
push 0
push 0x143
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x28]
call fcn.0042e36e
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xc8], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41130f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x1c]
mov byte [esp + 0xc8], 0
call fcn.0040cd20
mov edi, dword [esp + 0x18]
jmp 0x411342
jmp fcn.0042d323
push edi
push 0x40
push str.database_connect_error
call dword [sym.imp.libintl3.dll_Ordinal_35]
add esp, 4
push eax
call fcn.004374a4
lea ecx, [esp + 0x3c]
mov dword [esp + 0xc8], 0xffffffff
call fcn.0040fc50
mov ecx, dword [esp + 0xc0]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xbc
ret
Function at 0x411e70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43d8f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.00435e66
xor ecx, ecx
lea ebp, [esi + 0x10]
mov dword [esi], method.CDC.virtual_0
mov dword [esp + 0x24], ecx
mov dword [ebp + 4], ecx
mov dword [ebp], vtable.CBitmap.0
mov ebx, dword [esp + 0x2c]
xor eax, eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ecx
cmp dword [ebx + 0xc], ecx
sete al
mov byte [esp + 0x24], 1
lea edi, [esi + 0x20]
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x30]
cmp eax, ecx
jne 0x411edf
mov edx, dword [ebx]
push edi
mov ecx, ebx
call dword [edx + 0x50]
jmp 0x411ef7
mov edx, dword [eax]
mov ecx, edi
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x30]
test eax, eax
je 0x411f8c
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.00436286
mov ecx, dword [ebx + 8]
push 2
push edi
push ecx
call dword [sym.imp.GDI32.dll_LPtoDP]
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0xc]
mov edx, dword [edi]
sub eax, ecx
mov ecx, dword [edi + 8]
sub ecx, edx
mov edx, dword [ebx + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebp
call fcn.00436583
test ebp, ebp
je 0x411f4b
mov ebp, dword [ebp + 4]
mov eax, dword [esi + 4]
push ebp
push eax
call fcn.0043660c
mov dword [esi + 0x18], eax
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.GDI32.dll_GetMapMode]
push eax
mov ecx, esi
call fcn.00435df4
mov edx, dword [ebx + 8]
push 2
push edi
push edx
call dword [sym.imp.GDI32.dll_DPtoLP]
mov eax, dword [esi + 0x24]
mov ecx, dword [edi]
push eax
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.00435fb6
jmp 0x411f9e
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [ebx + 4]
mov dword [esi + 4], ecx
mov edx, dword [ebx + 8]
mov dword [esi + 8], edx
push 1
mov ecx, esi
call fcn.00435d97
mov eax, dword [esp + 0x34]
test eax, eax
je 0x411fe7
mov ebx, dword [edi]
mov eax, dword [edi + 0xc]
mov ebp, dword [edi + 4]
mov ecx, dword [edi + 8]
mov edx, dword [esi + 0x1c]
mov edi, dword [edi]
sub ecx, ebx
mov ebx, dword [esi + 0x24]
sub eax, ebp
test edx, edx
je 0x411fcd
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
push eax
mov eax, dword [esi + 4]
push ecx
push ebx
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x411ffa
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.GDI32.dll_GetBkColor]
push eax
push edi
mov ecx, esi
call fcn.00437fbc
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
Function at 0x413420
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x451330]
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
push edi
mov dword [esp + 0x110], eax
lea eax, [esp + 4]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov edi, dword [esp + 0x120]
mov byte [edi], 0
jne 0x4134a0
mov edx, dword [esp + 4]
push esi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push edx
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov esi, eax
test esi, esi
jne 0x41349d
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x110]
pop edi
call fcn.0041e059
add esp, 0x110
ret 0xc

Function at 0x4134c0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x20c
mov eax, dword [0x451330]
push ebx
mov ebx, dword [esp + 0x214]
push ebp
push esi
mov dword [esp + 0x214], eax
mov eax, dword [esp + 0x220]
push eax
push 0
push 0
push ebx
push str.open
push 0
mov esi, ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ebp, eax
cmp ebp, 0x20
ja 0x4135d9
lea ecx, [esp + 0xc]
push ecx
push str..htm
push SysReAllocStringLen
mov ecx, esi
call fcn.00413420
test eax, eax
jne 0x4135d9
push str._shellopencommand
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0xc]
push eax
mov ecx, eax
push ecx
push SysReAllocStringLen
mov ecx, esi
call fcn.00413420
test eax, eax
jne 0x4135d9
lea edx, [esp + 0xc]
push str.__1_
push edx
call fcn.0041fca3
add esp, 8
test eax, eax
jne 0x41358f
lea eax, [esp + 0xc]
push 0x441e98
push eax
call fcn.0041fca3
add esp, 8
test eax, eax
jne 0x41358f
lea eax, [esp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413580
sub eax, edx
lea eax, [esp + eax + 0xb]
jmp 0x413592
mov byte [eax], 0
push edi
mov edi, eax
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x413596
mov cx, word [0x440f9c]
mov word [edi], cx
mov ecx, ebx
mov esi, ebx
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4135b0
sub ecx, esi
mov edx, ecx
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4135c0
mov ecx, edx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov ecx, dword [esp + 0x214]
pop esi
mov eax, ebp
pop ebp
pop ebx
call fcn.0041e059
add esp, 0x20c
ret 8
Function at 0x413ad0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43db38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x78]
test eax, eax
jne 0x413bd0
push esi
call fcn.00433b2e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 8], esi
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0x104
or eax, ecx
mov dword [esp + 0x14], 0
jge 0x413b38
push 0x104
lea ecx, [esp + 0xc]
call fcn.004018b0
mov esi, dword [esp + 8]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test esi, esi
jne 0x413b4c
xor eax, eax
jmp 0x413b60
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413b51
sub eax, edx
js 0x413be0
cmp eax, dword [esi - 8]
jg 0x413be0
push edi
push 0xd
mov dword [esi - 0xc], eax
push str.winhlp32.exe
lea ecx, [esp + 0x14]
mov byte [eax + esi], 0
call fcn.00401c90
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x413ba5
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x413ba5
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [ebx + 0x78], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [edi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
jg 0x413bcf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop esi
mov ecx, dword [esp + 8]
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
push 0x80070057
call fcn.00401100
int3
Function at 0x415a67
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 0x415aba
call fcn.0043861d
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x415aba
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x415ab0
xor eax, eax
jmp 0x415bd3
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 0x415aea
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 0x415aea
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x415bd0
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x415b17
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00414b54
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x415bd0
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x415b60
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x415b60
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x415b5a
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00414b54
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x415bc0
and dword [ebp + 0xc], 0
jmp 0x415bc0
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x415bc0
push 0xc
call fcn.00433aa3
mov esi, eax
test esi, esi
pop ecx
je 0x415ba2
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 0x415ba4
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x415bbb
push dword [ebp - 8]
call fcn.0042e7fc
jmp 0x415bc0
call fcn.0042e7d3
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x415b25
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41f938
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.0041f750
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41f9d3
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 [0x454728]
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 0x41f9d3
cmp eax, 1
je 0x41f9f4
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 0x41f9d3
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41f9a0
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41f9cf
xor eax, eax
inc eax
jmp 0x41fa13
cmp edi, eax
jae 0x41f9d7
xor eax, eax
jmp 0x41fa13
cmp eax, esi
jae 0x41f9de
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 [0x454728]
jmp 0x41f9f7
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 0x420a9e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x420abe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00422174
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x420ae1
test byte [esp + 8], 2
je 0x420ae1
call fcn.00422162
mov dword [eax], 0xd
call fcn.0042216b
mov dword [eax], 5
jmp 0x420aba
xor eax, eax
ret
Function at 0x420b2d
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x445ff8
call fcn.00421624
mov edi, 0x94
mov eax, edi
call fcn.0041f750
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 [0x454728], ecx
mov eax, dword [esi + 4]
mov dword [0x454734], eax
mov edx, dword [esi + 8]
mov dword [0x454738], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x45472c], esi
cmp ecx, 2
je 0x420b8d
or esi, 0x8000
mov dword [0x45472c], esi
shl eax, 8
add eax, edx
mov dword [0x454730], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x420bc8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x420bc8
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x420be0
cmp eax, 0x20b
je 0x420bcd
mov dword [ebp - 0x1c], esi
jmp 0x420bf4
cmp dword [ecx + 0x84], 0xe
jbe 0x420bc8
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x420bee
cmp dword [ecx + 0x74], 0xe
jbe 0x420bc8
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00424782
pop ecx
test eax, eax
jne 0x420c08
push 0x1c
call fcn.00420b09
pop ecx
call fcn.00423a8a
test eax, eax
jne 0x420c19
push 0x10
call fcn.00420b09
pop ecx
call fcn.00428700
mov dword [ebp - 4], esi
call fcn.00428502
test eax, eax
jge 0x420c32
push 0x1b
call fcn.00420ae4
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x455ff0], eax
call fcn.004283e0
mov dword [0x454714], eax
call fcn.0042833e
test eax, eax
jge 0x420c58
push 8
call fcn.00420ae4
pop ecx
call fcn.0042810b
test eax, eax
jge 0x420c69
push 9
call fcn.00420ae4
pop ecx
push 1
call fcn.004214aa
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x420c7f
push eax
call fcn.00420ae4
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004280ae
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x420ca0
movzx eax, word [ebp - 0x40]
jmp 0x420ca3
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0042d240
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x420cc1
push edi
call fcn.004215d7
call fcn.004215f9
jmp 0x420cf3
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0042165f
ret
Function at 0x421514
Capabilities:
Terminate process

Disassembly:
push 8
push 0x446030
call fcn.00421624
push 8
call fcn.00424926
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x454768], esi
jne 0x421548
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x454764], esi
mov al, byte [ebp + 0x10]
mov byte [0x454760], al
cmp dword [ebp + 0xc], edi
jne 0x421592
cmp dword [0x455fe8], edi
je 0x421582
mov eax, dword [0x455fe4]
sub eax, 4
mov dword [0x455fe4], eax
cmp eax, dword [0x455fe8]
jb 0x421582
mov eax, dword [eax]
cmp eax, edi
je 0x421563
call eax
jmp 0x421563
push 0x4500a0
mov eax, 0x450098
call fcn.00421492
pop ecx
push 0x4500ac
mov eax, 0x4500a4
call fcn.00421492
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4215c3
cmp dword [ebp + 0x10], edi
jne 0x4215d1
mov dword [0x454768], esi
push dword [ebp + 8]
call fcn.00421450
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4215d0
push 8
call fcn.00424871
pop ecx
ret
call fcn.0042165f
ret
Function at 0x426e5b
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 0x426e89
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 0x426e90
cmp ebx, dword [eax + 4]
jae 0x426e90
xor eax, eax
jmp 0x427080
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x426ea1
xor eax, eax
inc eax
jmp 0x42707f
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x426eb7
cmp ecx, edx
jae 0x426ffc
cmp dword [eax + 4], 0
je 0x426ec0
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x426ea8
cmp dword [ebp + 8], 0
je 0x426ee2
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x426ffc
cmp eax, esi
jae 0x426ffc
mov eax, dword [0x454a38]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x426f07
cmp dword [esi*4 + 0x454a40], edi
je 0x427000
inc esi
cmp esi, eax
jl 0x426ef5
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42707c
cmp dword [ebp - 8], 0x1000000
jne 0x42707c
test byte [ebp - 0xc], 0xcc
je 0x426f85
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x42707c
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x42707c
cmp word [eax + 0x18], 0x10b
jne 0x42707c
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x42707c
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x426f85
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x426f85
test byte [ecx + 0x27], 0x80
jne 0x426ffc
push 1
push 0x454a80
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x426e99
mov ecx, dword [0x454a38]
test ecx, ecx
mov edx, ecx
jle 0x426fb9
lea eax, [ecx*4 + 0x454a3c]
cmp dword [eax], edi
je 0x426fb9
dec edx
sub eax, 4
test edx, edx
jg 0x426fad
test edx, edx
jne 0x426fea
push 0xf
pop ebx
cmp ecx, ebx
jg 0x426fc6
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x426fde
lea eax, [edx*4 + 0x454a40]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x426fcc
cmp ecx, 0x10
jge 0x426fea
inc ecx
mov dword [0x454a38], ecx
push 0
push 0x454a80
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x426e99
xor eax, eax
jmp 0x42707f
test esi, esi
jle 0x426e99
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x454a80
call ebx
test eax, eax
jne 0x426e99
cmp dword [esi*4 + 0x454a40], edi
je 0x427056
mov eax, dword [0x454a38]
lea esi, [eax - 1]
test esi, esi
jl 0x427044
cmp dword [esi*4 + 0x454a40], edi
je 0x427040
dec esi
jns 0x427034
test esi, esi
jge 0x427054
cmp eax, 0x10
jge 0x42704f
inc eax
mov dword [0x454a38], eax
lea esi, [eax - 1]
jmp 0x427056
je 0x42706e
xor ecx, ecx
test esi, esi
jl 0x42706e
lea eax, [ecx*4 + 0x454a40]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x42705c
push 0
push 0x454a80
call ebx
jmp 0x426e99
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x427d9a
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x451330]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x451b08]
je 0x427dcf
inc eax
cmp eax, 0x13
jb 0x427dc0
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x451b08]
jne 0x427ef5
mov eax, dword [0x45471c]
cmp eax, 1
je 0x427ecd
cmp eax, edx
jne 0x427dff
cmp dword [0x451628], 1
je 0x427ecd
cmp ecx, 0xfc
je 0x427ef5
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x427e35
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00424670
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004210d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x427e69
mov eax, edi
push eax
call fcn.004210d0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4460c4
push edi
call fcn.00426150
add esp, 0x10
push edi
call fcn.004210d0
push dword [esi + 0x451b0c]
mov ebx, eax
call fcn.004210d0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0041f750
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00424670
push edi
push ebx
call fcn.00424680
push 0x4460c0
push ebx
call fcn.00424680
push dword [esi + 0x451b0c]
push ebx
call fcn.00424680
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00429605
add esp, 0x2c
jmp 0x427ef5
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x451b0c]
push dword [esi]
call fcn.004210d0
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 - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0041e059
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret