joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452f15
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x45302d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45302d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00475263
mov esi, eax
test esi, esi
je 0x45302d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x45302d
mov ecx, esi
call fcn.00452e80
cmp edi, eax
jge 0x45302d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x452fb3
mov dword [esp + 0x34], 1
jmp 0x45300e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45302d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00452430
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x454dc0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x454e26
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x454e26
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x454e07
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4551b0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4551e8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x455e10
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x455e59
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4562d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x484460
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00455e80
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00455f00
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00455f00
lea ecx, [esi + 0xc]
call fcn.004737a1
lea ecx, [esi + 0x10]
call fcn.004737a1
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00457490
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00457490
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00457490
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00473816
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00473816
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x475c06
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x475c3e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00473cbd
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00473c95
jmp 0x475c4a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4772fc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47733e
call fcn.0047d2a8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47733e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x477335
xor eax, eax
jmp 0x477346
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047734c
pop edi
pop esi
pop ebx
ret 4

Function at 0x47d7d8
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47d806
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47d824
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047d73e
jmp 0x47d824
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47d824
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047d73e
test edi, edi
mov eax, edi
jne 0x47d80e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x404fab
Capabilities:
Encode data using xor

Disassembly:
add bh, bh
or dword [eax + ecx*2], ebx
mov al, 0xa0
rol dword [edx + 0x41c520ef], 0xa3
inc esi
int 0x1a
or eax, 0xe451ac4d
lodsd eax, dword [esi]
dec ebp
lodsb al, byte [esi]
push ecx
in al, 0xad
ffreep st(1)
mov ebx, dword [eax]
movsx esi, byte [ebx]
les eax, [esi]
adc dword [0xfe2cfb79], esi
jmp 0x404f34
xlatb
dec edi
pop esi
aaa
inc edi
jo 0x404f47
insb byte es:[edi], dx
adc ebx, dword [ecx + 0x7ec125b1]
mov ss, esp
inc eax
ret
rol dword [edi + 0x72], 0xac
push cs
in al, dx
pop es
xchg ebx, ebx
inc eax
jle 0x404f5c
sal byte [0xeb5457e5], cl
aas
jns 0x40501a
test byte [0x48155c4], 0xbf
cmpsb byte [esi], byte es:[edi]
mov byte [ecx + ebx + 0x1df2e924], ah
sbb al, 0x96
fisttp word [edx + 0xc]
jns 0x40503b
or eax, 0x48155c4
mov edi, 0x19a488a6
and al, 0xe9
sbb eax, 0x4adf961c
or al, 0x79
jnp 0x404f95
aam 0xd1
mov dword [0xd544fb82], eax
shl dword [ebx - 0x2abb047e], 1
aad 0xb9
push ebp
das
mov dword [0xbf34353c], eax
xor bl, ch
mov ecx, 0x3ca32f55
xor eax, 0xdd32bf34
sub dword [eax + 0x5b], ebp
sal dword [edx + 0x2a], 0x3a
mov ch, 0x80
loope 0x404fc6
fsubr st(2), st(0)
xor dword [edx - 0x58], 0x38781599
stosb byte es:[edi], al
sal byte [ebp + 0x2b], 0x78
sbb eax, 0x563b54b
popfd
pop eax
fsubr st(2)
arpl word [0xead8589d], ax
mov esp, ebx
mov bh, 0x6f
ficomp dword [edx + 0x19fb56c4]
jb 0x405023
je 0x40502c
mov al, byte [0x2190c71d]
jmp 0x404fed
mov bh, 0xe
test eax, 0xc1f6eb60
arpl word [ebx], sp
push ebp
outsb dx, byte [esi]
and edx, dword [ebp + 0x6e]
invalid
add edx, dword [ebx + 0x54bd55a9]
inc ch
dec eax
mov dword [0x77c632ed], eax
jb 0x405048
or al, 0x25
call dword [edi]
stosb byte es:[edi], al
inc edi
and eax, 0x47aa17ff
or eax, 0xd0e83215
rol dword [eax + 0x1e8d8501], 0x32
pop eax
add dword [ebp + 0x58321e8d], eax
jo 0x40503a
jne 0x40506f
mov ebx, 0xb41d4dee
mov cl, 0xd
pop edi
pop ss
cmc
push cs
and dh, byte [edx]
xor dword [ebp - 0x5342ce25], esp
bound ecx, qword [edx + 0x27]
xchg edi, eax
hlt
invalid
Function at 0x4019a4
Capabilities:
Print debug messages

Disassembly:
push esi
lea eax, [esp + 0xc]
push eax
push dword [esp + 0xc]
mov esi, 0x41b260
push 0x3ff
push esi
call fcn.00408a05
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call fcn.00408964
pop ecx
pop esi
ret
Function at 0x40416a
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
cmp dword [esi + 4], 0
push edi
mov ebx, 0x4151e6
jne 0x4041b2
lea ecx, [esi + 0x10]
mov eax, dword [ecx]
test eax, eax
lea edi, [eax + 0xc]
jne 0x40418d
mov edi, ebx
mov esi, dword [esi + 0xc]
test esi, esi
je 0x404197
lea ebx, [esi + 0xc]
call fcn.00401010
inc eax
push eax
push edi
push 1
push 0
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x40423d
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4041be
add eax, 0xc
jmp 0x4041c0
mov eax, ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esi + 0xc]
xor edi, edi
cmp eax, edi
je 0x4041d8
add eax, 0xc
jmp 0x4041da
mov eax, ebx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push edi
push 0xf003f
push edi
push edi
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40423d
cmp dword [esi + 4], eax
jle 0x404211
mov eax, dword [esi]
push dword [ebp - 4]
mov ecx, dword [eax + edi*4]
call fcn.0040416a
inc edi
cmp edi, dword [esi + 4]
jl 0x4041fe
lea ecx, [esi + 0x10]
mov eax, dword [ecx]
test eax, eax
je 0x40421d
lea ebx, [eax + 0xc]
call fcn.00401010
inc eax
push eax
push ebx
push 1
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4048de
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x118]
push eax
xor esi, esi
push esi
push esi
push esi
push dword [ebp + 0xc]
mov ebx, ecx
mov edi, 0x100
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404923
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebx + 0x10]
call fcn.004013b0
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], edi
push esi
jmp 0x4049d8
push 0x18
call fcn.00402ce4
cmp eax, esi
pop ecx
je 0x40495c
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], esi
mov ebx, eax
jmp 0x40495e
xor ebx, ebx
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebx + 0xc]
call fcn.004013b0
mov ecx, ebx
call fcn.0040430f
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x14], eax
lea eax, [ebp - 8]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4049b7
push dword [ebp - 8]
lea eax, [ebp - 0x18]
push eax
mov ecx, ebx
call fcn.004048de
lea ecx, [ebp - 0x18]
call fcn.004051a8
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
inc dword [ebp - 0xc]
push ebx
mov dword [ebp - 4], edi
call fcn.004048c0
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x40493e
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0xc], esi
push esi
jmp 0x404a98
lea eax, [ebp - 0x118]
push eax
call fcn.004084b0
test eax, eax
pop ecx
jbe 0x404a7a
push 0x18
call fcn.00402ce4
cmp eax, esi
pop ecx
je 0x404a40
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], esi
mov dword [ebp - 8], eax
jmp 0x404a43
mov dword [ebp - 8], esi
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x118]
push eax
add ecx, 0xc
call fcn.004013b0
mov ecx, dword [ebp - 8]
call fcn.0040430f
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x218]
push eax
add ecx, 0x10
call fcn.004013b0
push dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
call fcn.004048c0
inc dword [ebp - 0xc]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 0xc]
push dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
call ebx
test eax, eax
je 0x404a10
mov ecx, dword [ebp + 8]
call fcn.004050d6
push esi
call fcn.004011a0
mov eax, dword [ebp + 8]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4065f4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x24]
mov dword [ebp - 0xc], edi
jmp 0x406607
mov edi, dword [ebp - 0xc]
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x6c]
sub eax, ecx
sub eax, edx
mov dword [ebp - 8], eax
jne 0x406626
test ecx, ecx
jne 0x406634
test edx, edx
jne 0x406634
mov dword [ebp - 8], edi
jmp 0x40669e
cmp eax, 0xffffffff
jne 0x406634
mov dword [ebp - 8], 0xfffffffe
jmp 0x40669e
mov eax, dword [esi + 0x24]
lea eax, [edi + eax - 0x106]
cmp ecx, eax
jb 0x40669e
mov eax, dword [esi + 0x30]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.00408e70
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x3c]
sub dword [esi + 0x68], edi
sub dword [esi + 0x64], edi
add esp, 0xc
sub dword [esi + 0x54], edi
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx edx, word [eax]
mov ebx, edx
sub ebx, edi
cmp edx, edi
sbb edx, edx
not edx
and edx, ebx
dec ecx
mov word [eax], dx
jne 0x406665
mov eax, dword [esi + 0x38]
mov edx, edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov ebx, ecx
sub ebx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, ebx
dec edx
mov word [eax], cx
jne 0x406684
add dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x406744
mov ebx, dword [esi + 0x6c]
add ebx, dword [esi + 0x64]
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 8]
add ebx, dword [esi + 0x30]
cmp eax, ecx
mov dword [ebp - 4], eax
jbe 0x4066c3
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x4066cd
xor eax, eax
jmp 0x406705
sub eax, dword [ebp - 4]
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
cmp dword [eax + 0x18], 0
jne 0x4066ef
push dword [ebp - 4]
push dword [edi]
push dword [edi + 0x30]
call fcn.00406e93
add esp, 0xc
mov dword [edi + 0x30], eax
push dword [ebp - 4]
push dword [edi]
push ebx
call fcn.00408e70
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x6c], eax
mov edi, dword [esi + 0x6c]
cmp edi, 3
jb 0x406730
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x30]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x50]
mov dword [esi + 0x40], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x4c]
mov dword [esi + 0x40], eax
cmp edi, 0x106
jae 0x406744
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x406604
pop edi
pop ebx
leave
ret
Function at 0x408589
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x416918
call fcn.0040a3e8
mov edi, 0x94
mov eax, edi
call fcn.00409bd0
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 [0x468a58], ecx
mov eax, dword [esi + 4]
mov dword [0x468a64], eax
mov edx, dword [esi + 8]
mov dword [0x468a68], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x468a5c], esi
cmp ecx, 2
je 0x4085e9
or esi, 0x8000
mov dword [0x468a5c], esi
shl eax, 8
add eax, edx
mov dword [0x468a60], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x408624
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x408624
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40863c
cmp eax, 0x20b
je 0x408629
mov dword [ebp - 0x1c], esi
jmp 0x408650
cmp dword [ecx + 0x84], 0xe
jbe 0x408624
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40864a
cmp dword [ecx + 0x74], 0xe
jbe 0x408624
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040bb67
pop ecx
test eax, eax
jne 0x408664
push 0x1c
call fcn.00408565
pop ecx
call fcn.0040ba5e
test eax, eax
jne 0x408675
push 0x10
call fcn.00408565
pop ecx
call fcn.0040b7f8
mov dword [ebp - 4], esi
call fcn.0040b5fa
test eax, eax
jge 0x40868e
push 0x1b
call fcn.00408540
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x46a2a4], eax
call fcn.0040b4d8
mov dword [0x468a38], eax
call fcn.0040b436
test eax, eax
jge 0x4086b4
push 8
call fcn.00408540
pop ecx
call fcn.0040b203
test eax, eax
jge 0x4086c5
push 9
call fcn.00408540
pop ecx
push 1
call fcn.0040ad25
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4086db
push eax
call fcn.00408540
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040b1a6
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4086fc
movzx eax, word [ebp - 0x40]
jmp 0x4086ff
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401700
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40871d
push edi
call fcn.0040ae52
call fcn.0040ae74
jmp 0x40874f
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040a423
ret
Function at 0x40ad8f
Capabilities:
Terminate process

Disassembly:
push 8
push 0x416b28
call fcn.0040a3e8
push 8
call fcn.0040d089
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x468a98], esi
jne 0x40adc3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x468a94], esi
mov al, byte [ebp + 0x10]
mov byte [0x468a90], al
cmp dword [ebp + 0xc], edi
jne 0x40ae0d
cmp dword [0x469288], edi
je 0x40adfd
mov eax, dword [0x469284]
sub eax, 4
mov dword [0x469284], eax
cmp eax, dword [0x469288]
jb 0x40adfd
mov eax, dword [eax]
cmp eax, edi
je 0x40adde
call eax
jmp 0x40adde
push 0x419040
mov eax, 0x419038
call fcn.0040ad0d
pop ecx
push 0x41904c
mov eax, 0x419044
call fcn.0040ad0d
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40ae3e
cmp dword [ebp + 0x10], edi
jne 0x40ae4c
mov dword [0x468a98], esi
push dword [ebp + 8]
call fcn.0040accb
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40ae4b
push 8
call fcn.0040cfd4
pop ecx
ret
call fcn.0040a423
ret

Function at 0x40ae92
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x41a918]
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 + 0x41a6a0]
je 0x40aec7
inc eax
cmp eax, 0x13
jb 0x40aeb8
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x41a6a0]
jne 0x40afed
mov eax, dword [0x468a40]
cmp eax, 1
je 0x40afc5
cmp eax, edx
jne 0x40aef7
cmp dword [0x41a264], 1
je 0x40afc5
cmp ecx, 0xfc
je 0x40afed
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 0x40af2d
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00408760
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004084b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40af61
mov eax, edi
push eax
call fcn.004084b0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x416f20
push edi
call fcn.00410a70
add esp, 0x10
push edi
call fcn.004084b0
push dword [esi + 0x41a6a4]
mov ebx, eax
call fcn.004084b0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00409bd0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00408760
push edi
push ebx
call fcn.00408770
push 0x416f00
push ebx
call fcn.00408770
push dword [esi + 0x41a6a4]
push ebx
call fcn.00408770
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041096f
add esp, 0x2c
jmp 0x40afed
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x41a6a4]
push dword [esi]
call fcn.004084b0
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.0040d294
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40cc01
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x41a918]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x40cc32
xor eax, eax
jmp 0x40cdbb
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x469180]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x40cc6e
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.004114b5
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40cd49
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x40cd87
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x40ccd2
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40ccc3
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x40cca3
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40cd12
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x40cd1b
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x40cc94
jmp 0x40cd1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x40cdb6
cmp dword [ebp - 0x6c], edi
je 0x40cd87
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x40cd7c
call fcn.0040930e
mov dword [eax], 9
call fcn.00409317
mov dword [eax], esi
jmp 0x40cdb1
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40cd71
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x40cd1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x40cd1d
push dword [ebp - 0x6c]
call fcn.00409320
pop ecx
jmp 0x40cdb1
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40cd9f
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x40cd9f
xor eax, eax
jmp 0x40cdb9
call fcn.0040930e
mov dword [eax], 0x1c
call fcn.00409317
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x40cdb9
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0040d294
add ebp, 0x3a0
leave
ret