joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49d310
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x4e5258]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x138], ecx
mov ecx, dword [ebp - 0x138]
call fcn.004978e0
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x134]
mov dword [eax + 0x30], 1
mov ecx, dword [ebp - 0x134]
mov edx, dword [ebp + 0x14]
mov dword [ecx + 0x28], edx
mov eax, dword [ebp + 0x18]
mov dword [ecx + 0x2c], eax
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx]
cmp edx, 2
jne 0x49d398
push 0x10
push 0
lea eax, [ebp - 0x114]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, 2
mov word [ebp - 0x114], cx
push 0x10
lea edx, [ebp - 0x114]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_bind]
jmp 0x49d3ca
push 0x1c
push 0
lea ecx, [ebp - 0x130]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edx, 0x17
mov word [ebp - 0x130], dx
push 0x1c
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_bind]
mov edx, dword [ebp - 0x134]
push edx
push 0
push 0
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax + 0x30]
call ecx
test eax, eax
jne 0x49d450
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0x3e5
je 0x49d450
mov edx, dword [ebp - 0x13c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push str._Pro5_:TCPProxy::startConnect__I64u__failed__err_d
lea edx, [ebp - 0x104]
push edx
call fcn.00441870
add esp, 0x14
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x134]
push ecx
mov ecx, dword [ebp - 0x138]
call fcn.004947e0
xor al, al
jmp 0x49d452
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004adff8
mov esp, ebp
pop ebp
ret 0x14
Function at 0x49d470
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4e5258]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x11c], ecx
mov ecx, dword [ebp - 0x11c]
call fcn.004979d0
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x118]
mov dword [eax + 0x20], 0
mov ecx, dword [ebp - 0x118]
mov edx, dword [ebp + 0x14]
mov dword [ecx + 0x18], edx
mov eax, dword [ebp + 0x18]
mov dword [ecx + 0x1c], eax
push 0x10
push 0
lea ecx, [ebp - 0x114]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edx, 2
mov word [ebp - 0x114], dx
mov dword [ebp - 0x110], 0
xor eax, eax
mov word [ebp - 0x112], ax
push 0x10
lea ecx, [ebp - 0x114]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_bind]
mov eax, dword [ebp - 0x118]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ecx + 0x28]
call edx
test eax, eax
jne 0x49d584
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0x3e5
je 0x49d584
mov eax, dword [ebp - 0x120]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
push str._Pro5___UDPProxy::startConnect__I64u_failed__err_d
lea eax, [ebp - 0x104]
push eax
call fcn.00441870
add esp, 0x14
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp - 0x118]
push edx
mov ecx, dword [ebp - 0x11c]
call fcn.00494880
xor al, al
jmp 0x49d586
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004adff8
mov esp, ebp
pop ebp
ret 0x14
Function at 0x49d5a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], ecx
cmp dword [ebp + 0x14], 0
jne 0x49d5e3
mov ecx, dword [ebp - 4]
call fcn.00497820
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x20], 5
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x18], edx
mov eax, dword [ebp + 0x10]
mov dword [ecx + 0x1c], eax
push 0x10000
mov ecx, dword [ebp + 0x14]
add ecx, 0x44
call fcn.0049c850
push 0
mov ecx, dword [ebp + 0x14]
add ecx, 0x44
call fcn.00491240
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0x14]
add ecx, 0x44
call fcn.0049d070
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x40], 0x1c
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x14]
add eax, 0x40
push eax
mov ecx, dword [ebp + 0x14]
add ecx, 0x24
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
push 1
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
test eax, eax
je 0x49d680
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x3e5
je 0x49d680
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.0049c510
movzx edx, al
test edx, edx
jne 0x49d67c
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 4]
call fcn.004946f0
mov al, 1
jmp 0x49d682
mov al, 1
mov esp, ebp
pop ebp
ret 0x10

Function at 0x49d690
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], ecx
cmp dword [ebp + 0x14], 0
jne 0x49d6d3
mov ecx, dword [ebp - 4]
call fcn.00497820
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x20], 2
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x18], edx
mov eax, dword [ebp + 0x10]
mov dword [ecx + 0x1c], eax
push 0x10000
mov ecx, dword [ebp + 0x14]
add ecx, 0x44
call fcn.0049c850
push 0
mov ecx, dword [ebp + 0x14]
add ecx, 0x44
call fcn.00491240
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0x14]
add ecx, 0x44
call fcn.0049d070
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0
push 0
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
push 1
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x49d758
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x3e5
je 0x49d758
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.0049c510
movzx edx, al
test edx, edx
jne 0x49d754
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 4]
call fcn.004946f0
mov al, 1
jmp 0x49d75a
mov al, 1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x49d760
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0xc], ecx
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x49d77c
mov ecx, dword [ebp + 8]
add ecx, 8
mov dword [ebp - 4], ecx
jmp 0x49d785
mov edx, dword [ebp + 8]
add edx, 0x20
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 8]
test ecx, ecx
jne 0x49d7a3
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 4]
test eax, eax
jne 0x49d7a3
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0xffffffff
jne 0x49d7aa
xor al, al
jmp 0x49d8b7
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 5]
test eax, eax
je 0x49d7bc
mov al, 1
jmp 0x49d8b7
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0xa4]
test edx, edx
je 0x49d7e5
mov eax, dword [ebp + 8]
cmp dword [eax + 0x38], 4
jne 0x49d7e5
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 7]
test edx, edx
jne 0x49d7e5
mov al, 1
jmp 0x49d8b7
mov ecx, dword [ebp - 0xc]
call fcn.004978e0
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [eax + 0x30], 4
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x10]
mov dword [ecx + 0x28], edx
mov eax, dword [ebp + 0x14]
mov dword [ecx + 0x2c], eax
push 0x2000
push 0
lea ecx, [ebp - 0x20]
call fcn.00490450
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x34
call fcn.0049c5a0
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 4]
mov byte [ecx + 5], 1
push 0
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 1
push 0
mov ecx, dword [ebp - 8]
add ecx, 0x34
call fcn.00491260
mov ecx, eax
call fcn.00436250
push eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x49d8b5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x3e5
je 0x49d8b5
mov ecx, dword [ebp - 4]
mov byte [ecx + 8], 1
mov edx, dword [ebp - 4]
mov byte [edx + 5], 0
mov eax, dword [ebp - 8]
push eax
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
mov ecx, dword [ebp - 0xc]
add ecx, 8
call fcn.0049c510
movzx eax, al
test eax, eax
jne 0x49d8b1
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.004947e0
xor al, al
jmp 0x49d8b7
mov al, 1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x49d8c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], ecx
cmp dword [ebp + 0x14], 0
jne 0x49d903
mov ecx, dword [ebp - 4]
call fcn.004979d0
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x20], 2
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x18], edx
mov eax, dword [ebp + 0x10]
mov dword [ecx + 0x1c], eax
push 0x10000
mov ecx, dword [ebp + 0x14]
add ecx, 0x44
call fcn.0049c850
push 0
mov ecx, dword [ebp + 0x14]
add ecx, 0x44
call fcn.00491240
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0x14]
add ecx, 0x44
call fcn.0049d070
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0
push 0
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
push 1
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x49d988
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x3e5
je 0x49d988
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.0049c510
movzx edx, al
test edx, edx
jne 0x49d984
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 4]
call fcn.00494880
mov al, 1
jmp 0x49d98a
mov al, 1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x49d990
Capabilities:
Print debug messages
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4e5258]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10c], ecx
mov ecx, dword [ebp - 0x10c]
call fcn.00497820
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0x18], ecx
mov edx, dword [ebp + 0x18]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 0x108]
mov dword [eax + 0x20], 1
cmp dword [ebp + 0x10], 0
jle 0x49da12
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 0x108]
add ecx, 0x44
call fcn.0049c850
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 0x108]
add ecx, 0x44
call fcn.00491240
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 0
mov ecx, dword [ebp - 0x108]
add ecx, 0x44
call fcn.00491240
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 0x108]
add ecx, 0x44
call fcn.0049d070
mov dword [ebp - 0x118], eax
push 0
mov ecx, dword [ebp - 0x108]
push ecx
push 0
lea edx, [ebp - 0x11c]
push edx
push 1
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x49db08
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0x3e5
je 0x49db08
mov edx, dword [ebp - 0x110]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push str._Pro5___DNSProxy::startTcpSend__I64u_failed__err_d__r_n
lea edx, [ebp - 0x104]
push edx
call fcn.00441870
add esp, 0x14
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x108]
mov dword [ecx + 0x20], 2
mov ecx, dword [ebp - 0x108]
add ecx, 0x44
call fcn.004603e0
mov edx, dword [ebp - 0x108]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10c]
add ecx, 4
call fcn.0049c510
movzx ecx, al
test ecx, ecx
jne 0x49db04
mov edx, dword [ebp - 0x108]
push edx
mov ecx, dword [ebp - 0x10c]
call fcn.004946f0
xor al, al
jmp 0x49db0a
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004adff8
mov esp, ebp
pop ebp
ret 0x14
Function at 0x49e080
Capabilities:
Print debug messages
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4e5258]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10c], ecx
mov ecx, dword [ebp - 0x10c]
call fcn.004979d0
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0x18], ecx
mov edx, dword [ebp + 0x18]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 0x108]
mov dword [eax + 0x20], 1
cmp dword [ebp + 0x10], 0
jle 0x49e102
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 0x108]
add ecx, 0x44
call fcn.0049c850
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 0x108]
add ecx, 0x44
call fcn.00491240
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 0
mov ecx, dword [ebp - 0x108]
add ecx, 0x44
call fcn.00491240
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 0x108]
add ecx, 0x44
call fcn.0049d070
mov dword [ebp - 0x118], eax
push 0
mov ecx, dword [ebp - 0x108]
push ecx
push 0
lea edx, [ebp - 0x11c]
push edx
push 1
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x49e1f8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0x3e5
je 0x49e1f8
mov edx, dword [ebp - 0x110]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push str._Pro5___UDPProxy::startTcpSend__I64u_failed__err_d
lea edx, [ebp - 0x104]
push edx
call fcn.00441870
add esp, 0x14
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x108]
mov dword [ecx + 0x20], 2
mov ecx, dword [ebp - 0x108]
add ecx, 0x44
call fcn.004603e0
mov edx, dword [ebp - 0x108]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10c]
add ecx, 4
call fcn.0049c510
movzx ecx, al
test ecx, ecx
jne 0x49e1f4
mov edx, dword [ebp - 0x108]
push edx
mov ecx, dword [ebp - 0x10c]
call fcn.00494880
xor al, al
jmp 0x49e1fa
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004adff8
mov esp, ebp
pop ebp
ret 0x14
Function at 0x49e210
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], ecx
cmp dword [ebp + 0x14], 0
jne 0x49e253
mov ecx, dword [ebp - 4]
call fcn.00497820
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x20], 4
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x18], edx
mov eax, dword [ebp + 0x10]
mov dword [ecx + 0x1c], eax
push 0x10000
mov ecx, dword [ebp + 0x14]
add ecx, 0x44
call fcn.0049c850
push 0
mov ecx, dword [ebp + 0x14]
add ecx, 0x44
call fcn.00491240
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0x14]
add ecx, 0x44
call fcn.0049d070
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x40], 0x1c
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x14]
add eax, 0x40
push eax
mov ecx, dword [ebp + 0x14]
add ecx, 0x24
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
push 1
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
test eax, eax
je 0x49e2f0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x3e5
je 0x49e2f0
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.0049c510
movzx edx, al
test edx, edx
jne 0x49e2ec
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 4]
call fcn.004946f0
mov al, 1
jmp 0x49e2f2
mov al, 1
mov esp, ebp
pop ebp
ret 0x10

Function at 0x49e300
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], ecx
cmp dword [ebp + 0x14], 0
jne 0x49e343
mov ecx, dword [ebp - 4]
call fcn.004979d0
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x20], 4
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x18], edx
mov eax, dword [ebp + 0x10]
mov dword [ecx + 0x1c], eax
push 0x10000
mov ecx, dword [ebp + 0x14]
add ecx, 0x44
call fcn.0049c850
push 0
mov ecx, dword [ebp + 0x14]
add ecx, 0x44
call fcn.00491240
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0x14]
add ecx, 0x44
call fcn.0049d070
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x40], 0x1c
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x14]
add eax, 0x40
push eax
mov ecx, dword [ebp + 0x14]
add ecx, 0x24
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
push 1
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
test eax, eax
je 0x49e3e0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x3e5
je 0x49e3e0
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.0049c510
movzx edx, al
test edx, edx
jne 0x49e3dc
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 4]
call fcn.00494880
mov al, 1
jmp 0x49e3e2
mov al, 1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4a45b0
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
add ecx, 0x14
call fcn.004392b0
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
cmp dword [ebp + 8], 0
jg 0x4a45f6
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jne 0x4a45f6
mov dword [ebp + 8], 1
mov dword [ebp - 8], 0
jmp 0x4a4608
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 8]
jge 0x4a464b
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x4a1050
push 0
push 0
call sub.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex
add esp, 0x18
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4a4649
cmp dword [ebp - 0xc], 0xffffffff
je 0x4a4649
lea edx, [ebp - 0xc]
push edx
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.0049c580
jmp 0x4a45ff
mov al, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x4a5700
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 8], 0
mov ecx, 0x4ea380
call fcn.004392b0
mov dword [ebp - 0x38], eax
mov ecx, 0x4ea378
call fcn.004392b0
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
add ecx, 0x10
xor edx, edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
cmp eax, dword [0x4ea638]
jb 0x4a575a
ja 0x4a5750
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [0x4ea634]
jbe 0x4a575a
mov eax, 0xfffffffc
jmp 0x4a58f3
movzx edx, byte [0x4ea4bc]
test edx, edx
je 0x4a5781
mov ecx, 0x4ea4b8
call fcn.004392b0
cmp eax, 0xffffffff
je 0x4a5781
mov eax, dword [0x4ea62c]
or eax, dword [0x4ea630]
jne 0x4a578b
mov eax, 0xfffffffd
jmp 0x4a58f3
push 0x4ea468
lea ecx, [ebp - 0x30]
call fcn.004a0770
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x4ea62c]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 0x14
push 0
lea ecx, [ebp - 0x4c]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, 0x4ea380
call fcn.004392b0
mov dword [ebp - 0x3c], eax
lea edx, [ebp - 0x4c]
push edx
push 0
push 8
lea eax, [ebp - 0x28]
push eax
mov ecx, 0x4ea4b8
call fcn.004392b0
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4a5810
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4a5810
mov dword [ebp - 0x10], 0xfffffffc
lea ecx, [ebp - 0x30]
call fcn.004a0a90
mov eax, dword [ebp - 0x10]
jmp 0x4a58f3
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x38]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4a5851
mov ecx, 0x4ea4b8
call fcn.004392b0
push eax
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov dword [ebp - 0x14], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004a0a90
mov eax, dword [ebp - 0x14]
jmp 0x4a58f3
push 0
mov ecx, 0x4ea378
call fcn.004392b0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4a5892
mov ecx, 0x4ea4b8
call fcn.004392b0
push eax
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov dword [ebp - 0x18], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004a0a90
mov eax, dword [ebp - 0x18]
jmp 0x4a58f3
push 0
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x4c]
push eax
mov ecx, 0x4ea4b8
call fcn.004392b0
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x4a58c5
mov dword [ebp - 0x1c], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004a0a90
mov eax, dword [ebp - 0x1c]
jmp 0x4a58f3
jmp 0x4a58cc
cmp dword [ebp - 8], 0
je 0x4a58db
mov dword [ebp - 0xc], 0
jmp 0x4a58e2
mov dword [ebp - 0xc], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x30]
call fcn.004a0a90
mov eax, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret
Function at 0x4a59c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0x4ea4a0
lea ecx, [ebp - 0x1c]
call fcn.004a0770
mov ecx, 0x4ea4b8
call fcn.004392b0
cmp eax, 0xffffffff
je 0x4a59f7
mov ecx, 0x4ea3f0
call fcn.004392b0
cmp eax, 0xffffffff
jne 0x4a59f7
cmp dword [ebp + 8], 0
jne 0x4a5a0e
mov dword [ebp - 8], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004a0a90
mov eax, dword [ebp - 8]
jmp 0x4a5ad1
mov eax, dword [ebp + 8]
mov dword [0x4ea510], eax
mov ecx, 0x4ea378
call fcn.004392b0
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, 0x4ea480
call fcn.004392b0
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, 0x4ea49c
call fcn.004392b0
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push 0x4a66b0
push 0
push 0
call sub.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex
add esp, 0x18
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4a5a9e
mov ecx, 0x4ea480
call fcn.004392b0
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
mov ecx, 0x4ea3f0
call fcn.0043c900
mov dword [ebp - 0xc], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004a0a90
mov eax, dword [ebp - 0xc]
jmp 0x4a5ad1
mov edx, dword [ebp - 4]
push edx
mov ecx, 0x4ea3f0
call fcn.0043c900
push 0xffffffffffffffff
mov ecx, 0x4ea49c
call fcn.004392b0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x1c]
call fcn.004a0a90
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x4a7810
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], 0
jge 0x4a785c
push str.The_buffer_capacity_must_be_greater_than_or_equal_to_zero.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov dword [edx], 0
jmp 0x4a78ae
mov eax, dword [ebp + 8]
push eax
call fcn.004ae031
add esp, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
mov eax, dword [ebp + 8]
push eax
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4