joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a7ae
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x1814
call fcn.0040bac0
mov eax, dword [0x41a174]
xor eax, esp
mov dword [esp + 0x1810], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1824]
lea eax, [esp + 0x1c]
push edi
mov ebp, 0x800
xor ebx, ebx
push ebp
push ebx
push eax
mov edi, ebx
call sub.VCRUNTIME140.dll_memset
push ebp
lea eax, [esp + 0x830]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [esp + 0x10], ebp
lea eax, [esp + 0x18]
push eax
push 0x20019
push ebx
push 0x4132d4
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a921
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x10]
push ebx
push ebx
push ebx
push ebx
push eax
lea eax, [esp + 0x34]
push eax
push ebx
push dword [esp + 0x34]
call ebp
test eax, eax
jne 0x40a921
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x20]
push eax
push 0x413300
push 0x41332c
lea eax, [esp + 0x82c]
push 0x800
push eax
call fcn.00407436
add esp, 0x14
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
lea eax, [esp + 0x82c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a8f9
push 0x800
push eax
lea eax, [esp + 0x1028]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x10], 0x800
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1024]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0x413334
push dword [esp + 0x28]
call ebx
test eax, eax
jne 0x40a8f9
cmp dword [esp + 0x10], eax
jbe 0x40a8f9
mov eax, dword [esp + 0x182c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push esi
lea eax, [esp + 0x24]
push eax
push 0
push 0x413340
push dword [esp + 0x28]
call ebx
xor eax, eax
mov dword [esp + 0x10], 0x800
push eax
push eax
push eax
push eax
lea eax, [esp + 0x20]
inc edi
push eax
lea eax, [esp + 0x34]
push eax
push edi
push dword [esp + 0x34]
call ebp
test eax, eax
je 0x40a848
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x40a924
sub esi, ecx
xor eax, eax
mov ecx, dword [esp + 0x1820]
cmp eax, esi
pop edi
pop esi
pop ebp
sbb eax, eax
pop ebx
xor ecx, esp
neg eax
call fcn.0040baa8
add esp, 0x1814
ret
Function at 0x40b41f
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x2014
call fcn.0040bac0
mov eax, dword [0x41a174]
xor eax, esp
mov dword [esp + 0x2010], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2024]
lea eax, [esp + 0x1c]
push edi
mov ebp, 0x800
mov dword [esp + 0x1c], esi
xor ebx, ebx
push ebp
push ebx
push eax
mov edi, ebx
call sub.VCRUNTIME140.dll_memset
push ebp
lea eax, [esp + 0x830]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [esp + 0x10], ebp
lea eax, [esp + 0x18]
push eax
push 0x20019
push ebx
push 0x41616c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b59a
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x10]
push ebx
push ebx
push ebx
push ebx
push eax
lea eax, [esp + 0x34]
push eax
push ebx
push dword [esp + 0x34]
call ebp
test eax, eax
jne 0x40b59a
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x20]
push eax
push str.SOFTWAREJavaSoftJava_Runtime_Environment
push str._s_s
lea eax, [esp + 0x82c]
push 0x800
push eax
call fcn.00407436
add esp, 0x14
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
lea eax, [esp + 0x82c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b572
push 0x800
push eax
lea eax, [esp + 0x1028]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x10], 0x800
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1024]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push str.RuntimeLib
push dword [esp + 0x28]
call ebx
test eax, eax
jne 0x40b572
cmp dword [esp + 0x10], eax
jbe 0x40b572
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x800
push eax
lea eax, [esp + 0x1824]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0x4161d8
push dword [esp + 0x28]
call ebx
xor eax, eax
mov dword [esp + 0x10], 0x800
push eax
push eax
push eax
push eax
lea eax, [esp + 0x20]
inc edi
push eax
lea eax, [esp + 0x34]
push eax
push edi
push dword [esp + 0x34]
call ebp
test eax, eax
je 0x40b4bd
lea eax, [esp + 0x1820]
mov ecx, esi
push eax
call fcn.00409890
mov ecx, dword [esp + 0x2020]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040baa8
add esp, 0x2014
ret
Function at 0x408870
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x44aaf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov ecx, dword [0x45cccc]
mov eax, 0x4227fdad
imul ecx
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
push ebx
push esi
mov esi, dword [0x45ccd4]
push edi
mov edi, eax
mov eax, 0xbb03c5cb
imul esi
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ebx, eax
mov eax, 0x44fc3a35
imul ecx
imul ecx, ecx, 0x1865
sar edx, 0xb
sub ebx, edi
mov edi, edx
add ebx, edx
mov eax, 0x5c9900d1
imul esi
mov eax, dword [0x45cce8]
shr edi, 0x1f
imul eax, eax, 0xa74
sar edx, 0xb
add edi, ebx
add edi, ecx
mov ecx, edx
add edi, edx
mov edx, dword [0x45ccdc]
imul edx, edx, 0x1545
shr ecx, 0x1f
add ecx, edi
add ecx, edx
mov edx, dword [0x57304c]
add ecx, eax
mov dword [str._r_____r____], ecx
mov ecx, 0x57304c
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov edx, dword [0x45ccdc]
mov ecx, dword [0x45ccd8]
mov eax, 0x44fc3a35
imul edx
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45ccc8]
mov esi, ecx
imul edx, edx, 0x1545
imul esi, esi, 0x1db0
sub esi, eax
add esi, edx
mov eax, 0x6f9f33f1
imul ecx
mov ecx, dword [0x45ccd0]
sar edx, 0xb
add esi, edx
mov edi, edx
mov eax, 0x5df55b35
imul ecx
mov ecx, dword [0x45cce8]
sar edx, 0xa
shr edi, 0x1f
mov eax, edx
shr eax, 0x1f
add edi, esi
add eax, edx
sub edi, eax
imul ecx, ecx, 0xa74
mov dword [esp + 0x18], 0
mov eax, dword [0x45cce4]
add edi, ecx
sub edi, eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
push edx
sub edi, 0x1259
push eax
lea ecx, [esp + 0x14]
mov dword [0x45ccd0], edi
call fcn.004085e0
mov ecx, dword [0x45cccc]
mov edx, dword [0x45ccd0]
mov esi, dword [0x45cce4]
lea edi, [edx + ecx]
mov eax, 0x44fc3a35
imul edi, edi, 0x1ef5
imul esi
sar edx, 0xb
mov ebx, edx
add edi, edx
mov eax, 0x5c9900d1
imul esi
sar edx, 0xb
mov esi, edx
shr ebx, 0x1f
add ebx, edi
add ebx, edx
mov eax, 0xc09370e3
imul ecx
add edx, ecx
mov ecx, dword [0x45ccdc]
sar edx, 0xc
imul ecx, ecx, 0x1259
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45cce0]
shr esi, 0x1f
imul edx, edx, 0xade
add esi, ebx
sub esi, eax
add esi, ecx
add esi, edx
mov dword [0x45ccdc], esi
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 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
pop esi
pop ebx
jg 0x408a66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x41b6b0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x45e640]
xor eax, esp
push ebp
push esi
push edi
mov edi, dword [esp + 0x12c]
mov ebp, ecx
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x130], eax
mov eax, dword [ebp]
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x41b7b2
lea ecx, [esp + 0xc]
call fcn.0041b590
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
jne 0x41b7b6
lea edx, [esp + 0x1c]
push edx
push esi
push esi
push esi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x38]
push edx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x41b78e
jmp 0x41b750
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.0041b6b0
mov edi, eax
test edi, edi
jne 0x41b7dd
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x41b750
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41b7a5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41b7c1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0042fe7d
add esp, 0x11c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41b7ec
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x41b7c3
Function at 0x41bcd0
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x41bce2
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x426f6a
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 0x426fbd
call fcn.00447fb3
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x426fbd
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x426fb3
xor eax, eax
jmp 0x4270d6
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 0x426fed
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 0x426fed
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x4270d3
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x42701a
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.004276fd
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x4270d3
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x427063
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x427063
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x42705d
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.004276fd
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x4270c3
and dword [ebp + 0xc], 0
jmp 0x4270c3
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x4270c3
push 0xc
call fcn.00441bb9
mov esi, eax
test esi, esi
pop ecx
je 0x4270a5
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 0x4270a7
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x4270be
push dword [ebp - 8]
call fcn.0043d604
jmp 0x4270c3
call fcn.0043d5db
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x427028
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4303ed
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x43040d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043265c
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x430430
test byte [esp + 8], 2
je 0x430430
call fcn.0043264a
mov dword [eax], 0xd
call fcn.00432653
mov dword [eax], 5
jmp 0x430409
xor eax, eax
ret
Function at 0x4304f7
Capabilities:
Terminate process

Disassembly:
push 8
push 0x450738
call fcn.004324cc
push 8
call fcn.004346e6
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x572b3c], esi
jne 0x43052b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x572b38], esi
mov al, byte [ebp + 0x10]
mov byte [0x572b34], al
cmp dword [ebp + 0xc], edi
jne 0x430575
cmp dword [0x57442c], edi
je 0x430565
mov eax, dword [0x574428]
sub eax, 4
mov dword [0x574428], eax
cmp eax, dword [0x57442c]
jb 0x430565
mov eax, dword [eax]
cmp eax, edi
je 0x430546
call eax
jmp 0x430546
push 0x4590cc
mov eax, 0x4590c4
call fcn.00430475
pop ecx
push 0x4590d8
mov eax, 0x4590d0
call fcn.00430475
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4305a6
cmp dword [ebp + 0x10], edi
jne 0x4305b4
mov dword [0x572b3c], esi
push dword [ebp + 8]
call fcn.00430433
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4305b3
push 8
call fcn.00434631
pop ecx
ret
call fcn.00432507
ret

Function at 0x430827
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.004306c0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4308c2
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 [0x572afc]
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 0x4308c2
cmp eax, 1
je 0x4308e3
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 0x4308c2
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x43088f
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4308be
xor eax, eax
inc eax
jmp 0x430902
cmp edi, eax
jae 0x4308c6
xor eax, eax
jmp 0x430902
cmp eax, esi
jae 0x4308cd
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 [0x572afc]
jmp 0x4308e6
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 0x431272
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4507f0
call fcn.004324cc
mov edi, 0x94
mov eax, edi
call fcn.004306c0
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 [0x572afc], ecx
mov eax, dword [esi + 4]
mov dword [0x572b08], eax
mov edx, dword [esi + 8]
mov dword [0x572b0c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x572b00], esi
cmp ecx, 2
je 0x4312d2
or esi, 0x8000
mov dword [0x572b00], esi
shl eax, 8
add eax, edx
mov dword [0x572b04], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x43130d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43130d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x431325
cmp eax, 0x20b
je 0x431312
mov dword [ebp - 0x1c], esi
jmp 0x431339
cmp dword [ecx + 0x84], 0xe
jbe 0x43130d
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x431333
cmp dword [ecx + 0x74], 0xe
jbe 0x43130d
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00434822
pop ecx
test eax, eax
jne 0x43134d
push 0x1c
call fcn.0043124e
pop ecx
call fcn.00433699
test eax, eax
jne 0x43135e
push 0x10
call fcn.0043124e
pop ecx
call fcn.00434717
mov dword [ebp - 4], esi
call fcn.004373c0
test eax, eax
jge 0x431377
push 0x1b
call fcn.00431229
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x574420], eax
call fcn.0043729e
mov dword [0x572b48], eax
call fcn.004371fc
test eax, eax
jge 0x43139d
push 8
call fcn.00431229
pop ecx
call fcn.00436fc9
test eax, eax
jge 0x4313ae
push 9
call fcn.00431229
pop ecx
push 1
call fcn.0043048d
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4313c4
push eax
call fcn.00431229
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00436f6c
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4313e5
movzx eax, word [ebp - 0x40]
jmp 0x4313e8
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0043cca4
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x431406
push edi
call fcn.004305ba
call fcn.004305dc
jmp 0x431438
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00432507
ret
Function at 0x4353b1
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 0x4353df
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 0x4353e6
cmp ebx, dword [eax + 4]
jae 0x4353e6
xor eax, eax
jmp 0x4355d6
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4353f7
xor eax, eax
inc eax
jmp 0x4355d5
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x43540d
cmp ecx, edx
jae 0x435552
cmp dword [eax + 4], 0
je 0x435416
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4353fe
cmp dword [ebp + 8], 0
je 0x435438
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x435552
cmp eax, esi
jae 0x435552
mov eax, dword [0x572cd8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x43545d
cmp dword [esi*4 + 0x572ce0], edi
je 0x435556
inc esi
cmp esi, eax
jl 0x43544b
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4355d2
cmp dword [ebp - 8], 0x1000000
jne 0x4355d2
test byte [ebp - 0xc], 0xcc
je 0x4354db
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4355d2
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4355d2
cmp word [eax + 0x18], 0x10b
jne 0x4355d2
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4355d2
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4354db
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4354db
test byte [ecx + 0x27], 0x80
jne 0x435552
push 1
push 0x572d20
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4353ef
mov ecx, dword [0x572cd8]
test ecx, ecx
mov edx, ecx
jle 0x43550f
lea eax, [ecx*4 + 0x572cdc]
cmp dword [eax], edi
je 0x43550f
dec edx
sub eax, 4
test edx, edx
jg 0x435503
test edx, edx
jne 0x435540
push 0xf
pop ebx
cmp ecx, ebx
jg 0x43551c
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x435534
lea eax, [edx*4 + 0x572ce0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x435522
cmp ecx, 0x10
jge 0x435540
inc ecx
mov dword [0x572cd8], ecx
push 0
push 0x572d20
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4353ef
xor eax, eax
jmp 0x4355d5
test esi, esi
jle 0x4353ef
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x572d20
call ebx
test eax, eax
jne 0x4353ef
cmp dword [esi*4 + 0x572ce0], edi
je 0x4355ac
mov eax, dword [0x572cd8]
lea esi, [eax - 1]
test esi, esi
jl 0x43559a
cmp dword [esi*4 + 0x572ce0], edi
je 0x435596
dec esi
jns 0x43558a
test esi, esi
jge 0x4355aa
cmp eax, 0x10
jge 0x4355a5
inc eax
mov dword [0x572cd8], eax
lea esi, [eax - 1]
jmp 0x4355ac
je 0x4355c4
xor ecx, ecx
test esi, esi
jl 0x4355c4
lea eax, [ecx*4 + 0x572ce0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4355b2
push 0
push 0x572d20
call ebx
jmp 0x4353ef
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x436c57
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x45e640]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x45ef20]
je 0x436c8e
inc eax
cmp eax, 0x13
jb 0x436c7f
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x45ef20]
jne 0x436db1
mov eax, dword [0x572b50]
cmp eax, 1
je 0x436d8c
cmp eax, edx
jne 0x436cbe
cmp dword [0x45e684], 1
je 0x436d8c
cmp ecx, 0xfc
je 0x436db1
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x436cf4
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00438400
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.004317e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x436d28
mov eax, edi
push eax
call fcn.004317e0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x450938
push edi
call fcn.004310c0
add esp, 0x10
push edi
call fcn.004317e0
push dword [esi + 0x45ef24]
mov ebx, eax
call fcn.004317e0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004306c0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00438400
push edi
push ebx
call fcn.00438410
push 0x44d278
push ebx
call fcn.00438410
push dword [esi + 0x45ef24]
push ebx
call fcn.00438410
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00438f0a
add esp, 0x2c
jmp 0x436db1
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x45ef24]
push dword [esi]
call fcn.004317e0
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]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.0042fe7d
add ebp, 0x90
leave
ret
Function at 0x438f0a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x572f70], ebx
push esi
push edi
jne 0x438f8a
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x438fc5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x451754
push edi
call esi
test eax, eax
mov dword [0x572f70], eax
je 0x438fc5
push 0x451744
push edi
call esi
push 0x451730
push edi
mov dword [0x572f74], eax
call esi
cmp dword [0x572afc], 2
mov dword [0x572f78], eax
jne 0x438f8a
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x572f80], eax
je 0x438f8a
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x572f7c], eax
mov eax, dword [0x572f7c]
test eax, eax
je 0x438fcf
call eax
test eax, eax
je 0x438fb6
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x572f80]
test eax, eax
je 0x438fb6
test byte [ebp - 8], 1
jne 0x438fcf
cmp dword [0x572b08], 4
jb 0x438fc9
or byte [ebp + 0x12], 0x20
jmp 0x438fee
xor eax, eax
jmp 0x438ffe
or byte [ebp + 0x12], 4
jmp 0x438fee
mov eax, dword [0x572f74]
test eax, eax
je 0x438fee
call eax
mov ebx, eax
test ebx, ebx
je 0x438fee
mov eax, dword [0x572f78]
test eax, eax
je 0x438fee
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x572f70]
pop edi
pop esi
pop ebx
leave
ret