joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f330
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
push esi
push edi
push ecx
lea edi, [ebp - 0x1b8]
mov ecx, 0x6e
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x457e80]
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
mov esi, esp
lea eax, [ebp - 0x19c]
push eax
push 0x202
call dword [sym.imp.ws2_32.dll_WSAStartup]
cmp esi, esp
call fcn.0042c490
test eax, eax
je 0x41f380
xor al, al
jmp 0x41f443
mov esi, esp
push 0
push 1
push 2
call dword [sym.imp.ws2_32.dll_socket]
cmp esi, esp
call fcn.0042c490
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 4], 0xffffffff
jne 0x41f3ab
xor al, al
jmp 0x41f443
mov dword [ebp - 0x1a8], 1
mov esi, esp
push 4
lea eax, [ebp - 0x1a8]
push eax
push 4
push 0xffff
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ws2_32.dll_setsockopt]
cmp esi, esp
call fcn.0042c490
mov dword [ebp - 0x1b4], 0x4000
mov esi, esp
push 4
lea eax, [ebp - 0x1b4]
push eax
push 0x1001
push 0xffff
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ws2_32.dll_setsockopt]
cmp esi, esp
call fcn.0042c490
mov dword [ebp - 0x1b4], 0x4000
mov esi, esp
push 4
lea eax, [ebp - 0x1b4]
push eax
push 0x1002
push 0xffff
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ws2_32.dll_setsockopt]
cmp esi, esp
call fcn.0042c490
mov al, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x41f46f]
call fcn.0042c4c0
pop eax
pop edx
mov ecx, dword [ebp - 4]
call fcn.0042c800
pop edi
pop esi
add esp, 0x1b8
cmp ebp, esp
call fcn.0042c490
mov esp, ebp
pop ebp
ret

Function at 0x4203d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 4], ecx
mov esi, esp
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042dc40
add esp, 4
push eax
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x60]
push ecx
call dword [sym.imp.kernel32.dll_WriteFile]
cmp esi, esp
call fcn.0042c490
push edx
mov ecx, ebp
push eax
lea edx, [0x42043a]
call fcn.0042c4c0
pop eax
pop edx
pop esi
add esp, 0x10
cmp ebp, esp
call fcn.0042c490
mov esp, ebp
pop ebp
ret 4

Function at 0x420460
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], ecx
mov esi, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp esi, esp
call fcn.0042c490
pop esi
add esp, 4
cmp ebp, esp
call fcn.0042c490
mov esp, ebp
pop ebp
ret 4
Function at 0x4231a0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, 0xcccccccc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 4], 0x459288
mov dword [ebp - 8], 0x459290
mov dword [ebp - 0xc], 0x4598bc
cmp dword [0x457e70], 0xffffffff
jge 0x4231e8
push 0x1105
call fcn.00423120
add esp, 4
mov dword [0x457e70], 0x26f
mov dword [0x459c4c], 0x45928c
mov eax, dword [0x459288]
mov dword [ebp - 0x10], eax
mov ecx, dword [0x45928c]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 0xe4
jmp 0x42322d
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 8]
add edx, 4
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x18]
sub eax, 1
mov dword [ebp - 0x18], eax
je 0x42327e
mov ecx, dword [ebp - 0x10]
and ecx, 0x80000000
mov edx, dword [ebp - 0x14]
and edx, 0x7fffffff
or ecx, edx
shr ecx, 1
mov eax, dword [ebp - 0xc]
xor ecx, dword [eax]
mov edx, dword [ebp - 0x14]
and edx, 1
neg edx
sbb edx, edx
and edx, 0x9908b0df
xor ecx, edx
mov eax, dword [ebp - 4]
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
add ecx, 4
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
add edx, 4
mov dword [ebp - 0xc], edx
jmp 0x423216
mov dword [ebp - 0xc], 0x459288
mov dword [ebp - 0x18], 0x18d
jmp 0x4232a5
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x18]
sub ecx, 1
mov dword [ebp - 0x18], ecx
je 0x4232f4
mov edx, dword [ebp - 0x10]
and edx, 0x80000000
mov eax, dword [ebp - 0x14]
and eax, 0x7fffffff
or edx, eax
shr edx, 1
mov ecx, dword [ebp - 0xc]
xor edx, dword [ecx]
mov eax, dword [ebp - 0x14]
and eax, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor edx, eax
mov ecx, dword [ebp - 4]
mov dword [ecx], edx
mov edx, dword [ebp - 4]
add edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 0xc], eax
jmp 0x42328e
mov ecx, dword [0x459288]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
and edx, 0x80000000
mov eax, dword [ebp - 0x14]
and eax, 0x7fffffff
or edx, eax
shr edx, 1
mov ecx, dword [ebp - 0xc]
xor edx, dword [ecx]
mov eax, dword [ebp - 0x14]
and eax, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor edx, eax
mov ecx, dword [ebp - 4]
mov dword [ecx], edx
mov edx, dword [ebp - 0x14]
shr edx, 0xb
xor edx, dword [ebp - 0x14]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
shl eax, 7
and eax, 0x9d2c5680
xor eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
shr eax, 0x12
xor eax, dword [ebp - 0x14]
add esp, 0x18
cmp ebp, esp
call fcn.0042c490
mov esp, ebp
pop ebp
ret
Function at 0x423380
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0xcccccccc
mov eax, dword [0x457e70]
sub eax, 1
mov dword [0x457e70], eax
jns 0x4233a1
call fcn.004231a0
jmp 0x4233f1
mov ecx, dword [0x459c4c]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [0x459c4c]
add eax, 4
mov dword [0x459c4c], eax
mov ecx, dword [ebp - 4]
shr ecx, 0xb
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
shl edx, 7
and edx, 0x9d2c5680
xor edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
shl eax, 0xf
and eax, 0xefc60000
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
shr eax, 0x12
xor eax, dword [ebp - 4]
add esp, 4
cmp ebp, esp
call fcn.0042c490
mov esp, ebp
pop ebp
ret

Function at 0x423860
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.0041d5d0
movzx eax, al
test eax, eax
je 0x423904
mov word [ebp - 0xc], 1
mov word [ebp - 0xa], 0
mov esi, esp
push 4
lea ecx, [ebp - 0xc]
push ecx
push 0x80
push 0xffff
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.ws2_32.dll_setsockopt]
cmp esi, esp
call fcn.0042c490
mov esi, esp
push 2
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.ws2_32.dll_shutdown]
cmp esi, esp
call fcn.0042c490
mov esi, esp
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.ws2_32.dll_closesocket]
cmp esi, esp
call fcn.0042c490
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], 0xffffffff
mov eax, dword [ebp - 4]
push eax
call fcn.00411620
mov ecx, eax
call fcn.004243c0
push edx
mov ecx, ebp
push eax
lea edx, [0x423924]
call fcn.0042c4c0
pop eax
pop edx
pop esi
add esp, 0x10
cmp ebp, esp
call fcn.0042c490
mov esp, ebp
pop ebp
ret
Function at 0x423980
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
push edi
push ecx
lea edi, [ebp - 0x44]
mov ecx, 0x11
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 4]
call fcn.0041d5d0
movzx eax, al
test eax, eax
jne 0x4239c0
xor eax, eax
jmp 0x423a5f
mov ecx, dword [ebp - 4]
add ecx, 0x78
push ecx
lea ecx, [ebp - 0x38]
call fcn.0040e380
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x60]
mov ecx, dword [ebp - 4]
add eax, dword [ecx + 0x68]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ecx, dword [edx + 0x2c]
sub ecx, dword [eax + 0x68]
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x38]
call fcn.0040e400
mov esi, esp
push 0
mov edx, dword [ebp - 4]
add edx, 0x30
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 1
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.ws2_32.dll_WSARecv]
cmp esi, esp
call fcn.0042c490
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0xffffffff
jne 0x423a5c
mov esi, esp
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.0042c490
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0x3e5
je 0x423a4c
cmp dword [ebp - 0x44], 0
jne 0x423a50
xor eax, eax
jmp 0x423a5f
mov ecx, dword [ebp - 4]
call fcn.00423950
xor eax, eax
jmp 0x423a5f
mov eax, dword [ebp - 0xc]
push edx
mov ecx, ebp
push eax
lea edx, [0x423a80]
call fcn.0042c4c0
pop eax
pop edx
pop edi
pop esi
add esp, 0x44
cmp ebp, esp
call fcn.0042c490
mov esp, ebp
pop ebp
ret

Function at 0x423b60
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
push ecx
lea edi, [ebp - 0x28]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 4]
call fcn.0041d5d0
movzx eax, al
test eax, eax
jne 0x423b97
or eax, 0xffffffff
jmp 0x423c0c
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], edx
mov esi, esp
push 0
mov eax, dword [ebp - 4]
add eax, 0x48
push eax
push 0
lea ecx, [ebp - 0xc]
push ecx
push 1
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.ws2_32.dll_WSASend]
cmp esi, esp
call fcn.0042c490
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x423c09
mov esi, esp
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.0042c490
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x3e5
je 0x423bf8
cmp dword [ebp - 0x28], 0
jne 0x423bfc
xor eax, eax
jmp 0x423c0c
mov ecx, dword [ebp - 4]
call fcn.00423950
or eax, 0xffffffff
jmp 0x423c0c
mov eax, dword [ebp - 0xc]
push edx
mov ecx, ebp
push eax
lea edx, [0x423c2f]
call fcn.0042c4c0
pop eax
pop edx
pop edi
pop esi
add esp, 0x28
cmp ebp, esp
call fcn.0042c490
mov esp, ebp
pop ebp
ret 8
Function at 0x428a00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 0
mov esi, esp
push 0
push 0
push 1
push 0
call dword [sym.imp.kernel32.dll_CreateEventA]
cmp esi, esp
call fcn.0042c490
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 4]
mov byte [edx + 0xc], 1
mov esi, esp
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x428c90
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
cmp esi, esp
call fcn.0042c490
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0xc]
push edx
mov ecx, ebp
push eax
lea edx, [0x428a91]
call fcn.0042c4c0
pop eax
pop edx
pop esi
add esp, 0x10
cmp ebp, esp
call fcn.0042c490
mov esp, ebp
pop ebp
ret

Function at 0x428ab0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x428ad9
jmp 0x428bb0
mov esi, esp
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.kernel32.dll_SetEvent]
cmp esi, esp
call fcn.0042c490
mov esi, esp
push 0x3e8
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp esi, esp
call fcn.0042c490
mov esi, esp
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.kernel32.dll_GetExitCodeThread]
cmp esi, esp
call fcn.0042c490
cmp dword [ebp - 0xc], 0x103
jne 0x428b5d
mov esi, esp
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.kernel32.dll_TerminateThread]
cmp esi, esp
call fcn.0042c490
mov esi, esp
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp esi, esp
call fcn.0042c490
jmp 0x428b73
mov esi, esp
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp esi, esp
call fcn.0042c490
mov esi, esp
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.kernel32.dll_ResetEvent]
cmp esi, esp
call fcn.0042c490
mov esi, esp
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp esi, esp
call fcn.0042c490
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0xffffffff
mov ecx, dword [ebp - 4]
mov byte [ecx + 0xc], 0
push edx
mov ecx, ebp
push eax
lea edx, [0x428bd0]
call fcn.0042c4c0
pop eax
pop edx
pop esi
add esp, 0x10
cmp ebp, esp
call fcn.0042c490
mov esp, ebp
pop ebp
ret
Function at 0x428bf0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x428c0a
jmp 0x428c27
mov esi, esp
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.kernel32.dll_SuspendThread]
cmp esi, esp
call fcn.0042c490
mov eax, dword [ebp - 4]
mov byte [eax + 0xc], 2
pop esi
add esp, 4
cmp ebp, esp
call fcn.0042c490
mov esp, ebp
pop ebp
ret

Function at 0x428c40
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x428c5a
jmp 0x428c77
mov esi, esp
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.kernel32.dll_ResumeThread]
cmp esi, esp
call fcn.0042c490
mov eax, dword [ebp - 4]
mov byte [eax + 0xc], 1
pop esi
add esp, 4
cmp ebp, esp
call fcn.0042c490
mov esp, ebp
pop ebp
ret
Function at 0x42a640
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
push edi
lea edi, [ebp - 0x48]
mov ecx, 0x12
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov esi, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.kernel32.dll_VirtualQuery]
cmp esi, esp
call fcn.0042c490
test eax, eax
jne 0x42a67b
xor eax, eax
jmp 0x42a762
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], edx
mov esi, esp
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
cmp esi, esp
call fcn.0042c490
test eax, eax
jne 0x42a6a7
xor eax, eax
jmp 0x42a762
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp - 0x30]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp + 8]
sub ecx, dword [ebp - 0x28]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], 0
jmp 0x42a6ee
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x34]
add eax, 0x28
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x30]
movzx edx, word [ecx + 6]
cmp dword [ebp - 0x3c], edx
jae 0x42a760
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
mov ecx, dword [edx + 0x10]
cmp ecx, dword [eax + 8]
jbe 0x42a71c
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x48], eax
jmp 0x42a725
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [ebp - 0x40]
jb 0x42a75b
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 0x44]
ja 0x42a75b
mov eax, dword [ebp - 0x3c]
add eax, 1
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov edx, dword [ebp - 0x38]
sub edx, dword [ebp - 0x40]
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
mov eax, 1
jmp 0x42a762
jmp 0x42a6dc
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x42a783]
call fcn.0042c4c0
pop eax
pop edx
pop edi
pop esi
add esp, 0x48
cmp ebp, esp
call fcn.0042c490
mov esp, ebp
pop ebp
ret
Function at 0x42b4f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push esi
push edi
lea edi, [ebp - 0x420]
mov ecx, pe_nt_image_headers32
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x457e80]
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x420], eax
mov ecx, dword [ebp - 0x420]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x408]
push eax
call fcn.0042e580
add esp, 0xc
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x420], 0
mov esi, esp
push 0
lea ecx, [ebp - 0x418]
push ecx
mov edx, dword [ebp - 0x410]
push edx
lea eax, [ebp - 0x408]
push eax
mov ecx, dword [0x459d5c]
push ecx
call dword [sym.imp.kernel32.dll_WriteFile]
cmp esi, esp
call fcn.0042c490
mov eax, dword [ebp - 0x410]
push edx
mov ecx, ebp
push eax
lea edx, [0x42b5a7]
call fcn.0042c4c0
pop eax
pop edx
mov ecx, dword [ebp - 4]
call fcn.0042c800
pop edi
pop esi
add esp, 0x420
cmp ebp, esp
call fcn.0042c490
mov esp, ebp
pop ebp
ret

Function at 0x42c800
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x457e80]
jne 0x42c809
ret
jmp fcn.0042c810

Function at 0x42e370
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450610
push 0x4309b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
call fcn.0042e4f0
mov dword [ebp - 4], 0
cmp dword [0x459fb0], 1
jne 0x42e3b9
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov dword [0x459fac], 1
mov cl, byte [ebp + 0x10]
mov byte [0x459fa8], cl
cmp dword [ebp + 0xc], 0
jne 0x42e41e
cmp dword [0x45b878], 0
je 0x42e40c
mov edx, dword [0x45b874]
sub edx, 4
mov dword [0x45b874], edx
mov eax, dword [0x45b874]
cmp eax, dword [0x45b878]
jb 0x42e40c
mov ecx, dword [0x45b874]
cmp dword [ecx], 0
je 0x42e40a
mov edx, dword [0x45b874]
call dword [edx]
jmp 0x42e3db
push 0x456030
push 0x456028
call fcn.0042e510
add esp, 8
push 0x45603c
push 0x456034
call fcn.0042e510
add esp, 8
cmp dword [0x459fb4], 0
jne 0x42e457
push 0xffffffffffffffff
call fcn.004328f0
add esp, 4
and eax, 0x20
je 0x42e457
mov dword [0x459fb4], 1
call fcn.00433040
mov dword [ebp - 4], 0xffffffff
call fcn.0042e465
jmp 0x42e471
cmp dword [ebp + 0x10], 0
je 0x42e479
jmp 0x42e48f
mov dword [0x459fb0], 1
mov eax, dword [ebp + 8]
push eax
call fcn.0042e4a0
add esp, 4
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x430ac0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4508a8
push 0x4309b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff90
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, 0x94
call fcn.0042cf80
mov dword [ebp - 0x7c], esp
mov dword [ebp - 0x18], esp
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
mov dword [ecx], 0x94
mov edx, dword [ebp - 0x70]
push edx
call dword [sym.imp.kernel32.dll_GetVersionExA]
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 0x10]
mov dword [0x459f70], ecx
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 4]
mov dword [0x459f7c], eax
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx + 8]
mov dword [0x459f80], edx
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 0xc]
and ecx, 0x7fff
mov dword [0x459f74], ecx
cmp dword [0x459f70], 2
je 0x430b5f
mov edx, dword [0x459f74]
or edx, 0x8000
mov dword [0x459f74], edx
mov eax, dword [0x459f7c]
shl eax, 8
add eax, dword [0x459f80]
mov dword [0x459f78], eax
call fcn.00430d40
mov dword [ebp - 0x6c], eax
push 1
call fcn.0043b420
add esp, 4
test eax, eax
jne 0x430b92
push 0x1c
call fcn.00430d10
add esp, 4
call fcn.00435b00
test eax, eax
jne 0x430ba5
push 0x10
call fcn.00430d10
add esp, 4
call fcn.00437950
mov dword [ebp - 4], 0
call fcn.004380c0
test eax, eax
jge 0x430bc4
push 0x1b
call fcn.00430ce0
add esp, 4
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x45b86c], eax
call fcn.0043b1d0
mov dword [0x459fbc], eax
call fcn.0043ad70
test eax, eax
jge 0x430bec
push 8
call fcn.00430ce0
add esp, 4
call fcn.0043abf0
test eax, eax
jge 0x430bff
push 9
call fcn.00430ce0
add esp, 4
push 1
call fcn.0042e290
add esp, 4
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x430c1e
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.00430ce0
add esp, 4
mov dword [ebp - 0x34], 0
lea edx, [ebp - 0x60]
push edx
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
call main
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x34]
and eax, 1
je 0x430c48
movzx ecx, word [ebp - 0x30]
mov dword [ebp - 0x80], ecx
jmp 0x430c4f
mov dword [ebp - 0x80], 0xa
mov edx, dword [ebp - 0x80]
push edx
mov eax, dword [ebp - 0x68]
push eax
push 0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
push eax
call fcn.004158c0
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x6c], 0
jne 0x430c79
mov ecx, dword [ebp - 0x74]
push ecx
call fcn.0042e2f0
call fcn.0042e330
mov dword [ebp - 4], 0xffffffff
jmp 0x430cc6
mov eax, dword [ebp - 0x74]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x430d40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x430d66
xor eax, eax
jmp 0x430ded
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
add eax, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0x4550
je 0x430d81
xor eax, eax
jmp 0x430ded
mov edx, dword [ebp - 8]
add edx, 0x18
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0x10b
je 0x430da7
cmp dword [ebp - 0x14], 0x20b
je 0x430dc7
jmp 0x430deb
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x5c], 0xe
ja 0x430db4
xor eax, eax
jmp 0x430ded
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp dword [eax + 0xd0], 0
setne cl
mov eax, ecx
jmp 0x430ded
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x6c], 0xe
ja 0x430dda
xor eax, eax
jmp 0x430ded
mov ecx, dword [ebp - 0x10]
xor eax, eax
cmp dword [ecx + 0xe0], 0
setne al
jmp 0x430ded
xor eax, eax
mov esp, ebp
pop ebp
ret