joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50e8a0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
movzx eax, byte [ebx]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [ebx + 1]
xor edx, eax
movzx eax, byte [ebx + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [ebx + 3]
imul ecx, edx, 0x1000193
mov edx, dword [esi + 0x14]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edx
and ecx, eax
cmp dword [esi + 0x18], ecx
ja 0x50e8f3
shr edx, 1
or eax, 0xffffffff
sub eax, edx
add ecx, eax
mov edx, dword [esi + 8]
mov esi, dword [esi]
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov edi, dword [edx + ecx*4]
inc ecx
lea ecx, [edx + ecx*4]
mov dword [ebp + 0xc], ecx
cmp edi, esi
jne 0x50e90f
mov ecx, esi
jmp 0x50e913
mov ecx, dword [ecx]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x50e963
mov ecx, dword [eax + 8]
cmp ecx, dword [ebx]
je 0x50e925
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
jmp 0x50e907
mov ecx, dword [ebx]
mov edx, eax
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
nop
cmp edi, esi
jne 0x50e938
mov ecx, esi
jmp 0x50e93c
mov ecx, dword [ebx]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x50e94c
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 8]
jne 0x50e94c
mov eax, dword [eax]
jmp 0x50e930
cmp edx, eax
je 0x50e963
mov ecx, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [ecx + 4], eax
mov eax, ecx
mov dword [ecx], edx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
mov dword [eax + 4], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x50ea50
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
movzx eax, byte [edi + 8]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 9]
xor edx, eax
movzx eax, byte [edi + 0xa]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 0xb]
imul ecx, edx, 0x1000193
mov edx, dword [ebx + 0x14]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edx
and ecx, eax
cmp dword [ebx + 0x18], ecx
ja 0x50eaa3
shr edx, 1
or eax, 0xffffffff
sub eax, edx
add ecx, eax
lea edx, [ecx*8]
mov ecx, dword [ebx + 8]
add ecx, edx
cmp dword [ecx + 4], edi
jne 0x50eacf
cmp dword [ecx], edi
jne 0x50eac7
mov eax, dword [ebx]
mov dword [ecx], eax
mov ecx, dword [ebx + 8]
mov eax, dword [ebx]
mov dword [ecx + edx + 4], eax
jmp 0x50ead7
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x50ead7
cmp dword [ecx], edi
jne 0x50eada
mov eax, dword [edi]
mov dword [ecx], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov esi, dword [edi]
push edi
mov dword [eax], esi
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
dec dword [ebx + 4]
call fcn.0054a379
mov eax, dword [ebp + 8]
add esp, 4
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x50ed30
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [ebx + 0x14]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edx
and ecx, eax
cmp dword [ebx + 0x18], ecx
ja 0x50ed83
shr edx, 1
or eax, 0xffffffff
sub eax, edx
add ecx, eax
mov edx, dword [ebx + 8]
lea eax, [ecx*8]
mov esi, dword [ebx]
mov dword [ebp - 4], eax
add eax, edx
mov dword [ebp + 0xc], eax
mov eax, dword [eax]
cmp esi, eax
je 0x50edbd
mov esi, dword [ebp + 0xc]
mov esi, dword [esi + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x50edbd
mov eax, dword [edi]
jmp 0x50edb0
mov esi, dword [esi + 4]
cmp dword [esi + 8], eax
je 0x50ee00
cmp esi, dword [edx + ecx*8]
jne 0x50edb0
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp esi, eax
je 0x50ede7
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov ecx, dword [ebx + 8]
mov edx, dword [ebp - 4]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x50ee30
mov dword [ecx], edi
mov eax, dword [ebx + 8]
mov dword [eax + edx + 4], edi
jmp 0x50ee52
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
dec dword [ebx + 4]
call fcn.0054a379
mov eax, dword [ebp + 8]
add esp, 4
mov dword [eax], esi
mov byte [eax + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, esi
jne 0x50ee38
mov dword [ecx], edi
jmp 0x50ee52
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x50ee52
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
call fcn.0050ee70
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x50ef30
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [ebx + 0x14]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edx
and ecx, eax
cmp dword [ebx + 0x18], ecx
ja 0x50ef83
shr edx, 1
or eax, 0xffffffff
sub eax, edx
add ecx, eax
mov edx, dword [ebx + 8]
lea eax, [ecx*8]
mov esi, dword [ebx]
mov dword [ebp - 4], eax
add eax, edx
mov dword [ebp + 0xc], eax
mov eax, dword [eax]
cmp esi, eax
je 0x50efbd
mov esi, dword [ebp + 0xc]
mov esi, dword [esi + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x50efbd
mov eax, dword [edi]
jmp 0x50efb0
mov esi, dword [esi + 4]
cmp dword [esi + 8], eax
je 0x50f000
cmp esi, dword [edx + ecx*8]
jne 0x50efb0
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp esi, eax
je 0x50efe7
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov ecx, dword [ebx + 8]
mov edx, dword [ebp - 4]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x50f030
mov dword [ecx], edi
mov eax, dword [ebx + 8]
mov dword [eax + edx + 4], edi
jmp 0x50f052
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
dec dword [ebx + 4]
call fcn.0054a379
mov eax, dword [ebp + 8]
add esp, 4
pop edi
mov dword [eax], esi
pop esi
mov byte [eax + 4], 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, esi
jne 0x50f038
mov dword [ecx], edi
jmp 0x50f052
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x50f052
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
call fcn.0050ee70
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x50f610
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x5e56f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov ecx, dword [ebp + 8]
push edi
test ecx, ecx
je 0x50f633
cmp word [ecx], bx
jne 0x50f638
mov ecx, str.0.0.0.0
mov edx, dword [ebp + 0xc]
xor eax, eax
mov word [ebp - 0x30], ax
lea eax, [ebp - 0x30]
push eax
call fcn.00512b60
add esp, 4
test eax, eax
je 0x50f7ce
mov ax, word [ebp - 0x30]
push 6
mov word [esi + 0x4c], ax
push 1
movzx eax, ax
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, eax
mov dword [esi + 0x54], ecx
cmp ecx, 0xffffffff
je 0x50f7ce
mov edx, dword [esi + 0x34]
test edx, edx
je 0x50f68c
cmp dword [esi + 0x38], ebx
jbe 0x50f68c
mov eax, 1
jmp 0x50f68e
xor eax, eax
push 0
push 0
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x38]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], edx
push eax
push 0x98000004
push ecx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
jne 0x50f6d4
call edi
cmp eax, 0x2733
je 0x50f6d4
test eax, eax
jne 0x50f7f7
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 0xfffffffffffffffb
push 0xffff
push dword [esi + 0x54]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x50f801
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 0x8004667e
push dword [esi + 0x54]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x50f80b
cmp word [ebp - 0x30], 2
mov ecx, 0x10
mov eax, 0x1c
cmove eax, ecx
push eax
lea eax, [ebp - 0x30]
push eax
push dword [esi + 0x54]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x50f7bb
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi]
mov ecx, esi
push dword [esi + 0x54]
call dword [eax + 0xe4]
cmp eax, 2
je 0x50f7a5
push dword [esi + 0x14]
push dword [esi + 0x54]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x50f792
mov ecx, dword [esi + 0x54]
call fcn.00512be0
mov ecx, dword [esi + 0x54]
mov dword [esi + 0x40], eax
call fcn.00512c50
mov ecx, dword [esi + 0x54]
mov dword [esi + 0x44], eax
call fcn.00512cc0
mov dword [esi + 0x48], eax
mov ebx, 1
jmp 0x50f7e2
call edi
push eax
push str.CTcpServer::CreateListenSocket
push 6
mov ecx, esi
call fcn.0050f340
jmp 0x50f7e2
call fcn.0050f0b0
push eax
push str.CTcpServer::CreateListenSocket
push 5
mov ecx, esi
call fcn.0050f340
jmp 0x50f7e2
call edi
push eax
push str.CTcpServer::CreateListenSocket
push 4
mov ecx, esi
call fcn.0050f340
jmp 0x50f7e2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov dword [esi + 0x60], 3
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054caf9
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.004e13f0
push 0x80004005
call fcn.004e13f0
push 0x80004005
call fcn.004e13f0
int3
Function at 0x50f820
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 8], esi
cmp dword [esi + 0x10], ebx
jbe 0x50f8e6
push edi
lea esp, [esp]
push 0
push 0
push esi
push 0x5109c0
push 0
push 0
call fcn.00553778
mov edi, eax
add esp, 0x18
mov dword [ebp - 4], edi
test edi, edi
je 0x50f8c9
mov eax, dword [esi + 0x68]
lea ecx, [ebp - 4]
cmp ecx, eax
jae 0x50f899
mov ecx, dword [esi + 0x64]
lea edx, [ebp - 4]
cmp ecx, edx
ja 0x50f899
mov edi, edx
sub edi, ecx
sar edi, 2
cmp eax, dword [esi + 0x6c]
jne 0x50f888
push ecx
lea ecx, [esi + 0x64]
call fcn.005121e0
mov ecx, dword [esi + 0x68]
test ecx, ecx
je 0x50f8b0
mov eax, dword [esi + 0x64]
mov eax, dword [eax + edi*4]
mov dword [ecx], eax
jmp 0x50f8b0
cmp eax, dword [esi + 0x6c]
jne 0x50f8a7
push ecx
lea ecx, [esi + 0x64]
call fcn.005121e0
mov eax, dword [esi + 0x68]
test eax, eax
je 0x50f8b0
mov dword [eax], edi
add dword [esi + 0x68], 4
inc ebx
mov esi, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jb 0x50f840
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov dword [esi + 0x60], 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x510010
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
mov dword [ebp - 4], 0x1c
mov word [ebp - 0x20], ax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ecx + 0x54]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x510040
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0x10]
lea edx, [ebp + 0x10]
push dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
push dword [ebp + 8]
call fcn.00512a80
add esp, 0xc
mov esp, ebp
pop ebp
ret 0xc

Function at 0x510060
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ecx + 0x168]
test esi, esi
je 0x5100eb
mov eax, dword [ebp + 8]
xor edx, edx
dec eax
div dword [ecx + 0x164]
mov ecx, dword [ecx + 0x1a8]
movzx ecx, byte [ecx + edx]
cmp eax, ecx
jne 0x5100eb
mov ecx, dword [esi + edx*4]
mov eax, 0xf
cmp eax, ecx
sbb eax, eax
neg eax
cmp eax, 1
jne 0x5100eb
test ecx, ecx
je 0x5100eb
cmp dword [ecx + 0x30], 0
je 0x5100eb
xor eax, eax
mov dword [ebp - 4], 0x1c
mov word [ebp - 0x20], ax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ecx + 0x8c]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x5100eb
push dword [ebp + 0x14]
lea edx, [ebp + 8]
push dword [ebp + 0x10]
lea ecx, [ebp - 0x20]
push dword [ebp + 0xc]
call fcn.00512a80
add esp, 0xc
pop esi
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5108c0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov eax, dword [edi]
call dword [eax + 0x28]
test eax, eax
je 0x510996
movzx eax, word [edi + 0x4c]
push 6
push 1
push eax
call dword [sym.imp.WS2_32.dll_socket]
lea ecx, [edi + 0x80]
mov dword [ebp - 4], eax
call fcn.00511e50
mov ebx, eax
mov dword [ebp - 8], 0x10
mov eax, dword [edi + 0x1c]
push ebx
push 0
mov dword [ebx + 0x1c], eax
movzx ecx, word [edi + 0x4c]
mov edx, dword [edi + 0x54]
cmp ecx, 2
mov esi, dword [edi + 0x40]
mov eax, dword [ebp - 4]
mov dword [ebx + 0x34], eax
mov eax, 0x1c
cmove eax, dword [ebp - 8]
add eax, 0x10
mov dword [ebp - 0xc], ebx
push eax
push eax
push 0
push dword [ebx + 0x20]
mov dword [ebx + 0x18], 1
push dword [ebp - 4]
push edx
call esi
test eax, eax
jne 0x51094b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x51094d
xor eax, eax
xor ecx, ecx
cmp eax, 0x3e5
cmove eax, ecx
xor ebx, ebx
test eax, eax
sete bl
test ebx, ebx
jne 0x5109a3
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x28]
test eax, eax
jne 0x5109ac
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, dword [ebp - 0xc]
lea ecx, [edi + 0x9c]
push esi
call fcn.0050e270
test eax, eax
jne 0x510996
push esi
push eax
mov eax, dword [esi + 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [edi + 0x378]
or edx, 0xffffffff
lock xadd dword [ecx], edx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004e13f0
int3
Function at 0x510d00
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0
mov ebx, ecx
push 0
push 0xfffffffffffffff1
push dword [ebx + 0x58]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
je 0x510e6f
cmp word [ebx + 0x4c], 2
mov ecx, 0x10
mov esi, dword [ebp + 0xc]
mov eax, 0x1c
cmove eax, ecx
add eax, ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
push eax
mov eax, dword [ebx + 0x44]
push 0
push dword [esi + 0x20]
call eax
mov eax, dword [ebx]
mov ecx, ebx
mov edi, dword [esi + 0x34]
mov dword [ebp - 4], 0
mov dword [ebp - 8], edi
call dword [eax + 0x28]
test eax, eax
je 0x510e39
lea eax, [ebp - 4]
push eax
push ecx
lea ecx, [ebx + 0x164]
call fcn.00512250
test eax, eax
je 0x510e39
mov esi, dword [ebp - 4]
mov ecx, ebx
push edi
push esi
call fcn.0050fbc0
mov dword [ebp - 4], eax
lea edi, [eax + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 0xc]
mov ecx, ebx
push dword [ebp - 4]
push esi
call fcn.0050fd80
mov eax, dword [ebp + 8]
push 4
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 0x700b
push 0xffff
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, dword [ebp - 4]
push 0
push esi
push dword [ebx + 0x58]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebx]
mov ecx, ebx
push esi
call dword [eax + 0xe8]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, ebx
cmp esi, 2
je 0x510e18
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.005112e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push 0
push 0
push dword [ebp - 4]
call fcn.0050fc90
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.0050ff20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 2
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
push esi
lea ecx, [ebx + 0x9c]
call fcn.0050e270
test eax, eax
jne 0x510e66
push esi
push eax
mov eax, dword [esi + 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.004e13f0
int3
Function at 0x511040
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x574bd8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5e56f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x10], edx
mov esi, dword [ebp + 8]
xor edi, edi
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x18], edi
jmp 0x511080
cmp dword [esi + 0x50], 0
jne 0x511182
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x51109c
cmp eax, 1
jne 0x511182
mov ecx, dword [ebp + 0xc]
mov eax, dword [edx + 0x1c]
lea ebx, [ecx + 0x1c]
cmp dword [ebx], eax
jne 0x511178
xor edi, edi
mov dword [ebx], eax
push edi
push edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], edi
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
push 1
push ebx
push dword [ecx + 0x34]
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x5110dc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
jmp 0x5110ec
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x5110e7
mov dword [ebx], eax
jmp 0x5110f4
mov edi, 0x2775
test edi, edi
jne 0x51117c
cmp dword [esi + 0x30], 0
mov eax, 0xff
mov dword [ebp - 0x14], eax
je 0x51115b
add esi, 0x58
push esi
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp dword [eax + 0x30], 0
je 0x511142
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebx]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ecx]
push dword [ebx + 0x20]
push dword [ebp + 8]
call dword [eax + 0xf4]
mov dword [ebp - 0x14], eax
jmp 0x511145
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
jmp 0x51115e
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, 0x1e
jl 0x511080
jmp 0x511182
mov ebx, ecx
jmp 0x511182
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x511190
cmp eax, 1
jne 0x5111e9
test edi, edi
je 0x5111ff
cmp edi, 0x2733
je 0x5111ff
cmp edi, 0x2775
jne 0x5111ac
push 0
push 0
push 1
jmp 0x5111c1
cmp edi, 0x2736
je 0x5111c9
cmp edi, 0x3e3
je 0x5111c9
push edi
push 4
push 2
push esi
mov ecx, edx
call fcn.0050fc90
mov ecx, dword [ebp - 0x10]
push ebx
add ecx, 0x9c
call fcn.0050e270
test eax, eax
jne 0x5111e9
push ebx
push eax
mov eax, dword [ebx + 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x511650
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
test eax, eax
jle 0x5117cf
push ebx
lea ebx, [ecx + 0x80]
push esi
mov dword [ebp - 0xc], ebx
push edi
mov esi, dword [ecx + 0x1c]
cmp eax, esi
lea ecx, [ebx + 0x1c]
mov dword [ebp - 4], 0
cmovl esi, eax
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x10], esi
call fcn.0050d000
test eax, eax
je 0x5116ac
mov ebx, dword [ebp - 4]
xorps xmm0, xmm0
movdqu xmmword [ebx], xmm0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x1c], 0
jmp 0x5116de
mov edi, dword [ebx + 0x10]
lea eax, [edi + 0x38]
push eax
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x38
mov ebx, eax
push 0
push ebx
call fcn.0054cf60
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov dword [ebx + 0x14], eax
lea eax, [ebx + 0x38]
mov dword [ebx + 0x24], edi
mov dword [ebx + 0x20], eax
mov dword [ebp - 4], ebx
test esi, esi
jns 0x5116ea
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
jmp 0x5116ed
mov eax, dword [ebp - 0x10]
push esi
push dword [ebp + 0xc]
lea edi, [ebx + 0x1c]
mov dword [edi], eax
push dword [ebx + 0x20]
call fcn.0054bda0
mov edx, dword [ebp + 8]
add esp, 0xc
mov eax, esi
lea ecx, [edx + 0x44]
lock xadd dword [ecx], eax
mov eax, dword [edx + 0x8c]
push 0
push ebx
mov dword [ebx + 0x34], eax
lea eax, [ebp - 0x10]
push 0
push eax
push 1
push edi
push dword [ebx + 0x34]
mov dword [ebp - 0x10], 0
mov dword [ebx + 0x18], 3
mov dword [ebx + 0x28], 2
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x51174f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
jmp 0x511751
xor edi, edi
xor eax, eax
lea ecx, [ebx + 0x28]
cmp edi, 0x3e5
cmove edi, eax
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
je 0x51176d
test edi, edi
je 0x511791
mov ecx, dword [ebp - 8]
push ebx
lea ecx, [ecx + 0x9c]
call fcn.0050e270
test eax, eax
jne 0x51178d
push ebx
push eax
mov eax, dword [ebx + 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
jne 0x5117b8
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
sub eax, esi
add dword [ebp + 0xc], esi
mov dword [ebp + 0x10], eax
lea ebx, [ecx + 0x80]
test eax, eax
jg 0x511670
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
neg esi
add eax, 0x44
lock xadd dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc