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

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x68
push 0xffffffffffffffff
push 0x52d2af
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
mov dword [ebp + 0x5c], 0
push 0
mov eax, dword [ebp + 0x74]
push eax
lea ecx, [ebp]
call fcn.0049bfa0
mov dword [ebp - 4], 1
push 4
push 0
push 0
push 0x400
push 0x57df90
lea ecx, [ebp]
call fcn.0049c850
push eax
lea ecx, [ebp]
call fcn.0049c870
push eax
call dword [sym.imp.WS2_32.dll_getnameinfo]
mov dword [ebp + 0x64], eax
cmp dword [ebp + 0x64], 0
jne 0x4ae2c7
xor ecx, ecx
mov dword [ebp + 0x20], ecx
mov dword [ebp + 0x24], ecx
mov dword [ebp + 0x28], ecx
mov dword [ebp + 0x2c], ecx
mov dword [ebp + 0x30], ecx
mov dword [ebp + 0x34], ecx
mov dword [ebp + 0x38], ecx
mov dword [ebp + 0x3c], ecx
mov edx, dword [ebp + 0x78]
mov dword [ebp + 0x20], edx
lea eax, [ebp + 0x60]
push eax
lea ecx, [ebp + 0x20]
push ecx
push 0
push 0x57df90
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp + 0x64], eax
cmp dword [ebp + 0x64], 0
jne 0x4ae28c
mov edx, dword [ebp + 0x60]
push edx
lea ecx, [ebp - 0x84]
call fcn.004ad340
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x60]
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
lea ecx, [ebp - 0x84]
push ecx
mov ecx, dword [ebp + 0x70]
call fcn.004ad560
mov edx, dword [ebp + 0x5c]
or edx, 1
mov dword [ebp + 0x5c], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.004ad6a0
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.0049c680
mov eax, dword [ebp + 0x70]
jmp 0x4ae36b
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0x74]
call fcn.004ab7f0
mov dword [ebp + 0x50], eax
mov ecx, dword [ebp + 0x50]
mov dword [ebp + 0x40], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp + 0x40]
push edx
mov eax, dword [ebp + 0x64]
push eax
call fcn.004ae8e0
add esp, 8
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x24]
call fcn.00407040
jmp 0x4ae300
lea ecx, [ebp - 0x54]
push ecx
mov ecx, dword [ebp + 0x74]
call fcn.004ab7f0
mov dword [ebp + 0x4c], eax
mov edx, dword [ebp + 0x4c]
mov dword [ebp + 0x44], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp + 0x44]
push eax
mov ecx, dword [ebp + 0x64]
push ecx
call fcn.004ae8e0
add esp, 8
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x54]
call fcn.00407040
call fcn.004ae680
mov dword [ebp + 0x48], eax
lea edx, [ebp - 0x3c]
push edx
mov ecx, dword [ebp + 0x74]
call fcn.004ab7f0
mov dword [ebp + 0x54], eax
mov eax, dword [ebp + 0x54]
mov dword [ebp + 0x58], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 0x58]
push ecx
mov edx, dword [ebp + 0x48]
push edx
call fcn.004ae690
add esp, 8
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.00407040
push 0
lea ecx, [ebp - 0xb0]
call fcn.004a3340
push 0x5699c8
lea eax, [ebp - 0xb0]
push eax
call fcn.004be2db
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.0049c680
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
add ebp, 0x68
mov esp, ebp
pop ebp
ret
Function at 0x4ae5d0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52d329
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
mov dword [ebp - 0x10], 0
push 0x100
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4ae62f
lea ecx, [ebp - 0x158]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406b80
mov edx, dword [ebp - 0x10]
or edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
jmp 0x4ae672
push str.Cannot_get_host_name
lea ecx, [ebp - 0x2c]
call fcn.00406b80
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x58]
call fcn.004a3370
push 0x5699c8
lea ecx, [ebp - 0x58]
push ecx
call fcn.004be2db
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00407040
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4afcd0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5297c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00417550
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.Poco::BasicBufferedStreamBuf_char__struct_std::char_traits_char___class_Poco::Net::HTTPBufferAllocator_.0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov dword [ecx + 0x38], edx
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0x3c], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x3c]
push edx
mov eax, dword [ecx + 0x38]
push eax
call fcn.004b8ba0
add esp, 8
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x40], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x44], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
add edx, 4
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x40]
add ecx, 4
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x40]
add eax, 4
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 0x1c]
mov dword [edx], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1c]
mov eax, dword [ebp - 0x18]
mov dword [edx], eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x2c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x38]
sub edx, 1
mov eax, dword [ecx + 0x3c]
sbb eax, 0
mov ecx, dword [ebp - 0x10]
add edx, dword [ecx + 0x40]
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x40]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp - 0x14]
mov dword [edx], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x20]
mov eax, dword [ebp - 0x14]
mov dword [edx], eax
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x30]
mov dword [eax], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4b53e0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52da45
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x10], 0
jne 0x4b5414
mov dword [ebp - 0x1c], 1
jmp 0x4b541b
mov dword [ebp - 0x1c], 0
movzx ecx, byte [ebp - 0x1c]
test ecx, ecx
je 0x4b543c
mov ecx, dword [ebp + 8]
call fcn.004b45e0
mov edx, dword [ebp - 0x10]
or edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
jmp 0x4b5505
xor eax, eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x5c], 4
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 0x10
jb 0x4b5476
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
jmp 0x4b547c
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x5c]
push ecx
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4b54f1
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx + 0x18]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x18]
add ecx, 8
push ecx
lea ecx, [ebp - 0x3c]
call fcn.004b4670
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp + 8]
call fcn.004b5d90
mov ecx, dword [ebp - 0x10]
or ecx, 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004b3a50
mov eax, dword [ebp + 8]
jmp 0x4b5505
mov ecx, dword [ebp + 8]
call fcn.004b45e0
mov edx, dword [ebp - 0x10]
or edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4b5e20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
movzx eax, word [ebp + 8]
test eax, eax
je 0x4b5e6f
movzx ecx, word [ebp + 8]
movzx edx, word [ebp + 8]
sub edx, 1
xor ecx, edx
sar ecx, 1
mov word [ebp + 8], cx
mov dword [ebp - 4], 0
jmp 0x4b5e58
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
movzx ecx, word [ebp + 8]
test ecx, ecx
je 0x4b5e6d
mov dx, word [ebp + 8]
shr dx, 1
mov word [ebp + 8], dx
jmp 0x4b5e4f
jmp 0x4b5e75
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4b6220
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52db75
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0xffffffff
jne 0x4b6260
mov ecx, dword [ebp + 8]
call fcn.0049c890
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x10]
mov eax, dword [edx + 0x88]
call eax
mov ecx, dword [ebp + 8]
call fcn.0049c850
push eax
mov ecx, dword [ebp + 8]
call fcn.0049c870
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4b6295
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x4b6260
cmp dword [ebp - 0x14], 0
je 0x4b62e3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
call fcn.0049c8b0
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.004b7f60
add esp, 8
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x38]
call fcn.00407040
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4b6300
Capabilities:
Connect socket

Disassembly:
push ebp
lea ebp, [esp - 0x60]
sub esp, 0x60
push 0xffffffffffffffff
push 0x52db97
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp + 0x5c], ecx
mov eax, dword [ebp + 0x5c]
cmp dword [eax + 8], 0xffffffff
jne 0x4b634c
mov ecx, dword [ebp + 0x68]
call fcn.0049c890
push eax
mov ecx, dword [ebp + 0x5c]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x5c]
mov eax, dword [edx + 0x88]
call eax
push 0
mov ecx, dword [ebp + 0x5c]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x5c]
mov eax, dword [edx + 0x7c]
call eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0x68]
call fcn.0049c850
mov dword [ebp + 0x38], eax
mov ecx, dword [ebp + 0x68]
call fcn.0049c870
mov dword [ebp + 0x3c], eax
mov ecx, dword [ebp + 0x38]
push ecx
mov edx, dword [ebp + 0x3c]
push edx
mov eax, dword [ebp + 0x5c]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp + 0x44], eax
cmp dword [ebp + 0x44], 0
je 0x4b649c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 0x54], eax
cmp dword [ebp + 0x54], 0x2734
je 0x4b63ee
cmp dword [ebp + 0x54], 0x2733
je 0x4b63ee
lea edx, [ebp]
push edx
mov ecx, dword [ebp + 0x68]
call fcn.0049c8b0
mov dword [ebp + 0x34], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x50], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0x50]
push ecx
mov edx, dword [ebp + 0x54]
push edx
call fcn.004b7f60
add esp, 8
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp]
call fcn.00407040
push 7
mov eax, dword [ebp + 0x6c]
push eax
mov ecx, dword [ebp + 0x5c]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x5c]
mov eax, dword [edx + 0x48]
call eax
mov byte [ebp + 0x5b], al
movzx ecx, byte [ebp + 0x5b]
test ecx, ecx
jne 0x4b6479
push str.connect_timed_out
lea ecx, [ebp + 0x18]
call fcn.00406b80
mov dword [ebp + 0x30], eax
mov byte [ebp - 4], 2
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp + 0x68]
call fcn.0049c8b0
mov dword [ebp + 0x40], eax
mov eax, dword [ebp + 0x40]
mov dword [ebp + 0x4c], eax
mov byte [ebp - 4], 3
push 0
mov ecx, dword [ebp + 0x4c]
push ecx
lea edx, [ebp + 0x18]
push edx
lea ecx, [ebp - 0x54]
call fcn.00454390
push 0x563f70
lea eax, [ebp - 0x54]
push eax
call fcn.004be2db
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00407040
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp + 0x18]
call fcn.00407040
mov ecx, dword [ebp + 0x5c]
call fcn.004b7c30
mov dword [ebp + 0x48], eax
mov ecx, dword [ebp + 0x48]
mov dword [ebp + 0x54], ecx
cmp dword [ebp + 0x54], 0
je 0x4b649c
mov edx, dword [ebp + 0x54]
push edx
call fcn.004b7ef0
add esp, 4
jmp 0x4b64bc
mov dword [ebp - 4], 0xffffffff
jmp 0x4b64cc
push 1
mov ecx, dword [ebp + 0x5c]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x5c]
mov eax, dword [edx + 0x7c]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add ebp, 0x60
mov esp, ebp
pop ebp
ret 8
Function at 0x4b6500
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52dba9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0xffffffff
jne 0x4b6540
mov ecx, dword [ebp + 8]
call fcn.0049c890
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x10]
mov eax, dword [edx + 0x88]
call eax
push 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x10]
mov eax, dword [edx + 0x7c]
call eax
mov ecx, dword [ebp + 8]
call fcn.0049c850
push eax
mov ecx, dword [ebp + 8]
call fcn.0049c870
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4b65d1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x2734
je 0x4b65d1
cmp dword [ebp - 0x14], 0x2733
je 0x4b65d1
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
call fcn.0049c8b0
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.004b7f60
add esp, 8
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x38]
call fcn.00407040
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0xffffffff
jne 0x4b69da
push 0
lea ecx, [ebp - 0x34]
call fcn.004a3760
push 0x56b734
lea ecx, [ebp - 0x34]
push ecx
call fcn.004be2db
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0xc]
test edx, edx
je 0x4b6a14
cmp dword [ebp - 8], 0
jge 0x4b6a14
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x4b69b9
cmp dword [ebp - 8], 0
jge 0x4b6a1f
call fcn.004b7e50
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4b6a30
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 8], 0xffffffff
jne 0x4b6a5a
push 0
lea ecx, [ebp - 0x38]
call fcn.004a3760
push 0x56b734
lea ecx, [ebp - 0x38]
push ecx
call fcn.004be2db
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + 0xc]
test edx, edx
je 0x4b6a94
cmp dword [ebp - 0xc], 0
jge 0x4b6a94
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x4b6a39
cmp dword [ebp - 0xc], 0
jge 0x4b6af3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x2733
jne 0x4b6ab9
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0xc]
test ecx, ecx
jne 0x4b6ab9
jmp 0x4b6af3
cmp dword [ebp - 4], 0x2733
je 0x4b6acb
cmp dword [ebp - 4], 0x274c
jne 0x4b6ae7
mov edx, dword [ebp - 4]
push edx
lea ecx, [ebp - 0x64]
call fcn.00454330
push 0x563f70
lea eax, [ebp - 0x64]
push eax
call fcn.004be2db
jmp 0x4b6af3
mov ecx, dword [ebp - 4]
push ecx
call fcn.004b7ef0
add esp, 4
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0xffffffff
jne 0x4b6b2a
push 0
lea ecx, [ebp - 0x34]
call fcn.004a3760
push 0x56b734
lea ecx, [ebp - 0x34]
push ecx
call fcn.004be2db
mov ecx, dword [ebp + 0x10]
call fcn.0049c850
push eax
mov ecx, dword [ebp + 0x10]
call fcn.0049c870
push eax
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 - 4]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0xc]
test edx, edx
je 0x4b6b76
cmp dword [ebp - 8], 0
jge 0x4b6b76
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x4b6b09
cmp dword [ebp - 8], 0
jge 0x4b6b81
call fcn.004b7e50
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4b6b90
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x68
push 0xffffffffffffffff
push 0x52dbef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov dword [ebp + 0x60], ecx
lea eax, [ebp - 0x54]
mov dword [ebp + 0x54], eax
mov dword [ebp + 0x58], 0x1c
mov ecx, dword [ebp + 0x60]
cmp dword [ecx + 8], 0xffffffff
jne 0x4b6be1
push 0
lea ecx, [ebp]
call fcn.004a3760
push 0x56b734
lea edx, [ebp]
push edx
call fcn.004be2db
lea eax, [ebp + 0x58]
push eax
mov ecx, dword [ebp + 0x54]
push ecx
mov edx, dword [ebp + 0x7c]
push edx
mov eax, dword [ebp + 0x74]
push eax
mov ecx, dword [ebp + 0x70]
push ecx
mov edx, dword [ebp + 0x60]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [ebp + 0x5c], eax
mov ecx, dword [ebp + 0x60]
movzx edx, byte [ecx + 0xc]
test edx, edx
je 0x4b6c23
cmp dword [ebp + 0x5c], 0
jge 0x4b6c23
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x4b6bc0
cmp dword [ebp + 0x5c], 0
jl 0x4b6c66
mov eax, dword [ebp + 0x58]
push eax
mov ecx, dword [ebp + 0x54]
push ecx
lea ecx, [ebp + 0x2c]
call fcn.0049c570
mov dword [ebp + 0x50], eax
mov edx, dword [ebp + 0x50]
mov dword [ebp + 0x4c], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x4c]
push eax
mov ecx, dword [ebp + 0x78]
call fcn.0049c6b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x2c]
call fcn.0049c680
jmp 0x4b6cbf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 0x64], eax
cmp dword [ebp + 0x64], 0x2733
jne 0x4b6c85
mov ecx, dword [ebp + 0x60]
movzx edx, byte [ecx + 0xc]
test edx, edx
jne 0x4b6c85
jmp 0x4b6cbf
cmp dword [ebp + 0x64], 0x2733
je 0x4b6c97
cmp dword [ebp + 0x64], 0x274c
jne 0x4b6cb3
mov eax, dword [ebp + 0x64]
push eax
lea ecx, [ebp - 0x38]
call fcn.00454330
push 0x563f70
lea ecx, [ebp - 0x38]
push ecx
call fcn.004be2db
jmp 0x4b6cbf
mov edx, dword [ebp + 0x64]
push edx
call fcn.004b7ef0
add esp, 4
mov eax, dword [ebp + 0x5c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
add ebp, 0x68
mov esp, ebp
pop ebp
ret 0x10

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0xffffffff
jne 0x4b6d0a
push 0
lea ecx, [ebp - 0x34]
call fcn.004a3760
push 0x56b734
lea ecx, [ebp - 0x34]
push ecx
call fcn.004be2db
push 1
push 1
lea edx, [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x4b6d2d
call fcn.004b7e50
mov esp, ebp
pop ebp
ret 4
Function at 0x4b7370
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
cmp dword [eax + 8], 0xffffffff
jne 0x4b73a1
push 0
lea ecx, [ebp - 0x5c]
call fcn.004a3760
push 0x56b734
lea ecx, [ebp - 0x5c]
push ecx
call fcn.004be2db
lea edx, [ebp - 0x30]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], 0x1c
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4b73ec
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov ecx, dword [ebp + 8]
call fcn.0049c570
mov eax, dword [ebp - 4]
or eax, 1
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
jmp 0x4b7405
call fcn.004b7e50
mov ecx, dword [ebp + 8]
call fcn.0049bf30
mov ecx, dword [ebp - 4]
or ecx, 1
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x4b75f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0xffffffff
jne 0x4b761a
push 0
lea ecx, [ebp - 0x34]
call fcn.004a3760
push 0x56b734
lea ecx, [ebp - 0x34]
push ecx
call fcn.004be2db
mov edx, dword [ebp + 0x14]
push edx
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 - 4]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4b7645
call fcn.004b7e50
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4b7c60
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4b7c8c
call fcn.004b7e50
mov esp, ebp
pop ebp
ret 8