joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005d0d1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x1005d0e7
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x1005d0f8
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.1005d139
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx

Function at 0x1005f4a5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x1005f3ee
add ebx, 0
push ecx
call 0x1005f403
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x72d17388
sub ebx, dword [0x72d36bc7]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x72d36bb7
call fcn.1005aecd
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.1005a3db
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x1005f561
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x1005f561
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x1005f518
mov eax, 1
lock xchg dword [0x72d36bc3], eax
push 0x3dd1fc71
call 0x1005f4a5
push esi
add esp, 8
cmp eax, 0
jne 0x1005f48e
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x1005f4b4
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x1005f4c9
cmp ecx, edx
cmp eax, 0
je 0x1005f4ee
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x1005f4d8
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.1005f507
dec eax
loope 0x1005f50a
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x72d36bc3], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x1005f53e
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x1005f553
jmp 0x1005f55e
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x1005f44c
Function at 0x100665c6
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x1006689c
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x72d2383b
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x72d1a801
push 0xffffffffffffffff
call fcn.1005d7c6
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x10066630
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.10066648
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x10066890
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x10066864
Function at 0x10076096
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x100760b8
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x100760b8
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x100760b8
ret
cmp word [ebx + 4], 0x14c
jne 0x100760b8
test word [ebx + 0x16], 2
je 0x100760b8
test word [ebx + 0x16], 0x100
je 0x100760b8
cmp word [ebx + 0x18], 0x10b
jne 0x100760b8
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x100760b8
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10076144
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x100760d8
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1005d023
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x100760b8
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x10076144
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x100760b8
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x100760b8
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x100760b8
ret
cmp word [ebx + 4], 0x14c
jne 0x100760b8
test word [ebx + 0x16], 2
je 0x100760b8
test word [ebx + 0x16], 0x100
je 0x100760b8
cmp word [ebx + 0x18], 0x10b
jne 0x100760b8
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x100760b8
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10076144
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x100760d8
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1005d023
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x100760b8
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x100761fb
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x10076254
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x100761fb
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1007620a
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1047bead
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1007625b
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1005d0d1
cmp eax, dword [ebp + 0xc]
pop eax
je 0x100762fa
add edi, 4
add eax, 2
dec ecx
jne 0x10076240
call 0x100762a7
loope 0x1007629d
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x100762f7
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x10076308
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x100762bb
cmp eax, ecx
ja 0x100762bb
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x10076345
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1007633b
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1005d5b0
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x1007620a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x10076254
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x100761fb
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1007620a
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1047bead
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1007625b
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1005d0d1
cmp eax, dword [ebp + 0xc]
pop eax
je 0x100762fa
add edi, 4
add eax, 2
dec ecx
jne 0x10076240
call 0x100762a7
loope 0x1007629d
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x100762f7
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x10076308
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x100762bb
cmp eax, ecx
ja 0x100762bb
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x10076345
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1007633b
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1005d5b0
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x1005ab2
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001110
call fcn.01005ca8
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1005aed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1005aed
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1005b05
cmp eax, 0x20b
je 0x1005af2
mov dword [ebp - 0x1c], edi
jmp 0x1005b19
cmp dword [ecx + 0x84], 0xe
jbe 0x1005aed
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1005b13
cmp dword [ecx + 0x74], 0xe
jbe 0x1005aed
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1007014], 0xffffffff
or dword [0x1007018], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1007010]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100700c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100701c], eax
call fcn.01005ca2
cmp dword [section..data], edi
jne 0x1005b74
push fcn.01005ca2
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01005c90
push 0x10010e8
push 0x10010e4
call sub.msvcrt.dll__initterm
mov eax, dword [0x1007008]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1007004]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x30], eax
push 0x10010e0
push 0x10010dc
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.010058f0
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x1005beb
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1005c20
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01005ce1
ret
Function at 0x401000
Capabilities:
Connect pipe
Create pipe

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
xor eax, eax
push 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], eax
push ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov esi, dword [esp + 0x38]
mov ecx, dword [esi + 0x2c]
mov edi, dword [esp + 0x34]
or ecx, 0x100
or ebp, 0xffffffff
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x3c], ebp
mov dword [esi + 0x38], ebp
mov dword [esi + 0x40], ebp
mov ecx, dword [edi + 0x1108]
push ecx
lea ebx, [edi + 0x110c]
push ebx
push str.RemCom_stdout
lea eax, [esp + 0x28]
push str..pipe_s_s_d
push 0x40abc8
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 1
call fcn.0040182b
mov edx, dword [edi + 0x1108]
push edx
push ebx
push str.RemCom_stdin
push str..pipe_s_s_d
push 0x40acd0
call fcn.0040182b
mov eax, dword [edi + 0x1108]
push eax
push ebx
push str.RemCom_stderr
push str..pipe_s_s_d
push 0x40add8
call fcn.0040182b
mov edi, dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
add esp, 0x3c
lea ecx, [esp + 0x10]
push ecx
push ebp
push 0
push 0
push 0xff
push 4
push 2
push 0x40abc8
call edi
lea edx, [esp + 0x10]
push edx
push ebp
push 0
push 0
push 0xff
push 4
push 2
push 0x40add8
mov dword [esi + 0x3c], eax
call edi
mov dword [esi + 0x40], eax
lea eax, [esp + 0x10]
push eax
push ebp
push 0
push 0
push 0xff
push 4
push 1
push 0x40acd0
call edi
mov ecx, dword [esi + 0x3c]
cmp ecx, ebp
mov dword [esi + 0x38], eax
je 0x401161
cmp dword [esi + 0x40], ebp
je 0x401161
cmp eax, ebp
je 0x401161
mov edi, dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
push 0
push ecx
call edi
mov ecx, dword [esi + 0x38]
push 0
push ecx
call edi
mov edx, dword [esi + 0x40]
push 0
push edx
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov eax, dword [esi + 0x40]
push eax
call edi
mov ecx, dword [esi + 0x38]
push ecx
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret
Function at 0x401180
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x158
push esi
mov esi, dword [esp + 0x160]
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push eax
push esi
mov dword [esp + 0x20], 0x44
call fcn.00401000
add esp, 8
test eax, eax
jne 0x4011c4
pop edi
mov eax, 2
pop esi
add esp, 0x158
ret
mov edi, dword [esp + 0x168]
push ebx
push ebp
push esi
lea ecx, [esp + 0x68]
push 0x4081b8
push ecx
mov dword [edi], 0
xor ebp, ebp
call fcn.0040182b
mov dl, byte [esi + 0x1000]
add esp, 0xc
lea eax, [esi + 0x1000]
neg dl
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x68]
sbb edx, edx
and eax, edx
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [esi + 0x1104]
push ebp
or eax, 0x8000000
push eax
push 1
push ebp
push ebp
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401256
mov eax, dword [esp + 0x10]
mov dword [edi], ebp
mov ecx, dword [esi + 0x1210]
test ecx, ecx
mov ebx, eax
jne 0x40125b
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, ebp
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x158
ret
mov ebp, 1
mov eax, ebp
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x158
ret
Function at 0x40199d
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
jne 0x4019b9
call fcn.00402e41
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x401a2b
push esi
push 0x8c
push 1
call fcn.00402ec6
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x401a11
push esi
call fcn.00402664
mov eax, dword [esp + 0x1c]
pop ecx
push esi
push 4
push esi
push 0x40190b
push dword [esp + 0x24]
mov dword [esi + 0x4c], edi
push 0
mov dword [esi + 0x50], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
mov dword [esi + 4], edi
je 0x401a09
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x401a28
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00402c78
test ebx, ebx
pop ecx
je 0x401a23
push ebx
call fcn.00402e53
pop ecx
or eax, 0xffffffff
jmp 0x401a2a
mov eax, edi
pop esi
pop edi
pop ebx
ret

Function at 0x401add
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x408238
call fcn.00402cec
mov edi, 0x94
mov eax, edi
call fcn.00401890
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 [0x40af20], ecx
mov eax, dword [esi + 4]
mov dword [0x40af2c], eax
mov edx, dword [esi + 8]
mov dword [0x40af30], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40af24], esi
cmp ecx, 2
je 0x401b3d
or esi, 0x8000
mov dword [0x40af24], esi
shl eax, 8
add eax, edx
mov dword [0x40af28], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x401b76
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401b76
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x401b8e
cmp eax, 0x20b
je 0x401b7b
mov dword [ebp - 0x1c], edi
jmp 0x401ba2
cmp dword [ecx + 0x84], 0xe
jbe 0x401b76
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x401b9c
cmp dword [ecx + 0x74], 0xe
jbe 0x401b76
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004039db
pop ecx
test eax, eax
jne 0x401bb6
push 0x1c
call fcn.00401ab9
pop ecx
call fcn.0040285e
test eax, eax
jne 0x401bc7
push 0x10
call fcn.00401ab9
pop ecx
call fcn.00403939
mov dword [ebp - 4], edi
call fcn.0040373b
test eax, eax
jge 0x401be0
push 0x1b
call fcn.00401a94
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40c758], eax
call fcn.00403619
mov dword [0x40af00], eax
call fcn.00403577
test eax, eax
jge 0x401c06
push 8
call fcn.00401a94
pop ecx
call fcn.00403344
test eax, eax
jge 0x401c17
push 9
call fcn.00401a94
pop ecx
push 1
call fcn.004029a7
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x401c2d
push eax
call fcn.00401a94
pop ecx
mov eax, dword [0x40af40]
mov dword [0x40af44], eax
push eax
push dword [0x40af38]
push dword [0x40af34]
call fcn.004017d0
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x401c5c
push esi
call fcn.00402ad4
call fcn.00402af6
jmp 0x401c8e
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.00402d27
ret
Function at 0x402a11
Capabilities:
Terminate process

Disassembly:
push 8
push 0x408330
call fcn.00402cec
push 8
call fcn.00404238
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x40af60], esi
jne 0x402a45
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x40af5c], esi
mov al, byte [ebp + 0x10]
mov byte [0x40af58], al
cmp dword [ebp + 0xc], edi
jne 0x402a8f
cmp dword [0x40c74c], edi
je 0x402a7f
mov eax, dword [0x40c748]
sub eax, 4
mov dword [0x40c748], eax
cmp eax, dword [0x40c74c]
jb 0x402a7f
mov eax, dword [eax]
cmp eax, edi
je 0x402a60
call eax
jmp 0x402a60
push 0x40a028
mov eax, 0x40a020
call fcn.0040298f
pop ecx
push 0x40a030
mov eax, 0x40a02c
call fcn.0040298f
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x402ac0
cmp dword [ebp + 0x10], edi
jne 0x402ace
mov dword [0x40af60], esi
push dword [ebp + 8]
call fcn.0040294d
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x402acd
push 8
call fcn.00404183
pop ecx
ret
call fcn.00402d27
ret

Function at 0x403194
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40a5b0]
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 + 0x40a4c8]
je 0x4031c9
inc eax
cmp eax, 0x13
jb 0x4031ba
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40a4c8]
jne 0x4032ef
mov eax, dword [0x40af08]
cmp eax, 1
je 0x4032c7
cmp eax, edx
jne 0x4031f9
cmp dword [0x40a044], 1
je 0x4032c7
cmp ecx, 0xfc
je 0x4032ef
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 0x40322f
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00405bc0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00403e40
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x403263
mov eax, edi
push eax
call fcn.00403e40
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x408748
push edi
call fcn.00405cc0
add esp, 0x10
push edi
call fcn.00403e40
push dword [esi + 0x40a4cc]
mov ebx, eax
call fcn.00403e40
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00401890
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00405bc0
push edi
push ebx
call fcn.00405bd0
push 0x408728
push ebx
call fcn.00405bd0
push dword [esi + 0x40a4cc]
push ebx
call fcn.00405bd0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00405ac4
add esp, 0x2c
jmp 0x4032ef
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40a4cc]
push dword [esi]
call fcn.00403e40
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.0040403c
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret