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

Disassembly:
push 0x58
push 0x406df8
call fcn.00403eb8
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x408758
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x403b43
cmp eax, esi
jne 0x403b36
xor esi, esi
inc esi
mov ebx, esi
jmp 0x403b46
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x403b1d
xor esi, esi
inc esi
mov eax, dword [0x408754]
cmp eax, esi
jne 0x403b59
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x403b88
mov eax, dword [0x408754]
test eax, eax
jne 0x403b82
mov dword [0x408754], esi
push 0x405218
push 0x40520c
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x403b88
jmp 0x403cb0
mov dword [0x408410], esi
mov eax, dword [0x408754]
cmp eax, esi
jne 0x403bac
push 0x405208
push 0x405200
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x408754], 2
test ebx, ebx
jne 0x403bb8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x408764], 0
je 0x403bdc
push 0x408764
call fcn.00404110
pop ecx
test eax, eax
je 0x403bdc
push 0
push 2
push 0
call dword [0x408764]
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x403c38
test al, al
je 0x403bf6
cmp dword [ebp - 0x1c], 0
jne 0x403c38
mov al, byte [esi]
test al, al
je 0x403c06
cmp al, 0x20
ja 0x403c06
inc esi
mov dword [ebp - 0x20], esi
jmp 0x403bf6
test byte [ebp - 0x3c], 1
je 0x403c12
movzx eax, word [ebp - 0x38]
jmp 0x403c15
push 0xa
pop eax
push eax
push esi
push 0
push 0x400000
call main
mov dword [0x40840c], eax
cmp dword [0x408400], 0
jne 0x403c8c
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp al, 0x22
jne 0x403c47
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
je 0x403c5a
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x403be3
cmp dword [0x408410], 0
jne 0x403c9b
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x40840c]
jmp 0x403cbc
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00403efd
ret
call fcn.00404204
jmp 0x403ae3

Function at 0x403efc
Capabilities:
Terminate process

Disassembly:
push 0x403f11
push dword fs:[0]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], ebp
lea ebp, [esp + 0x10]
sub esp, eax
push ebx
push esi
push edi
mov eax, dword [0x408398]
xor dword [ebp - 4], eax
xor eax, ebp
push eax
mov dword [ebp - 0x18], esp
push dword [ebp - 8]
mov eax, dword [ebp - 4]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
ret
Function at 0x4a9554
Capabilities:
Encode data using xor

Disassembly:
jle 0x4a9569
add dword [edi], edi
cmp dword [edx], eax
sti
add bl, dh
loop 0x4a9591
or dword [ecx + 0x7dfdb5f2], esp
sal byte [ecx - 0x4181df6b], cl
or bl, 0x92
into
lds edi, [esi]
pop edi
cmp al, 0x7a
arpl word [esi - 0x1c0922b3], bx
or eax, 0x40de217f
push 0x5c6acaca
sahf
sbb eax, 0x897c7c1f
salc
les esi, [ebx]
adc dword [eax + 0x2fe6af26], esi
dec ebp
invalid
cmpsb byte [esi], byte es:[edi]
sbb al, byte [edx]
loopne 0x4a9515
dec esi
cmp ebp, edi
and eax, dword [esi - 0x22]
hlt
loop 0x4a9537
popfd
cdq
adc al, 0xb1
fidivr dword [edi + edi - 0x58e1c1b3]
xor esp, ebx
mov eax, eax
iretd
invalid
inc esi
pop esp
sub eax, 0xa136ce6d
adc byte [edi], bl
sub dword [ecx], esi
push 0x83d62ebd
pop esi
xor dl, byte [ecx + 0x7da3901c]
inc edx
out 0x95, eax
xchg ebp, eax
xor ecx, dword [edi + 0x3740aa45]
add byte [eax - 0x26], al
je 0x4a95f2
loop 0x4a95f7
aam 0x96
jg 0x4a95aa
jg 0x4a95f5
inc ebp
dec edi
sub eax, 0xe191af68
cwde
dec ebp
xor ebx, dword [esp + ebx*8 - 0x34415483]
insd dword es:[edi], dx
cld
xor ch, dh
bound esp, qword [eax + 0x69]
jnp 0x4a959c
xchg ecx, eax
in eax, dx
loope 0x4a962c
bound edx, qword [edi + 0x5e]
and eax, 0xcbae2c52
out dx, eax
shl edx, cl
invalid
xor cl, bl
fidivr dword [ecx + 0x5d1d0bd7]
xlatb
or ebx, dword [0xf5750a5d]
pop ebp
or dh, byte [ebp - 0xb]
jne 0x4a95ee
jle 0x4a95d9
lock xor dword [esi + 0x4e], ebp
push edx
lodsd eax, dword [esi]
jg 0x4a9583
outsd dx, dword [esi]
lodsd eax, dword [esi]
lea esi, [esi]
adc dl, dh
loope 0x4a964d
and byte [ebx - 0x7e], bh
mov eax, dword [0xac3c61c6]
popal
cmp al, 0xac
and eax, 0x72c93bb
jp 0x4a9636
cmp byte [ebx], dl
cmp byte [esi + 0x28c284ab], ah
sbb al, 0xb6
mov ecx, edx
out dx, eax
in al, dx
push esi
push ebx
lea ecx, [edx]
inc byte [eax + 0x227dc60c]
cmp eax, 0xd5115d93
adc ebp, edx
aad 0x70
sbb al, byte [ecx]
jne 0x4a96a2
jo 0x4a9653
add dword [ebp + 0x66], esi
invalid
fnstsw word [esi - 0x46]
push esp
jle 0x4a9610
lds edi, [ebx + ebx*4 + 0x23]
jge 0x4a968c
jle 0x4a96bc
movsd dword es:[edi], dword [esi]
adc bl, dl
cmp eax, 0x4ea51400
cmpsb byte [esi], byte es:[edi]
pop ecx
xchg esi, eax
lea esi, [edx - 0x4ef07e66]
jnp 0x4a9691
jge 0x4a9635
pop edi
inc ecx
add eax, 0xe38c435f
push edi
popal
aas
cmp dword [eax - 0x60], esi
and dword [esi - 0x5e], ebx
jecxz 0x4a96e3
mov byte [0xa18760e3], al
xchg dword [ecx - 0x2355ab45], esp
sbb dword [ebp + 0x7d], 0xc339d19
js 0x4a969e
mov ebx, 0x81dcaa54
pop ebp
jge 0x4a96a6
sbb dword [ebp + 0xc780c33], ebx
popfd
xor ecx, dword [eax + edi*2]
or al, 0xd4
jo 0x4a9685
aam 0x26
jo 0x4a9685
jb 0x4a96c4
and edi, 0xffffffec
wait
and eax, 0xe295e160
fmulp st(5)
scasb al, byte es:[edi]
loope 0x4a9635
loop 0x4a9680
int 0xae
pop edi
sbb al, 0xce
into
scasd eax, dword es:[edi]
popfd
int3
inc byte [edx - 0x39]
cmp al, 0xb3
insb byte es:[edi], dx
xchg edx, eax
dec ebp
pushfd
invalid
dec dword [0x9daa5b97]
or byte [edx - 0x13534712], dl
insb byte es:[edi], dx
cli
ret
Function at 0x4dad25
Capabilities:
Encode data using xor

Disassembly:
sahf
out 0xb4, eax
int 0x8c
invalid
push edi
sbb dl, byte [eax + 0x2d1e654f]
imul edx, dword [esi], 0x7f
add bl, al
invalid
cwde
mov al, 0x1c
sub byte [esi - 0x115f0ac8], dl
movsd dword es:[edi], dword [esi]
add al, 0x44
push cs
xchg esp, eax
pop edi
loopne 0x4dad64
mov dl, 0xec
scasb al, byte es:[edi]
fld qword [ebx + 9]
jo 0x4dacd0
jbe 0x4dad7a
lodsd eax, dword [esi]
pop ebx
dec ebp
das
sbb dword [ebx], 0x23
cmp esi, eax
xor dword [eax + 1], esp
xchg esi, eax
jbe 0x4dacc4
sahf
sahf
out 0x9e, eax
mov eax, dword [0x3ed08f0e]
jg 0x4dacfc
out dx, al
push ebp
les ebx, [ebp + 0x24]
xchg ebp, eax
xchg esp, eax
invalid
mov al, byte [ecx + 0x1334bdda]
fucom st(7)
pop edx
cmp al, 0xfc
lcall 0x7536, 0xbd7a
push ss
cmp bl, cl
rep stosd dword es:[edi], eax
xchg ebp, eax
loopne 0x4dad98
mov edi, 0x83d65ec5
mov dword [0x53fee3ae], eax
lahf
push dword [0x8a8991cd]
int3
inc ebx
pop ebp
pop esp
aas
and bl, byte [eax + 0x3f24be91]
stosb byte es:[edi], al
cmpsb byte [esi], byte es:[edi]
mov esi, dword [edi - 0x69710cd3]
mov cl, 2
insd dword es:[edi], dx
fbld tbyte [ebx + eax*8 + 0x723310ad]
xor ch, byte [esi - 0x7501591]
xor byte ss:[ebp - 2], 0x4e
mov byte [ebx], dh
dec esp
int3
Function at 0x57a81f
Capabilities:
Encode data using xor

Disassembly:
dec edi
pop ebp
div eax
in eax, 2
nop
mov al, byte [0x82d2527e]
salc
jmp 0x57a807
daa
bnd jne 0x57a872
cld
xor ah, ch
rcr byte [eax], 0x63
mov es, word [esp + ecx*8 + 0x3163d52c]
dec esp
push 0xffffffffffffff93
inc ebx
mov dword [0x93a07625], eax
and eax, 0xd793a076
cmp ecx, dword [eax - 0x4dc6b14f]
xor eax, 0x92411717
sub bh, byte [edx - 0x33812de2]
push ds
sar byte [esi - 0x34], cl
add dh, dl
jns 0x57a80f
jo 0x57a8b9
inc esp
xchg edi, eax
ret
sti
xchg esp, eax
fbstp tbyte [eax + 0x79ec01c3]
add eax, 0xfd68b9b1
xchg bx, ax
ja 0x57a8f8
adc bl, byte [edx + 0x140298a5]
loop 0x57a831
mov al, 0xe
ret
mov esi, dword [ecx]
aad 0xc1
pop es
mov ch, 5
xchg ebx, eax
invalid
neg dword [ecx - 0x5d]
inc ecx
dec esp
fadd qword [edi]
int3

Function at 0x60e53e
Capabilities:
Encode data using xor

Disassembly:
mov dh, 0xd0
movsd dword es:[edi], dword [esi]
cmpsb byte fs:[esi], byte es:[edi]
lodsd eax, dword [esi]
fisttp word [edx]
rep movsd dword es:[edi], dword [esi]
and dword [ebx + 0x1e84cfe0], esp
test byte [esi], bl
xor eax, dword [eax - 0xab3c170]
cwde
sahf
add esi, dword [ecx + 0x20d76074]
insd dword es:[edi], dx
jle 0x60e590
aaa
loop 0x60e54c
mul eax
mov dh, 0xab
add eax, 0x4bf8af9c
pop edx
mov dword [0x4b9c2870], eax
pop esp
inc edx
add byte [edi], 0x4c
and cl, byte [ebp + 0x74027102]
int3
insd dword es:[edi], dx
mov bl, 0x47
jmp 0x60e5db
and bl, bh
or byte [esi + ebx*4], 0x74
cwde
xor dword [eax - 0xc312be9], ebp
mov dh, 0xa5
fsubr qword [eax]
in eax, 0x87
jb 0x60e591
pop ecx
jne 0x60e5f6
pop esp
push eax
mov al, 0x14
adc al, 0x1e
ja 0x60e652
inc ebp
jmp 0x701454f1
adc ah, dl
invalid

Function at 0x613e72
Capabilities:
Encode data using xor

Disassembly:
xchg ecx, eax
jo 0x613e7c
push edx
je 0x613ebc
cmp eax, 0x25f24c2d
das
invalid
and eax, 0xc8c62ff2
push ds
push esi
mov ebp, 0xe0b51da4
mov ch, byte [ecx]
popfd
pop ebx
pop ecx
inc eax
ljmp 0x1ff9
invalid
Function at 0x401060
Capabilities:
Delete registry value
Query or enumerate registry key

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 4]
push eax
push 0x2001f
push 0
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40108b
xor eax, eax
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x18]
test eax, eax
push ebp
push esi
push edi
je 0x4010c6
mov edx, dword [esp + 0x10]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call edi
push ebx
call edi
test esi, esi
je 0x401172
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov dword [esp + 0x14], 0
lea ebx, [ebx]
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x30]
push edx
push 0
push 0
push 0
push eax
call ebp
test eax, eax
jne 0x40117f
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x401157
mov ecx, dword [esp + 0x18]
inc ecx
push ecx
call fcn.0040e610
mov edx, dword [esp + 0x1c]
add esp, 4
inc edx
push edx
mov esi, eax
mov eax, dword [esp + 0x14]
push esi
push 0
push eax
call edi
test eax, eax
jne 0x401194
mov ecx, dword [esp + 0x10]
push ecx
push eax
push esi
call fcn.00401060
add esp, 0xc
test eax, eax
push esi
je 0x4011b2
call fcn.0040e615
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
ja 0x4010e0
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x40118a
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
push esi
call fcn.0040e615
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
call fcn.0040e615
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret

Function at 0x4012b0
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 0x4012c9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4012dd
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 0x4012fe
cmp esi, eax
jae 0x4012d7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4012f0
cmp esi, eax
jae 0x4012d7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x403506
Capabilities:
Terminate process

Disassembly:
push 8
push 0x418930
call fcn.00404e78
push 8
call fcn.00405aaa
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x420878], esi
jne 0x40353a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x420874], esi
mov al, byte [ebp + 0x10]
mov byte [0x420870], al
cmp dword [ebp + 0xc], edi
jne 0x403584
cmp dword [0x42210c], edi
je 0x403574
mov eax, dword [0x422108]
sub eax, 4
mov dword [0x422108], eax
cmp eax, dword [0x42210c]
jb 0x403574
mov eax, dword [eax]
cmp eax, edi
je 0x403555
call eax
jmp 0x403555
push 0x41d088
mov eax, 0x41d080
call fcn.00403484
pop ecx
push 0x41d094
mov eax, 0x41d08c
call fcn.00403484
pop ecx
or dword [ebp - 4], 0xffffffff
call fcn.004035b5
cmp dword [ebp + 0x10], edi
jne 0x4035c3
mov dword [0x420878], esi
push dword [ebp + 8]
call fcn.00403442
xor edi, edi
xor esi, esi
inc esi
call fcn.00404eb3
ret

Function at 0x404238
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.004036a0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4042d3
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 [0x420838]
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 0x4042d3
cmp eax, 1
je 0x4042f4
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 0x4042d3
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4042a0
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4042cf
xor eax, eax
inc eax
jmp 0x404313
cmp edi, eax
jae 0x4042d7
xor eax, eax
jmp 0x404313
cmp eax, esi
jae 0x4042de
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 [0x420838]
jmp 0x4042f7
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 0x40446e
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4189d8
call fcn.00404e78
mov edi, 0x94
mov eax, edi
call fcn.004036a0
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 [0x420838], ecx
mov eax, dword [esi + 4]
mov dword [0x420844], eax
mov edx, dword [esi + 8]
mov dword [0x420848], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x42083c], esi
cmp ecx, 2
je 0x4044ce
or esi, 0x8000
mov dword [0x42083c], esi
shl eax, 8
add eax, edx
mov dword [0x420840], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x404509
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404509
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x404521
cmp eax, 0x20b
je 0x40450e
mov dword [ebp - 0x1c], esi
jmp 0x404535
cmp dword [ecx + 0x84], 0xe
jbe 0x404509
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40452f
cmp dword [ecx + 0x74], 0xe
jbe 0x404509
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00407a42
pop ecx
test eax, eax
jne 0x404549
push 0x1c
call fcn.0040444a
pop ecx
call fcn.00406ddb
test eax, eax
jne 0x40455a
push 0x10
call fcn.0040444a
pop ecx
call fcn.00405adb
mov dword [ebp - 4], esi
call fcn.00408f62
test eax, eax
jge 0x404573
push 0x1b
call fcn.00404425
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x422100], eax
call fcn.00408e40
mov dword [0x42087c], eax
call fcn.00408d9e
test eax, eax
jge 0x404599
push 8
call fcn.00404425
pop ecx
call fcn.00408b6b
test eax, eax
jge 0x4045aa
push 9
call fcn.00404425
pop ecx
push 1
call fcn.0040349c
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4045c0
push eax
call fcn.00404425
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00408b0e
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4045e1
movzx eax, word [ebp - 0x40]
jmp 0x4045e4
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040db6a
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x404602
push edi
call fcn.004035c9
call fcn.004035eb
jmp 0x404634
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00404eb3
ret
Function at 0x4085d1
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 0x4085ff
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 0x408606
cmp ebx, dword [eax + 4]
jae 0x408606
xor eax, eax
jmp 0x4087f6
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x408617
xor eax, eax
inc eax
jmp 0x4087f5
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40862d
cmp ecx, edx
jae 0x408772
cmp dword [eax + 4], 0
je 0x408636
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40861e
cmp dword [ebp + 8], 0
je 0x408658
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x408772
cmp eax, esi
jae 0x408772
mov eax, dword [0x420a20]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40867d
cmp dword [esi*4 + 0x420a28], edi
je 0x408776
inc esi
cmp esi, eax
jl 0x40866b
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4087f2
cmp dword [ebp - 8], 0x1000000
jne 0x4087f2
test byte [ebp - 0xc], 0xcc
je 0x4086fb
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4087f2
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4087f2
cmp word [eax + 0x18], 0x10b
jne 0x4087f2
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4087f2
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4086fb
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4086fb
test byte [ecx + 0x27], 0x80
jne 0x408772
push 1
push 0x420a68
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40860f
mov ecx, dword [0x420a20]
test ecx, ecx
mov edx, ecx
jle 0x40872f
lea eax, [ecx*4 + 0x420a24]
cmp dword [eax], edi
je 0x40872f
dec edx
sub eax, 4
test edx, edx
jg 0x408723
test edx, edx
jne 0x408760
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40873c
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x408754
lea eax, [edx*4 + 0x420a28]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x408742
cmp ecx, 0x10
jge 0x408760
inc ecx
mov dword [0x420a20], ecx
push 0
push 0x420a68
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40860f
xor eax, eax
jmp 0x4087f5
test esi, esi
jle 0x40860f
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x420a68
call ebx
test eax, eax
jne 0x40860f
cmp dword [esi*4 + 0x420a28], edi
je 0x4087cc
mov eax, dword [0x420a20]
lea esi, [eax - 1]
test esi, esi
jl 0x4087ba
cmp dword [esi*4 + 0x420a28], edi
je 0x4087b6
dec esi
jns 0x4087aa
test esi, esi
jge 0x4087ca
cmp eax, 0x10
jge 0x4087c5
inc eax
mov dword [0x420a20], eax
lea esi, [eax - 1]
jmp 0x4087cc
je 0x4087e4
xor ecx, ecx
test esi, esi
jl 0x4087e4
lea eax, [ecx*4 + 0x420a28]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4087d2
push 0
push 0x420a68
call ebx
jmp 0x40860f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4087fa
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x41d970]
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 + 0x41e158]
je 0x40882f
inc eax
cmp eax, 0x13
jb 0x408820
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x41e158]
jne 0x408955
mov eax, dword [0x420884]
cmp eax, 1
je 0x40892d
cmp eax, edx
jne 0x40885f
cmp dword [0x41d960], 1
je 0x40892d
cmp ecx, 0xfc
je 0x408955
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 0x408895
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004078a0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004049d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4088c9
mov eax, edi
push eax
call fcn.004049d0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x419158
push edi
call fcn.0040b3e0
add esp, 0x10
push edi
call fcn.004049d0
push dword [esi + 0x41e15c]
mov ebx, eax
call fcn.004049d0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004036a0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004078a0
push edi
push ebx
call fcn.004078b0
push 0x419138
push ebx
call fcn.004078b0
push dword [esi + 0x41e15c]
push ebx
call fcn.004078b0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040b5b1
add esp, 0x2c
jmp 0x408955
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x41e15c]
push dword [esi]
call fcn.004049d0
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.004049be
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40b5b1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x420cd8], ebx
push esi
push edi
jne 0x40b631
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40b66c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x419ac8
push edi
call esi
test eax, eax
mov dword [0x420cd8], eax
je 0x40b66c
push 0x419ab8
push edi
call esi
push 0x419aa4
push edi
mov dword [0x420cdc], eax
call esi
cmp dword [0x420838], 2
mov dword [0x420ce0], eax
jne 0x40b631
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x420ce8], eax
je 0x40b631
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x420ce4], eax
mov eax, dword [0x420ce4]
test eax, eax
je 0x40b676
call eax
test eax, eax
je 0x40b65d
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x420ce8]
test eax, eax
je 0x40b65d
test byte [ebp - 8], 1
jne 0x40b676
cmp dword [0x420844], 4
jb 0x40b670
or byte [ebp + 0x12], 0x20
jmp 0x40b695
xor eax, eax
jmp 0x40b6a5
or byte [ebp + 0x12], 4
jmp 0x40b695
mov eax, dword [0x420cdc]
test eax, eax
je 0x40b695
call eax
mov ebx, eax
test ebx, ebx
je 0x40b695
mov eax, dword [0x420ce0]
test eax, eax
je 0x40b695
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x420cd8]
pop edi
pop esi
pop ebx
leave
ret