joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b330
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x40b340
xor eax, eax
jmp 0x40b4dd
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x40b49e
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x42bfe0]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x42bfe0]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x42bfe0]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x42bfe0]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x42bfe0]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x42bfe0]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x42bfe0]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x42bfe0]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x40b349
cmp dword [ebp + 0x10], 0
je 0x40b4d7
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x42bfe0]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0x40b4a4
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x40b4e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor eax, dword [ecx]
and eax, 0xff
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
shr ecx, 8
xor ecx, dword [eax*4 + 0x42bfe0]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 0xff
mov edx, dword [ebp + 8]
add ecx, dword [edx + 4]
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
imul edx, edx, 0x8088405
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shr edx, 0x18
mov eax, dword [ebp + 8]
xor edx, dword [eax + 8]
and edx, 0xff
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x42bfe0]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
pop ebp
ret

Function at 0x40c4c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x14]
movzx edx, byte [ecx]
test edx, edx
je 0x40c50f
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40c505
mov edx, dword [ebp + 0x14]
mov byte [edx + 8], 1
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp + 0xc]
jmp 0x40c569
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
cmp ecx, dword [edx + 0x18]
jbe 0x40c52f
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax + 0x18]
sub edx, dword [ecx + 0x1c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp + 0x14]
add edx, dword [eax + 0x1c]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.00412350
add esp, 0xc
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x40dfb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x40dfca
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 4], 0xffffffff
je 0x40dfd4
mov eax, 0x1000000
jmp 0x40e0ac
mov edx, dword [ebp - 0x18]
add edx, 0x13c
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [ebp - 0x18]
add eax, 0x13c
push eax
call fcn.004122c0
add esp, 4
mov ecx, dword [ebp - 0x18]
mov dl, byte [ecx + eax + 0x13b]
mov byte [ebp - 5], dl
movsx eax, byte [ebp - 5]
cmp eax, 0x5c
je 0x40e030
movsx ecx, byte [ebp - 5]
cmp ecx, 0x2f
je 0x40e030
push 0x42c494
mov edx, dword [ebp - 0x18]
add edx, 0x13c
push edx
call fcn.00413410
add esp, 8
cmp dword [ebp + 0x10], 1
jne 0x40e064
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x10], eax
xor ecx, ecx
cmp dword [ebp - 0x10], 0xffffffff
setne cl
mov byte [ebp - 0x11], cl
movzx edx, byte [ebp - 0x11]
test edx, edx
jne 0x40e064
mov eax, 0x2000000
jmp 0x40e0ac
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040c1a0
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40e08a
mov eax, dword [ebp - 0xc]
jmp 0x40e0ac
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040c950
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x40e0aa
mov eax, 0x200
jmp 0x40e0ac
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40e930
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x40e948
jmp 0x40ea2d
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x118]
movsx edx, byte [ecx]
test edx, edx
je 0x40e99a
mov eax, dword [ebp - 0x118]
movsx ecx, byte [eax]
cmp ecx, 0x2f
je 0x40e980
mov edx, dword [ebp - 0x118]
movsx eax, byte [edx]
cmp eax, 0x5c
jne 0x40e989
mov ecx, dword [ebp - 0x118]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x118]
add edx, 1
mov dword [ebp - 0x118], edx
jmp 0x40e957
mov eax, dword [ebp - 4]
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
je 0x40e9f5
mov edx, dword [ebp - 4]
sub edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x220]
push ecx
call fcn.00412350
add esp, 0xc
mov edx, dword [ebp - 4]
sub edx, dword [ebp + 0xc]
mov byte [ebp + edx - 0x220], 0
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040e930
add esp, 8
mov edx, dword [ebp - 0x114]
add edx, 1
mov dword [ebp - 0x114], edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.00413400
add esp, 8
mov edx, dword [ebp - 0x114]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.00413410
add esp, 8
push 0
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esp, ebp
pop ebp
ret
Function at 0x4104a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427fcc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x8c], 0
jne 0x410590
push 0x7f89
call fcn.00410a10
mov ecx, eax
call fcn.00410cd0
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x8c], eax
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x8c], 0
jne 0x410590
lea ecx, [ebp - 0x10]
call fcn.004015c0
mov dword [ebp - 4], 0
push 0x104
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00401910
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00410d20
push str.winhlp32.exe
lea ecx, [ebp - 0x10]
call fcn.00410850
lea ecx, [ebp - 0x10]
call fcn.004017f0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x410581
push 0x6a
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x410577
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.USER32.dll_CopyIcon]
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x8c], eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004015e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4105a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
lea eax, [ebp - 4]
push eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x410603
mov dword [ebp - 0xc], 0x104
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x118]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00413400
add esp, 8
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x410680
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
cmp dword [ebp + 8], 0
je 0x410699
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x4106a6
mov eax, 4
add eax, 0x20
jmp 0x410816
mov dword [ebp - 0x20c], str.open
cmp dword [ebp + 0x10], 0
je 0x4106c0
mov dword [ebp - 0x20c], 0x42c81c
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x20c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0x20
ja 0x410810
lea edx, [ebp - 0x208]
push edx
push str..htm
push 0x80000000
call fcn.004105a0
add esp, 0xc
test eax, eax
jne 0x410810
push str._shellopencommand
lea eax, [ebp - 0x208]
push eax
call fcn.00413410
add esp, 8
lea ecx, [ebp - 0x208]
push ecx
lea edx, [ebp - 0x208]
push edx
push 0x80000000
call fcn.004105a0
add esp, 0xc
test eax, eax
jne 0x410810
push 0x42c83c
lea eax, [ebp - 0x208]
push eax
call fcn.0040f700
add esp, 8
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x4107b5
push 0x42c844
lea ecx, [ebp - 0x208]
push ecx
call fcn.0040f700
add esp, 8
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x4107aa
lea edx, [ebp - 0x208]
push edx
call fcn.004122c0
add esp, 4
lea eax, [ebp + eax - 0x209]
mov dword [ebp - 0x224], eax
jmp 0x4107b3
mov ecx, dword [ebp - 0x224]
mov byte [ecx], 0
jmp 0x4107be
mov edx, dword [ebp - 0x224]
mov byte [edx], 0
push 0x42c848
mov eax, dword [ebp - 0x224]
push eax
call fcn.00413410
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x224]
push edx
call fcn.00413410
add esp, 8
call fcn.00402fe0
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x208]
push ecx
call fcn.00410940
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 0x210], eax
mov eax, dword [ebp - 0x210]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4129ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004147bc
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x412a10
test byte [esp + 8], 2
je 0x412a10
call fcn.004147aa
mov dword [eax], 0xd
call fcn.004147b3
mov dword [eax], 5
jmp 0x4129e9
xor eax, eax
ret
Function at 0x412d8d
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.00412d50
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x412e28
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 [0x437970]
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 0x412e28
cmp eax, 1
je 0x412e49
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 0x412e28
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x412df5
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x412e24
xor eax, eax
inc eax
jmp 0x412e68
cmp edi, eax
jae 0x412e2c
xor eax, eax
jmp 0x412e68
cmp eax, esi
jae 0x412e33
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 [0x437970]
jmp 0x412e4c
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 0x413686
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x42e808
call fcn.00413ee8
mov edi, 0x94
mov eax, edi
call fcn.00412d50
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 [0x437970], ecx
mov eax, dword [esi + 4]
mov dword [0x43797c], eax
mov edx, dword [esi + 8]
mov dword [0x437980], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x437974], esi
cmp ecx, 2
je 0x4136e6
or esi, 0x8000
mov dword [0x437974], esi
shl eax, 8
add eax, edx
mov dword [0x437978], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x413721
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x413721
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x413739
cmp eax, 0x20b
je 0x413726
mov dword [ebp - 0x1c], esi
jmp 0x41374d
cmp dword [ecx + 0x84], 0xe
jbe 0x413721
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x413747
cmp dword [ecx + 0x74], 0xe
jbe 0x413721
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00416295
pop ecx
test eax, eax
jne 0x413761
push 0x1c
call fcn.00413662
pop ecx
call fcn.004152b7
test eax, eax
jne 0x413772
push 0x10
call fcn.00413662
pop ecx
call fcn.0041794a
mov dword [ebp - 4], esi
call fcn.0041774c
test eax, eax
jge 0x41378b
push 0x1b
call fcn.0041363d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x439230], eax
call fcn.0041762a
mov dword [0x43795c], eax
call fcn.00417588
test eax, eax
jge 0x4137b1
push 8
call fcn.0041363d
pop ecx
call fcn.00417355
test eax, eax
jge 0x4137c2
push 9
call fcn.0041363d
pop ecx
push 1
call fcn.00413d50
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4137d8
push eax
call fcn.0041363d
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004172f8
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4137f9
movzx eax, word [ebp - 0x40]
jmp 0x4137fc
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0041ca26
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x41381a
push edi
call fcn.00413e7d
call fcn.00413e9f
jmp 0x41384c
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00413f23
ret
Function at 0x413dba
Capabilities:
Terminate process

Disassembly:
push 8
push 0x42e888
call fcn.00413ee8
push 8
call fcn.0041624a
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4379b0], esi
jne 0x413dee
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4379ac], esi
mov al, byte [ebp + 0x10]
mov byte [0x4379a8], al
cmp dword [ebp + 0xc], edi
jne 0x413e38
cmp dword [0x439228], edi
je 0x413e28
mov eax, dword [0x439224]
sub eax, 4
mov dword [0x439224], eax
cmp eax, dword [0x439228]
jb 0x413e28
mov eax, dword [eax]
cmp eax, edi
je 0x413e09
call eax
jmp 0x413e09
push 0x434094
mov eax, 0x43408c
call fcn.00413d38
pop ecx
push 0x4340a0
mov eax, 0x434098
call fcn.00413d38
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x413e69
cmp dword [ebp + 0x10], edi
jne 0x413e77
mov dword [0x4379b0], esi
push dword [ebp + 8]
call fcn.00413cf6
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x413e76
push 8
call fcn.00416195
pop ecx
ret
call fcn.00413f23
ret
Function at 0x415ece
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 0x415efc
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 0x415f03
cmp ebx, dword [eax + 4]
jae 0x415f03
xor eax, eax
jmp 0x4160f3
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x415f14
xor eax, eax
inc eax
jmp 0x4160f2
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x415f2a
cmp ecx, edx
jae 0x41606f
cmp dword [eax + 4], 0
je 0x415f33
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x415f1b
cmp dword [ebp + 8], 0
je 0x415f55
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41606f
cmp eax, esi
jae 0x41606f
mov eax, dword [0x4379d0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x415f7a
cmp dword [esi*4 + 0x4379d8], edi
je 0x416073
inc esi
cmp esi, eax
jl 0x415f68
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4160ef
cmp dword [ebp - 8], 0x1000000
jne 0x4160ef
test byte [ebp - 0xc], 0xcc
je 0x415ff8
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4160ef
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4160ef
cmp word [eax + 0x18], 0x10b
jne 0x4160ef
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4160ef
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x415ff8
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x415ff8
test byte [ecx + 0x27], 0x80
jne 0x41606f
push 1
push 0x437a18
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x415f0c
mov ecx, dword [0x4379d0]
test ecx, ecx
mov edx, ecx
jle 0x41602c
lea eax, [ecx*4 + 0x4379d4]
cmp dword [eax], edi
je 0x41602c
dec edx
sub eax, 4
test edx, edx
jg 0x416020
test edx, edx
jne 0x41605d
push 0xf
pop ebx
cmp ecx, ebx
jg 0x416039
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x416051
lea eax, [edx*4 + 0x4379d8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41603f
cmp ecx, 0x10
jge 0x41605d
inc ecx
mov dword [0x4379d0], ecx
push 0
push 0x437a18
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x415f0c
xor eax, eax
jmp 0x4160f2
test esi, esi
jle 0x415f0c
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x437a18
call ebx
test eax, eax
jne 0x415f0c
cmp dword [esi*4 + 0x4379d8], edi
je 0x4160c9
mov eax, dword [0x4379d0]
lea esi, [eax - 1]
test esi, esi
jl 0x4160b7
cmp dword [esi*4 + 0x4379d8], edi
je 0x4160b3
dec esi
jns 0x4160a7
test esi, esi
jge 0x4160c7
cmp eax, 0x10
jge 0x4160c2
inc eax
mov dword [0x4379d0], eax
lea esi, [eax - 1]
jmp 0x4160c9
je 0x4160e1
xor ecx, ecx
test esi, esi
jl 0x4160e1
lea eax, [ecx*4 + 0x4379d8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4160cf
push 0
push 0x437a18
call ebx
jmp 0x415f0c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x416fe4
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x434a28]
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 + 0x434e20]
je 0x417019
inc eax
cmp eax, 0x13
jb 0x41700a
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x434e20]
jne 0x41713f
mov eax, dword [0x437964]
cmp eax, 1
je 0x417117
cmp eax, edx
jne 0x417049
cmp dword [0x434a24], 1
je 0x417117
cmp ecx, 0xfc
je 0x41713f
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 0x41707f
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00413400
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004122c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4170b3
mov eax, edi
push eax
call fcn.004122c0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x42ee00
push edi
call fcn.00416ec0
add esp, 0x10
push edi
call fcn.004122c0
push dword [esi + 0x434e24]
mov ebx, eax
call fcn.004122c0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00412d50
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00413400
push edi
push ebx
call fcn.00413410
push 0x42ede0
push ebx
call fcn.00413410
push dword [esi + 0x434e24]
push ebx
call fcn.00413410
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00419f50
add esp, 0x2c
jmp 0x41713f
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x434e24]
push dword [esi]
call fcn.004122c0
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.0041388c
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret