joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a2c80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 0x10], 0
jne 0x4a2ca4
push 0
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.004ab300
add esp, 0xc
mov eax, dword [ebp + 8]
jmp 0x4a2dc4
mov dword [ebp - 8], 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.004a2b90
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4a2cea
mov eax, dword [ebp + 0x10]
push eax
call fcn.00529b67
add esp, 4
push 0
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004ab300
add esp, 0xc
mov eax, dword [ebp + 8]
jmp 0x4a2dc4
mov dword [ebp - 4], 2
mov eax, dword [ebp - 8]
add eax, dword [ebp - 4]
push eax
call dword [0x5c3de4]
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4a2d2e
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00529b67
add esp, 4
push 0
push 3
mov edx, dword [ebp + 8]
push edx
call fcn.004ab300
add esp, 0xc
mov eax, dword [ebp + 8]
jmp 0x4a2dc4
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 1
mov edx, dword [ebp - 0x14]
push edx
call fcn.00529ea0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.00529b67
add esp, 4
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 8]
je 0x4a2d7d
mov edx, dword [ebp - 0x14]
push edx
call dword [0x5c3de8]
add esp, 4
push 0
push 2
mov eax, dword [ebp + 8]
push eax
call fcn.004ab300
add esp, 0xc
mov eax, dword [ebp + 8]
jmp 0x4a2dc4
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 0x18]
push eax
call fcn.004a0310
add esp, 0xc
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.004a2c20
add esp, 0xc
push eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.004a7330
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret

Function at 0x4a2ff0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.00529a6e
add esp, 0x10
mov dword [ebp - 4], eax
mov esp, ebp
pop ebp
ret 8
Function at 0x4c71b0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0xa
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x21c], 0
jmp 0x4c71f8
mov eax, dword [ebp - 0x21c]
add eax, 1
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x21c]
cmp ecx, dword [ebp - 0x108]
jae 0x4c721c
mov edx, dword [ebp - 0x21c]
mov eax, dword [ebp + edx*4 - 0x104]
cmp eax, dword [ebp + 8]
jne 0x4c721a
jmp 0x4c721c
jmp 0x4c71e9
mov ecx, dword [ebp - 0x21c]
cmp ecx, dword [ebp - 0x108]
jne 0x4c7252
cmp dword [ebp - 0x108], 0x40
jae 0x4c7252
mov edx, dword [ebp - 0x21c]
mov eax, dword [ebp + 8]
mov dword [ebp + edx*4 - 0x104], eax
mov ecx, dword [ebp - 0x108]
add ecx, 1
mov dword [ebp - 0x108], ecx
xor edx, edx
jne 0x4c71dd
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x220], 0
jmp 0x4c727b
mov eax, dword [ebp - 0x220]
add eax, 1
mov dword [ebp - 0x220], eax
mov ecx, dword [ebp - 0x220]
cmp ecx, dword [ebp - 0x218]
jae 0x4c729f
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp + edx*4 - 0x214]
cmp eax, dword [ebp + 8]
jne 0x4c729d
jmp 0x4c729f
jmp 0x4c726c
mov ecx, dword [ebp - 0x220]
cmp ecx, dword [ebp - 0x218]
jne 0x4c72d5
cmp dword [ebp - 0x218], 0x40
jae 0x4c72d5
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp + 8]
mov dword [ebp + edx*4 - 0x214], eax
mov ecx, dword [ebp - 0x218]
add ecx, 1
mov dword [ebp - 0x218], ecx
xor edx, edx
jne 0x4c7260
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x108]
push edx
push 0
push 0x40
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x4c7302
xor eax, eax
jmp 0x4c7339
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4c731d
mov eax, 1
jmp 0x4c7339
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4c7336
or eax, 0xffffffff
jmp 0x4c7339
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret 4
Function at 0x4c76c0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x21c], 0
jmp 0x4c7701
mov ecx, dword [ebp - 0x21c]
add ecx, 1
mov dword [ebp - 0x21c], ecx
mov edx, dword [ebp - 0x21c]
cmp edx, dword [ebp - 0x108]
jae 0x4c7725
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp + eax*4 - 0x104]
cmp ecx, dword [ebp + 8]
jne 0x4c7723
jmp 0x4c7725
jmp 0x4c76f2
mov edx, dword [ebp - 0x21c]
cmp edx, dword [ebp - 0x108]
jne 0x4c775b
cmp dword [ebp - 0x108], 0x40
jae 0x4c775b
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp + 8]
mov dword [ebp + eax*4 - 0x104], ecx
mov edx, dword [ebp - 0x108]
add edx, 1
mov dword [ebp - 0x108], edx
xor eax, eax
jne 0x4c76e6
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x220], 0
jmp 0x4c7784
mov ecx, dword [ebp - 0x220]
add ecx, 1
mov dword [ebp - 0x220], ecx
mov edx, dword [ebp - 0x220]
cmp edx, dword [ebp - 0x218]
jae 0x4c77a8
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp + eax*4 - 0x214]
cmp ecx, dword [ebp + 8]
jne 0x4c77a6
jmp 0x4c77a8
jmp 0x4c7775
mov edx, dword [ebp - 0x220]
cmp edx, dword [ebp - 0x218]
jne 0x4c77de
cmp dword [ebp - 0x218], 0x40
jae 0x4c77de
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp + 8]
mov dword [ebp + eax*4 - 0x214], ecx
mov edx, dword [ebp - 0x218]
add edx, 1
mov dword [ebp - 0x218], edx
xor eax, eax
jne 0x4c7769
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x218]
push edx
push 0
lea eax, [ebp - 0x108]
push eax
push 0x40
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x4c780b
xor eax, eax
jmp 0x4c7842
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4c7826
mov eax, 1
jmp 0x4c7842
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4c783f
or eax, 0xffffffff
jmp 0x4c7842
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x4c7ac0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56c5c1
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5c5ebc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7c], ecx
push 5
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0x204]
push ecx
call dword [sym.imp.WS2_32.dll_listen]
mov edx, dword [ebp - 0x7c]
cmp dword [edx + 0x210], 0
je 0x4c7c79
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0x204]
push ecx
mov ecx, dword [ebp - 0x7c]
call fcn.004c7850
test eax, eax
je 0x4c7c74
mov dword [ebp - 0x10], 0x10
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 0x204]
push edx
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x4c7b54
jmp 0x4c7c79
lea ecx, [ebp - 0x48]
call fcn.00457800
mov dword [ebp - 4], 0
push 0x10
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.005289e0
add esp, 0xc
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x44], 0xffffffff
je 0x4c7c3c
mov dword [ebp - 0x78], 1
push 4
lea ecx, [ebp - 0x78]
push ecx
push 1
push 6
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], 1
push 4
lea eax, [ebp - 0x60]
push eax
push 8
push 0xffff
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], 0
xor edx, edx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x74], 0xc
mov dword [ebp - 0x6c], 0
xor eax, eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x4c], 0xc
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x50], 0x1388
mov dword [ebp - 0x54], 0x1388
push 0
push 0
lea ecx, [ebp - 0x70]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0x74]
push ecx
lea edx, [ebp - 0x58]
push edx
push 0x98000004
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x48]
push ecx
mov ecx, 0x5fab20
call fcn.004ddb70
cmp eax, 0xffffffff
jne 0x4c7c65
push 2
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0043ef10
jmp 0x4c7afd
mov ecx, dword [ebp - 0x7c]
cmp dword [ecx + 0x204], 0xffffffff
je 0x4c7cb4
push 2
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 0x204]
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 0x204]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x7c]
mov dword [eax + 0x204], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00527aad
mov esp, ebp
pop ebp
ret
Function at 0x4c7cd0
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
cmp dword [ebp + 0x14], 8
jne 0x4c7dd2
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jg 0x4c7cf8
xor eax, eax
jmp 0x4c7e8c
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x210], 0
je 0x4c7dc8
cmp dword [0x5fa5b4], 0
jle 0x4c7d4a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0xc]
mov ecx, dword [0x5fa5b4]
imul ecx, ecx, 0x3e8
cmp eax, ecx
jle 0x4c7d4a
mov edx, dword [ebp + 0x10]
mov dword [edx], 0xffffffff
xor eax, eax
jmp 0x4c7e8c
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.004c7850
test eax, eax
jne 0x4c7d5c
jmp 0x4c7d08
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xc], eax
push 0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
add eax, dword [edx]
sub eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 8]
jne 0x4c7d8e
jmp 0x4c7dc8
cmp dword [ebp - 0x10], 0
jne 0x4c7da4
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
xor eax, eax
jmp 0x4c7e8c
cmp dword [ebp - 0x10], 0
jge 0x4c7dba
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0xffffffff
xor eax, eax
jmp 0x4c7e8c
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 8], edx
jmp 0x4c7d08
mov eax, 1
jmp 0x4c7e8c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x210], 0
je 0x4c7e8a
cmp dword [0x5fa5b4], 0
jle 0x4c7e1a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
mov ecx, dword [0x5fa5b4]
imul ecx, ecx, 0x3e8
cmp eax, ecx
jle 0x4c7e1a
mov edx, dword [ebp + 0x10]
mov dword [edx], 0xffffffff
xor eax, eax
jmp 0x4c7e8c
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.004c7850
test eax, eax
jne 0x4c7e2c
jmp 0x4c7ddb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4c7e63
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
xor eax, eax
jmp 0x4c7e8c
cmp dword [ebp - 0x14], 0
jge 0x4c7e76
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0xffffffff
xor eax, eax
jmp 0x4c7e8c
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
mov dword [edx], eax
mov eax, 1
jmp 0x4c7e8c
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4c7ea0
Capabilities:
Check for time delay via gettickcount
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x210], 0
je 0x4c7f5f
cmp dword [0x5fa5b4], 0
jle 0x4c7ee8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
mov ecx, dword [0x5fa5b4]
imul ecx, ecx, 0x3e8
cmp eax, ecx
jle 0x4c7ee8
xor eax, eax
jmp 0x4c7f61
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.004c71b0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4c7eff
jmp 0x4c7eb2
cmp dword [ebp - 8], 0xffffffff
jne 0x4c7f09
xor eax, eax
jmp 0x4c7f61
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
push 0x10
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 0x14]
jne 0x4c7f3e
mov eax, 1
jmp 0x4c7f61
cmp dword [ebp - 0xc], 0
jg 0x4c7f48
xor eax, eax
jmp 0x4c7f61
mov edx, dword [ebp + 0x10]
add edx, dword [ebp - 0xc]
mov dword [ebp + 0x10], edx
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp - 0xc]
mov dword [ebp + 0x14], eax
jmp 0x4c7eb2
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4c7f70
Capabilities:
Get local ipv4 addresses
Get socket information
Send data
Send data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56c5f4
mov eax, dword fs:[0]
push eax
mov eax, 0x1034
call fcn.00528110
mov eax, dword [0x5c5ebc]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x103c], ecx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x4c7fc9
xor eax, eax
jmp 0x4c8191
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x10]
je 0x4c7fd8
xor eax, eax
jmp 0x4c8191
cmp dword [0x5fa5b8], 0
je 0x4c818c
cmp dword [ebp + 0x10], 0
jbe 0x4c818c
mov dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4c8016
mov eax, 1
jmp 0x4c8191
movzx ecx, byte [ebp - 0x28]
cmp ecx, 0x7f
jne 0x4c8029
mov eax, 1
jmp 0x4c8191
mov dl, byte [0x58bb82]
mov byte [ebp - 0x1034], dl
push 0x1000
push 0
lea eax, [ebp - 0x1033]
push eax
call fcn.005281f0
add esp, 0xc
mov ecx, 0x5fa5bc
call fcn.00415f60
push eax
lea ecx, [ebp - 0x1038]
push ecx
call fcn.004cb330
add esp, 8
mov dword [ebp - 0x1040], eax
mov edx, dword [ebp - 0x1040]
mov eax, dword [edx]
push eax
push str._slog.dat
lea ecx, [ebp - 0x1034]
push ecx
call fcn.0052a9d1
add esp, 0xc
lea ecx, [ebp - 0x1038]
call fcn.00412130
mov edx, dword [0x5fa604]
and edx, 1
jne 0x4c80d0
mov eax, dword [0x5fa604]
or eax, 1
mov dword [0x5fa604], eax
mov dword [ebp - 4], 0
mov ecx, 0x5fa5e4
call fcn.0043d480
push 0x572e90
call fcn.0052af0c
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, 0x5fa5e4
call fcn.0041dca0
push 0x58bd54
lea ecx, [ebp - 0x1034]
push ecx
call fcn.0053138f
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4c810e
push 0x58bd58
lea edx, [ebp - 0x1034]
push edx
call fcn.0053138f
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4c8182
push 2
push 0
mov eax, dword [ebp - 0x14]
push eax
call fcn.0052a152
add esp, 0xc
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0052a05a
add esp, 4
cmp eax, 0x40000
jle 0x4c815a
mov edx, dword [ebp - 0x14]
push edx
call fcn.00529b67
add esp, 4
push 0x58bd5c
lea eax, [ebp - 0x1034]
push eax
call fcn.0053138f
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4c8182
mov ecx, dword [ebp - 0x14]
push ecx
push 1
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00529a6e
add esp, 0x10
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00529b67
add esp, 4
mov ecx, 0x5fa5e4
call fcn.0043d640
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00527aad
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4c9e10
Capabilities:
Create tcp socket
Create thread
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56c6c3
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x5c5ebc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp - 0x58]
cmp dword [eax + 0x210], 0
je 0x4c9e51
mov eax, 1
jmp 0x4c9ffc
cmp dword [ebp + 8], 0
jne 0x4c9ec8
mov ecx, dword [ebp - 0x58]
mov dword [ecx + 0x210], 1
lea ecx, [ebp - 0x44]
call fcn.00457800
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x2c], edx
lea eax, [ebp - 0x44]
push eax
mov ecx, 0x5fab20
call fcn.004ddb70
cmp eax, 0xffffffff
jne 0x4c9eaa
mov dword [ebp - 0x4c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.0043ef10
mov eax, dword [ebp - 0x4c]
jmp 0x4c9ffc
mov dword [ebp - 0x50], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.0043ef10
mov eax, dword [ebp - 0x50]
jmp 0x4c9ffc
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 0x58]
mov dword [ecx + 0x204], eax
cmp dword [ebp + 0x10], 0
je 0x4c9f07
mov dword [ebp - 0x48], 1
push 4
lea edx, [ebp - 0x48]
push edx
push 4
push 0xffff
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0x204]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edx, 2
mov word [ebp - 0x24], dx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x54]
call fcn.00435ea0
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x60]
call fcn.00496e30
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00435f40
movzx edx, word [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x22], ax
push 0x10
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 0x204]
push edx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x4c9fa9
push 2
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0x204]
push ecx
call dword [sym.imp.WS2_32.dll_shutdown]
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 0x204]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x58]
mov dword [ecx + 0x204], 0xffffffff
xor eax, eax
jmp 0x4c9ffc
mov edx, dword [ebp - 0x58]
mov dword [edx + 0x210], 1
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x208], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x58]
add eax, 4
push eax
call fcn.005282c4
add esp, 8
lea ecx, [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp - 0x58]
push edx
push 0x473c90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x58]
mov dword [ecx + 0x20c], eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00527aad
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4ca250
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x210], 0
jne 0x4ca26f
mov eax, 1
jmp 0x4ca363
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x210], 0
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x204], 0xffffffff
je 0x4ca2b7
push 2
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x204]
push ecx
call dword [sym.imp.WS2_32.dll_shutdown]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x204]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x204], 0xffffffff
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x20c], 0
je 0x4ca31e
push 0x7d0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4ca2f3
push 0
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x20c], 0
je 0x4ca31c
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x20c], 0
jmp 0x4ca35e
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0x96
jge 0x4ca35e
push 0
push 0
mov edx, dword [ebp - 0x10]
push edx
mov ecx, 0x5fab20
call fcn.004d59d0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4ca34b
jmp 0x4ca35e
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x4ca325
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4ca910
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 4]
push ecx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4ca943
xor eax, eax
jmp 0x4ca9b7
lea edx, [ebp - 0xc]
push edx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x4ca966
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4ca9b7
mov dword [ebp - 0x1c], 1
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], 2
push 0
push 0
push 0x10
lea eax, [ebp - 0x1c]
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x4ca9a8
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4ca9b7
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret