joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c8a0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 0x50], ecx
push 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 8], 0
je 0x43c911
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x38]
cmp dword [ecx + edx*4], 0
je 0x43c906
cmp dword [ebp - 0x38], 0xa
jge 0x43c906
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x38]
mov eax, dword [ecx + edx*4]
mov ecx, dword [ebp - 0x38]
mov edx, dword [eax]
mov dword [ebp + ecx*4 - 0x34], edx
mov eax, dword [ebp - 0x38]
add eax, 1
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x43c8c8
mov edx, dword [ebp - 0x38]
mov dword [ebp + edx*4 - 0x34], 0
cmp dword [ebp + 8], 0
je 0x43c994
mov ecx, dword [ebp - 0x50]
call fcn.0043ca60
mov dword [0x4af508], eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x3c]
cmp dword [ebp + eax*4 - 0x34], 0
je 0x43c981
cmp dword [ebp - 0x3c], 0xa
jge 0x43c981
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp + ecx*4 - 0x34]
cmp edx, dword [0x49acd4]
jne 0x43c95c
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [ebp - 0x3c], eax
jmp 0x43c932
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp + edx*4 - 0x34]
mov dword [ecx*4 + 0x49acd8], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x40]
add edx, 1
mov dword [ebp - 0x40], edx
jmp 0x43c932
mov eax, dword [ebp - 0x40]
mov dword [eax*4 + 0x49acd8], 0
jmp 0x43ca1d
mov dword [0x4af508], 1
mov dword [ebp - 0x44], 0
mov ecx, dword [ebp - 0x44]
cmp dword [ebp + ecx*4 - 0x34], 0
je 0x43ca1d
cmp dword [ebp - 0x44], 0xa
jge 0x43ca1d
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
jmp 0x43c9ce
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
cmp dword [ebp - 0x4c], 0xa
jge 0x43c9ff
mov eax, dword [ebp - 0x4c]
cmp dword [eax*4 + 0x49acd8], 0
je 0x43c9ff
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x44]
mov eax, dword [ecx*4 + 0x49acd8]
cmp eax, dword [ebp + edx*4 - 0x34]
jne 0x43c9fd
mov dword [ebp - 0x48], 1
jmp 0x43c9ff
jmp 0x43c9c5
cmp dword [ebp - 0x48], 0
jne 0x43ca12
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp + ecx*4 - 0x34]
mov dword [0x49acd4], edx
mov eax, dword [ebp - 0x44]
add eax, 1
mov dword [ebp - 0x44], eax
jmp 0x43c9a5
cmp dword [ebp - 4], 1
jne 0x43ca3f
mov ecx, dword [ebp - 0x34]
mov dword [0x49acd4], ecx
mov edx, dword [ebp - 0x34]
mov dword [0x49acd8], edx
mov dword [0x49acdc], 0
cmp dword [ebp - 4], 0
jne 0x43ca59
mov dword [0x49acd4], 0
mov dword [0x49acd8], 0
mov esp, ebp
pop ebp
ret 4
Function at 0x43ca60
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x473624
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov dword [ebp - 0x50], ecx
push 0x49ad0c
lea ecx, [ebp - 0x10]
call fcn.00407ac0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0xffffffff
je 0x43cbbc
lea eax, [ebp - 0x14]
push eax
push 0x47d04c
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004105e0
lea ecx, [ebp - 0x20]
call fcn.004067d0
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x43cad8
lea ecx, [ebp - 0x20]
call fcn.00407b30
jmp 0x43cbbc
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x10
mov word [ebp - 0x40], 2
push 0x50
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x3e], ax
lea ecx, [ebp - 0x20]
call fcn.004067d0
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x43cb4a
lea ecx, [ebp - 0x20]
call fcn.004067d0
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x43cb3d
lea ecx, [ebp - 0x20]
call fcn.00407b30
jmp 0x43ca99
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebp - 0x3c], edx
push 0x10
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x43cb75
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [ebp - 0x20]
call fcn.00407b30
jmp 0x43ca99
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
mov eax, dword [ebp - 0x2c]
mov dword [0x49acd4], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 0x48], 1
lea ecx, [ebp - 0x20]
call fcn.00407b30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00407b30
mov eax, dword [ebp - 0x48]
jmp 0x43cbdf
mov dword [0x49acd4], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00407b30
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x43d150
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov dword [ebp - 0x19c], ecx
mov dword [ebp - 0x194], 0
lea eax, [ebp - 0x190]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [ebp - 0x19c]
cmp dword [ecx + 0x468c], 0
je 0x43d194
mov eax, 1
jmp 0x43d2b9
mov edx, dword [ebp - 0x19c]
mov dword [edx + 0x468c], 1
mov dword [ebp - 0x194], 0
jmp 0x43d1bf
mov eax, dword [ebp - 0x194]
add eax, 1
mov dword [ebp - 0x194], eax
cmp dword [ebp - 0x194], 0x5df
jge 0x43d1e7
mov ecx, dword [ebp - 0x194]
imul ecx, ecx, 0x1c
mov edx, dword [ebp - 0x19c]
mov dword [edx + ecx + 0x4694], 0
jmp 0x43d1b0
mov eax, dword [ebp - 0x19c]
add eax, 0x177c
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [ebp - 0x19c]
mov dword [ecx + 0x4690], 0xa
mov dword [ebp - 0x194], 0
jmp 0x43d224
mov edx, dword [ebp - 0x194]
add edx, 1
mov dword [ebp - 0x194], edx
mov eax, dword [ebp - 0x19c]
mov ecx, dword [ebp - 0x194]
cmp ecx, dword [eax + 0x4690]
jge 0x43d2b4
mov dword [ebp - 0x198], 0
mov edx, dword [ebp - 0x194]
mov eax, dword [ebp - 0x19c]
mov ecx, dword [ebp - 0x19c]
mov dword [eax + edx*8 + 0x1794], ecx
mov edx, dword [ebp - 0x194]
mov eax, dword [ebp - 0x19c]
mov ecx, dword [ebp - 0x194]
mov dword [eax + edx*8 + 0x1798], ecx
lea edx, [ebp - 0x198]
push edx
push 0
mov eax, dword [ebp - 0x194]
mov ecx, dword [ebp - 0x19c]
lea edx, [ecx + eax*8 + 0x1794]
push edx
push 0x43d130
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x194]
mov edx, dword [ebp - 0x19c]
mov dword [edx + ecx*4], eax
jmp 0x43d215
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x43d2c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x468c], 0
je 0x43d45e
mov ecx, dword [ebp - 0x10]
add ecx, 0x177c
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
jmp 0x43d2fb
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x4690]
jge 0x43d378
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x468c], 0
je 0x43d378
mov eax, dword [ebp - 4]
imul eax, eax, 0x1c
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + eax + 0x4694], 0
jne 0x43d373
push 0x1c
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
imul eax, eax, 0x1c
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + eax + 0x4694]
push edx
call fcn.004502d0
add esp, 0xc
mov eax, dword [ebp - 4]
imul eax, eax, 0x1c
mov ecx, dword [ebp - 0x10]
mov dword [ecx + eax + 0x4694], 2
mov edx, dword [ebp - 0x10]
add edx, 0x177c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 4]
jmp 0x43d461
jmp 0x43d2f2
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x4690]
jne 0x43d442
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x4690], 0x5df
jge 0x43d442
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x4690]
add ecx, 0xa
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x4690], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x4690], 0x5df
jle 0x43d3ce
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x4690], 0x5df
mov edx, dword [ebp - 4]
mov dword [ebp - 8], edx
jmp 0x43d3df
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
cmp edx, dword [ecx + 0x4690]
jge 0x43d442
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
mov dword [ecx + eax*8 + 0x1794], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov dword [ecx + eax*8 + 0x1798], edx
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
lea eax, [edx + ecx*8 + 0x1794]
push eax
push 0x43d130
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov dword [edx + ecx*4], eax
jmp 0x43d3d6
mov eax, dword [ebp - 0x10]
add eax, 0x177c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x43d2c9
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret 4
Function at 0x444890
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x444900
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp + 8]
call fcn.00407bf0
add eax, 1
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 8], eax
lea ecx, [ebp + 8]
call fcn.004067d0
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00450070
add esp, 8
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 4]
push eax
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [ebp + 8]
call fcn.00407b30
mov esp, ebp
pop ebp
ret
Function at 0x4476a8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x4476fb
call fcn.0046d3d6
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x4476fb
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x4476f1
xor eax, eax
jmp 0x447814
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x44772b
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x44772b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x447811
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x447758
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0044834a
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x447811
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4477a1
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x4477a1
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x44779b
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0044834a
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x447801
and dword [ebp + 0xc], 0
jmp 0x447801
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x447801
push 0xc
call fcn.004665b6
mov esi, eax
test esi, esi
pop ecx
je 0x4477e3
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x4477e5
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x4477fc
push dword [ebp - 8]
call fcn.00461204
jmp 0x447801
call fcn.004611db
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x447766
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x452ed2
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.00450200
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x452f6d
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 [0x4bfff4]
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 0x452f6d
cmp eax, 1
je 0x452f8e
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 0x452f6d
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x452f3a
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x452f69
xor eax, eax
inc eax
jmp 0x452fad
cmp edi, eax
jae 0x452f71
xor eax, eax
jmp 0x452fad
cmp eax, esi
jae 0x452f78
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 [0x4bfff4]
jmp 0x452f91
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 0x45308b
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4821a0
call fcn.004532c0
mov edi, 0x94
mov eax, edi
call fcn.00450200
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 [0x4bfff4], ecx
mov eax, dword [esi + 4]
mov dword [0x4c0000], eax
mov edx, dword [esi + 8]
mov dword [0x4c0004], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4bfff8], esi
cmp ecx, 2
je 0x4530eb
or esi, 0x8000
mov dword [0x4bfff8], esi
shl eax, 8
add eax, edx
mov dword [0x4bfffc], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x453126
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x453126
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x45313e
cmp eax, 0x20b
je 0x45312b
mov dword [ebp - 0x1c], esi
jmp 0x453152
cmp dword [ecx + 0x84], 0xe
jbe 0x453126
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x45314c
cmp dword [ecx + 0x74], 0xe
jbe 0x453126
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00459740
pop ecx
test eax, eax
jne 0x453166
push 0x1c
call fcn.00453067
pop ecx
call fcn.0045533f
test eax, eax
jne 0x453177
push 0x10
call fcn.00453067
pop ecx
call fcn.0045af40
mov dword [ebp - 4], esi
call fcn.004590ec
test eax, eax
jge 0x453190
push 0x1b
call fcn.00453042
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4c18f0], eax
call fcn.0045ae1e
mov dword [0x4bffe4], eax
call fcn.0045ad7c
test eax, eax
jge 0x4531b6
push 8
call fcn.00453042
pop ecx
call fcn.0045ab49
test eax, eax
jge 0x4531c7
push 9
call fcn.00453042
pop ecx
push 1
call fcn.00453b4d
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4531dd
push eax
call fcn.00453042
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0045aaec
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4531fe
movzx eax, word [ebp - 0x40]
jmp 0x453201
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0045f6c2
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x45321f
push edi
call fcn.00453c7a
call fcn.00453c9c
jmp 0x453251
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004532fb
ret
Function at 0x453bb7
Capabilities:
Terminate process

Disassembly:
push 8
push 0x482230
call fcn.004532c0
push 8
call fcn.004572c4
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4c0034], esi
jne 0x453beb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4c0030], esi
mov al, byte [ebp + 0x10]
mov byte [0x4c002c], al
cmp dword [ebp + 0xc], edi
jne 0x453c35
cmp dword [0x4c18e8], edi
je 0x453c25
mov eax, dword [0x4c18e4]
sub eax, 4
mov dword [0x4c18e4], eax
cmp eax, dword [0x4c18e8]
jb 0x453c25
mov eax, dword [eax]
cmp eax, edi
je 0x453c06
call eax
jmp 0x453c06
push 0x48f0cc
mov eax, 0x48f0c4
call fcn.00453b35
pop ecx
push 0x48f0d8
mov eax, 0x48f0d0
call fcn.00453b35
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x453c66
cmp dword [ebp + 0x10], edi
jne 0x453c74
mov dword [0x4c0034], esi
push dword [ebp + 8]
call fcn.00453af3
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x453c73
push 8
call fcn.0045720f
pop ecx
ret
call fcn.004532fb
ret
Function at 0x458132
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 0x458160
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 0x458167
cmp ebx, dword [eax + 4]
jae 0x458167
xor eax, eax
jmp 0x458357
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x458178
xor eax, eax
inc eax
jmp 0x458356
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x45818e
cmp ecx, edx
jae 0x4582d3
cmp dword [eax + 4], 0
je 0x458197
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x45817f
cmp dword [ebp + 8], 0
je 0x4581b9
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4582d3
cmp eax, esi
jae 0x4582d3
mov eax, dword [0x4c0288]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4581de
cmp dword [esi*4 + 0x4c0290], edi
je 0x4582d7
inc esi
cmp esi, eax
jl 0x4581cc
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x458353
cmp dword [ebp - 8], 0x1000000
jne 0x458353
test byte [ebp - 0xc], 0xcc
je 0x45825c
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x458353
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x458353
cmp word [eax + 0x18], 0x10b
jne 0x458353
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x458353
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x45825c
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x45825c
test byte [ecx + 0x27], 0x80
jne 0x4582d3
push 1
push 0x4c02d0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x458170
mov ecx, dword [0x4c0288]
test ecx, ecx
mov edx, ecx
jle 0x458290
lea eax, [ecx*4 + 0x4c028c]
cmp dword [eax], edi
je 0x458290
dec edx
sub eax, 4
test edx, edx
jg 0x458284
test edx, edx
jne 0x4582c1
push 0xf
pop ebx
cmp ecx, ebx
jg 0x45829d
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4582b5
lea eax, [edx*4 + 0x4c0290]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4582a3
cmp ecx, 0x10
jge 0x4582c1
inc ecx
mov dword [0x4c0288], ecx
push 0
push 0x4c02d0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x458170
xor eax, eax
jmp 0x458356
test esi, esi
jle 0x458170
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4c02d0
call ebx
test eax, eax
jne 0x458170
cmp dword [esi*4 + 0x4c0290], edi
je 0x45832d
mov eax, dword [0x4c0288]
lea esi, [eax - 1]
test esi, esi
jl 0x45831b
cmp dword [esi*4 + 0x4c0290], edi
je 0x458317
dec esi
jns 0x45830b
test esi, esi
jge 0x45832b
cmp eax, 0x10
jge 0x458326
inc eax
mov dword [0x4c0288], eax
lea esi, [eax - 1]
jmp 0x45832d
je 0x458345
xor ecx, ecx
test esi, esi
jl 0x458345
lea eax, [ecx*4 + 0x4c0290]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x458333
push 0
push 0x4c02d0
call ebx
jmp 0x458170
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x458b08
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4917c8]
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 0x458b39
xor eax, eax
jmp 0x458cc2
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 + 0x4c0580]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x458b75
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0045cd21
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x458c50
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x458c8e
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 0x458bd9
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x458bca
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 0x458baa
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 0x458c19
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x458c22
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x458b9b
jmp 0x458c24
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x458cbd
cmp dword [ebp - 0x6c], edi
je 0x458c8e
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x458c83
call fcn.0045444a
mov dword [eax], 9
call fcn.00454453
mov dword [eax], esi
jmp 0x458cb8
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 0x458c78
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x458c24
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x458c24
push dword [ebp - 0x6c]
call fcn.0045445c
pop ecx
jmp 0x458cb8
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x458ca6
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x458ca6
xor eax, eax
jmp 0x458cc0
call fcn.0045444a
mov dword [eax], 0x1c
call fcn.00454453
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x458cc0
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00453291
add ebp, 0x3a0
leave
ret