joyce8/EMBER2024-capa huggingface dataset:
Function at 0x560950
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x717f80]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [0x7db528]
push ebx
push esi
movups xmmword [ebp - 0x24], xmm0
push edi
movups xmm0, xmmword [0x7db538]
mov edi, dword [ebp + 8]
mov ebx, 0xff
movups xmmword [ebp - 0x14], xmm0
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 8]
push 0x7db548
lea eax, [ecx + ecx]
shr ecx, 0x1f
mov dword [ebp - 0x24], eax
lea eax, [edx + edx]
or ecx, eax
shr edx, 0x1f
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + ecx]
shr ecx, 0x1f
or edx, eax
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x18]
lea eax, [edx + edx]
shr edx, 0x1f
or ecx, eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x14]
lea eax, [ecx + ecx]
shr ecx, 0x1f
or edx, eax
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x10]
lea eax, [edx + edx]
shr edx, 0x1f
or ecx, eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0xc]
lea eax, [ecx + ecx]
shr ecx, 0x1f
or edx, eax
lea eax, [esi + esi]
or ecx, eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x24]
call fcn.0055a390
movzx eax, al
lea ecx, [ebp - 0x24]
xor eax, 1
shr esi, 0x1f
or eax, esi
push eax
push 0x7db548
call fcn.00563600
mov edx, dword [ebp + 0xc]
mov eax, ebx
shr eax, 5
mov ecx, ebx
and ecx, 0x1f
mov eax, dword [edx + eax*4]
shr eax, cl
lea ecx, [ebp - 0x24]
and eax, 1
push eax
push edi
call fcn.0055a520
push 0x7db548
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.0055a390
movzx ecx, al
xor ecx, 1
or ecx, esi
push ecx
push 0x7db548
lea ecx, [ebp - 0x24]
call fcn.00563600
sub ebx, 1
jns 0x560981
movups xmm0, xmmword [ebp - 0x24]
mov ecx, dword [ebp - 4]
xor ecx, ebp
movups xmmword [edi], xmm0
movups xmm0, xmmword [ebp - 0x14]
movups xmmword [edi + 0x10], xmm0
pop edi
pop esi
pop ebx
call fcn.00622073
mov esp, ebp
pop ebp
ret
Function at 0x570e00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x636934
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x717f80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0x40
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
call fcn.006222af
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x570ec4
push 0x40
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, esi
call fcn.00476f20
mov dword [esi], vtable.TreeNode.0
mov eax, esi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov word [esi + 0x20], 1
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov byte [esi + 0x3c], 0xce
mov byte [esi + 0x10], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x574400
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x636c46
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x717f80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x14]
mov dword [esi], vtable._ckSymSettings.0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0x100
call fcn.0049ead0
lea ecx, [esi + 0x34]
mov dword [ebp - 4], 0
mov dword [esi + 0x30], 0
call fcn.0049ead0
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 1
call fcn.0049ead0
lea ecx, [esi + 0x6c]
mov byte [ebp - 4], 2
call fcn.0049ead0
mov dword [esi + 0x88], 0
mov eax, esi
mov byte [esi + 0xac], 1
mov dword [esi + 0xb0], 0
mov dword [esi + 0xb4], 0
mov dword [esi + 0xc8], 0x80
mov byte [esi + 0xcc], 0
mov byte [esi + 0x2c], 1
mov byte [esi + 0x4c], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x579bd0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, str.expand_16_byte_k
movzx ecx, byte [esi + 3]
lea edx, [esi + 0x10]
shl ecx, 8
movzx eax, byte [esi + 2]
or ecx, eax
movzx eax, byte [esi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x454], ecx
movzx ecx, byte [esi + 7]
movzx eax, byte [esi + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 4]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x458], ecx
movzx ecx, byte [esi + 0xb]
movzx eax, byte [esi + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 8]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x45c], ecx
movzx ecx, byte [esi + 0xf]
movzx eax, byte [esi + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xc]
shl ecx, 8
or ecx, eax
cmp dword [ebp + 0x10], 0x100
mov dword [ebx + 0x460], ecx
mov ecx, 0x692d88
cmovne edx, esi
cmove edi, ecx
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x464], ecx
movzx ecx, byte [edx + 7]
movzx eax, byte [edx + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x468], ecx
movzx ecx, byte [edx + 0xb]
movzx eax, byte [edx + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 8]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x46c], ecx
movzx ecx, byte [edx + 0xf]
movzx eax, byte [edx + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xc]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x470], ecx
movsx ecx, byte [edi + 3]
movsx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
movsx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movsx eax, byte [edi]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x444], ecx
movsx ecx, byte [edi + 7]
movsx eax, byte [edi + 6]
shl ecx, 8
or ecx, eax
movsx eax, byte [edi + 5]
shl ecx, 8
or ecx, eax
movsx eax, byte [edi + 4]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x448], ecx
movsx ecx, byte [edi + 0xb]
movsx eax, byte [edi + 0xa]
shl ecx, 8
or ecx, eax
movsx eax, byte [edi + 9]
shl ecx, 8
or ecx, eax
movsx eax, byte [edi + 8]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x44c], ecx
movsx ecx, byte [edi + 0xf]
movsx eax, byte [edi + 0xe]
shl ecx, 8
or ecx, eax
movsx eax, byte [edi + 0xd]
shl ecx, 8
or ecx, eax
movsx eax, byte [edi + 0xc]
shl ecx, 8
pop edi
or ecx, eax
pop esi
mov dword [ebx + 0x450], ecx
pop ebx
pop ebp
ret 0x10
Function at 0x579ee0
Capabilities:
Encrypt data using salsa20 or chacha
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
je 0x57a0ce
mov esi, dword [ebp + 8]
lea ecx, [esi + 0x14]
call fcn.0046e290
cmp eax, 0x20
jne 0x57a0ce
lea eax, [esi + 0x34]
mov ecx, eax
mov dword [ebp + 0xc], eax
call fcn.0046e290
cmp eax, 0xc
jb 0x57a0ce
lea ecx, [esi + 0x14]
call fcn.004a2ca0
mov ecx, dword [ebp + 0xc]
mov esi, eax
call fcn.004a2ca0
mov dword [ebx], 0x61707865
mov edi, eax
mov dword [ebx + 4], 0x3320646e
mov dword [ebx + 8], 0x79622d32
mov dword [ebx + 0xc], 0x6b206574
movzx edx, byte [esi + 3]
movzx ecx, byte [esi + 2]
movzx eax, byte [esi + 1]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
movzx eax, byte [esi]
shl edx, 8
or edx, eax
mov dword [ebx + 0x10], edx
movzx ecx, byte [esi + 7]
movzx eax, byte [esi + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 4]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x14], ecx
movzx ecx, byte [esi + 0xb]
movzx eax, byte [esi + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 8]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x18], ecx
movzx ecx, byte [esi + 0xf]
movzx eax, byte [esi + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xc]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x1c], ecx
movzx ecx, byte [esi + 0x13]
movzx eax, byte [esi + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x10]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x20], ecx
movzx ecx, byte [esi + 0x17]
movzx eax, byte [esi + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x14]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x24], ecx
movzx ecx, byte [esi + 0x1b]
movzx eax, byte [esi + 0x1a]
shl ecx, 8
or ecx, eax
shl ecx, 8
movzx eax, byte [esi + 0x19]
or ecx, eax
movzx eax, byte [esi + 0x18]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x28], ecx
movzx ecx, byte [esi + 0x1f]
movzx eax, byte [esi + 0x1e]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x1d]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x1c]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x2c], ecx
movzx ecx, byte [edi + 3]
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x34], ecx
movzx ecx, byte [edi + 7]
movzx eax, byte [edi + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 4]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x38], ecx
movzx ecx, byte [edi + 0xb]
movzx eax, byte [edi + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 8]
shl ecx, 8
pop edi
or ecx, eax
mov al, 1
pop esi
mov dword [ebx + 0x3c], ecx
pop ebx
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
Function at 0x581e80
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
cmp dword [ecx + 0x290], 2
jne 0x581e92
pop ebp
jmp fcn.00582ea0
pop ebp
jmp fcn.00582fd0
Function at 0x582640
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x717f80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x28c]
cmp eax, 0xffffffff
jne 0x582671
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret 8
cmp byte [ebp + 8], 0
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x10], 0
je 0x5826d4
push 0
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 0x1c], 1
push ecx
push 0
push 0
push 0xc
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x14], 0x7148
push ecx
push 0x98000004
push eax
mov dword [ebp - 0x18], 0x1d0d8
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 4
lea eax, [ebp - 0xc]
push eax
push 8
push 0xffff
push dword [esi + 0x28c]
jmp 0x5826e2
push 4
lea ecx, [ebp - 0x10]
push ecx
push 8
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00622073
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63792d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x717f80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
mov edi, dword [ebp + 0x10]
xorps xmm0, xmm0
mov ebx, dword [ebp + 8]
push str.ck_getsockname_ipv4
push edi
mov dword [ebp - 0x34], eax
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
call fcn.004b2490
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.0049eab0
mov eax, dword [ebp - 0x34]
mov dword [eax], 0
mov eax, dword [esi + 0x28c]
cmp eax, 0xffffffff
je 0x582f7d
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x10
push ecx
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x582f5d
test eax, eax
js 0x582f5d
push dword [ebp - 0x2c]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
mov ecx, ebx
call fcn.0049b7e0
push dword [ebp - 0x2e]
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [ebp - 0x34]
mov bl, 1
movzx eax, ax
mov dword [ecx], eax
jmp 0x582f8b
mov eax, dword [edi]
mov ecx, edi
push str.Failed_to_getsockname
call dword [eax + 0x14]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
push 0
push eax
call fcn.00585780
add esp, 0xc
jmp 0x582f89
mov eax, dword [edi]
mov ecx, edi
push str.Cannot_get_socket_name:_INVALID_SOCKET.
call dword [eax + 0x14]
xor bl, bl
lea ecx, [ebp - 0x20]
call fcn.004b2630
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret 0xc
Function at 0x582fd0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63796d
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x717f80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
mov edi, dword [ebp + 0x10]
xorps xmm0, xmm0
mov ebx, dword [ebp + 8]
push str.ck_getsockname_ipv6
push edi
mov dword [ebp - 0x40], eax
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
call fcn.004b2490
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.0049eab0
mov eax, dword [ebp - 0x40]
mov dword [eax], 0
mov eax, dword [esi + 0x28c]
cmp eax, 0xffffffff
je 0x5830b0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x1c
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x583090
test eax, eax
js 0x583090
mov ecx, ebx
call fcn.0049eab0
lea eax, [ebp - 0x34]
push ebx
push eax
call fcn.00584ab0
add esp, 8
push dword [ebp - 0x3a]
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [ebp - 0x40]
mov bl, 1
movzx eax, ax
mov dword [ecx], eax
jmp 0x5830be
mov eax, dword [edi]
mov ecx, edi
push str.Failed_to_getsockname_ipv6
call dword [eax + 0x14]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
push 0
push eax
call fcn.00585780
add esp, 0xc
jmp 0x5830bc
mov eax, dword [edi]
mov ecx, edi
push str.Cannot_get_socket_name:_INVALID_SOCKET.
call dword [eax + 0x14]
xor bl, bl
lea ecx, [ebp - 0x20]
call fcn.004b2630
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret 0xc
Function at 0x585550
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x637b20
mov eax, dword fs:[0]
push eax
sub esp, 0x860
mov eax, dword [0x717f80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov ecx, esi
mov edi, dword [ebp + 0xc]
call fcn.004d90e0
push edi
mov ecx, esi
call fcn.004d9240
test al, al
je 0x5855b0
mov byte [esi + 0x15], 1
mov ecx, edi
mov eax, dword [edi]
push str.Wait_for_data_on_socket_aborted_by_app
call dword [eax + 0x14]
xor al, al
jmp 0x585686
cmp dword [ebx + 0x28c], 0xffffffff
jne 0x5855d0
mov eax, dword [edi]
mov ecx, edi
push str.Cannot_wait_for_socket_data:_not_connected__invalid_socket_
call dword [eax + 0x14]
mov byte [esi + 0x16], 1
xor al, al
jmp 0x585686
lea ecx, [ebp - 0x86c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.00476f40
mov dword [ebp - method.ckFdSet.virtual_0], vtable.ckFdSet.0
mov dword [ebp - 0x864], 0x3004bc8d
mov dword [ebp - 0x1c], 0x3004bc8d
push 0x40
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x860], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [ebp - 0x864], 0x3004bc8d
je 0x58563b
push 0
call fcn.00401ab0
add esp, 4
cmp dword [ebp - 0x1c], 0x3004bc8d
je 0x58564e
push 0
call fcn.00401ab0
add esp, 4
mov edx, dword [ebx + 0x28c]
test edx, edx
jns 0x5856a4
mov byte [esi + 0x16], 1
xor bl, bl
lea ecx, [ebp - 0x86c]
mov dword [ebp - method.ckFdSet.virtual_0], vtable.ckFdSet.0
mov dword [ebp - 0x864], 0
mov dword [ebp - 0x1c], 0
call fcn.00476fe0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x860]
xor eax, eax
test ecx, ecx
je 0x5856be
cmp dword [ebp + eax*4 - 0x85c], edx
je 0x5856be
inc eax
cmp eax, ecx
jb 0x5856b0
cmp eax, ecx
jne 0x5856d7
cmp ecx, 0x200
jae 0x5856d7
mov dword [ebp + eax*4 - 0x85c], edx
inc dword [ebp - 0x860]
lea eax, [ebp - 0x18]
push eax
push 0
push 0
lea eax, [ebp - 0x860]
push eax
push 0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x58565c
test eax, eax
js 0x58565c
jne 0x58570a
mov byte [esi + 0x14], 1
jmp 0x58565c
mov bl, 1
jmp 0x58565e

Function at 0x585d90
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x717f80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [esi + 0x28c], 0xffffffff
je 0x585e00
cmp byte [ebp + 8], 0
mov al, byte [ecx + 0x129]
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 0
je 0x585ddc
test al, al
je 0x585dd7
mov eax, dword [ecx]
push str.Turning_on_TCP_NODELAY.
call dword [eax + 0x18]
lea eax, [ebp - 8]
jmp 0x585ded
test al, al
je 0x585dea
mov eax, dword [ecx]
push str.Turning_off_TCP_NODELAY.
call dword [eax + 0x18]
lea eax, [ebp - 0xc]
push 4
push eax
push 1
push 6
push dword [esi + 0x28c]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00622073
mov esp, ebp
pop ebp
ret 8
Function at 0x585eb0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
mov esi, ecx
cmp dword [esi + 0xc8], 0x4901fb2a
je 0x585ee1
mov ecx, dword [ebp + 0xc]
push str.Internal_error:_Socket_object_already_deleted.
mov eax, dword [ecx]
call dword [eax + 0x14]
push 0
call fcn.00401ab0
add esp, 4
pop esi
pop ebp
ret 8
cmp dword [esi + 0xd0], edx
push edi
lea edi, [esi + 0xd0]
je 0x585f57
test edx, edx
je 0x585f57
cmp edx, 0x1000
jb 0x585f57
mov eax, 0x800000
cmp edx, eax
cmovbe eax, edx
and eax, 0xfffff000
cmp dword [esi + 0x28c], 0xffffffff
mov dword [edi], eax
je 0x585f57
push ebx
mov ebx, dword [ebp + 0xc]
cmp byte [ebx + 0x129], 0
je 0x585f3d
mov eax, dword [ebx]
mov ecx, ebx
push str.Setting_SO_SNDBUF_size
call dword [eax + 0x18]
push dword [edi]
mov ecx, ebx
push str.sendBufSize
call fcn.004b2d90
push 4
push edi
push 0x1001
push 0xffff
push dword [esi + 0x28c]
call dword [sym.imp.WS2_32.dll_setsockopt]
pop ebx
pop edi
pop esi
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x637b9d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x717f80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x28c]
lea eax, [esi + 0x288]
mov edi, dword [ebp + 8]
cmp ecx, 0xffffffff
jne 0x585fa3
mov byte [eax], 0
cmp byte [eax], 0
je 0x585ff3
cmp byte [esi + 0xce], 0
jne 0x585ff3
cmp byte [esi + 0xcd], 0
jne 0x586061
cmp byte [esi + 0xcc], 0
jne 0x586061
cmp byte [edi + 0x133], 0
jne 0x586061
push 2
push 1
lea eax, [ebp - 0x18]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x586012
push edi
mov ecx, esi
call fcn.005853c0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret 4
cmp eax, 0xffffffff
je 0x58601b
test eax, eax
jns 0x586061
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x586061
push str.isConnected_recv_peek
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push edi
lea ecx, [ebp - 0x24]
movq qword [ebp - 0x24], xmm0
call fcn.004b2490
push edi
push 0
mov dword [ebp - 4], 0
call fcn.00585bf0
add esp, 8
lea ecx, [ebp - 0x24]
call fcn.004b2630
jmp 0x585ff3
mov al, 1
jmp 0x585ff5
Function at 0x5acf20
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62571d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x717f80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
jl 0x5acfbe
test esi, esi
je 0x5acfbe
push str.getEntropy
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push eax
lea ecx, [ebp - 0x1c]
movq qword [ebp - 0x1c], xmm0
call fcn.004b2490
mov dword [ebp - 4], 0
call fcn.004b1600
mov ebx, eax
test ebx, ebx
jne 0x5acf97
lea ecx, [ebp - 0x1c]
xor bl, bl
call fcn.004b2630
mov al, bl
jmp 0x5acfc0
push esi
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push ebx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test esi, esi
lea ecx, [ebp - 0x1c]
setne bl
call fcn.004b2630
mov al, bl
jmp 0x5acfc0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret
Function at 0x5d9aa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x18]
dec eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
movd xmm0, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0xfc]
pshufd xmm4, xmm0, 0
push edi
mov edi, dword [ebp + 0x14]
lea edx, [eax + 0xfc]
cmp eax, ecx
ja 0x5d9ad7
cmp edx, esi
jae 0x5d9b0f
lea ecx, [edi + 0xfc]
cmp eax, ecx
ja 0x5d9ae5
cmp edx, edi
jae 0x5d9b0f
lea ecx, [ebx + 0xfc]
cmp eax, ecx
ja 0x5d9af3
cmp edx, ebx
jae 0x5d9b0f
lea edx, [esi + 0xfc]
cmp ebx, edx
ja 0x5d9b01
cmp ecx, esi
jae 0x5d9b0f
lea edx, [edi + 0xfc]
cmp ebx, edx
ja 0x5d9b4d
cmp ecx, edi
jb 0x5d9b4d
sub edi, ebx
mov dword [ebp + 0x18], 0x40
sub ebx, esi
sub eax, esi
mov dword [ebp + 0xc], eax
nop
mov edx, dword [esi]
lea ecx, [ebx + esi]
mov eax, dword [ecx + edi]
lea esi, [esi + 4]
xor edx, eax
and edx, dword [ebp - 4]
xor eax, edx
mov dword [ecx], eax
mov eax, dword [esi - 4]
mov ecx, dword [ebp + 0xc]
xor eax, edx
sub dword [ebp + 0x18], 1
mov dword [ecx + esi - 4], eax
jne 0x5d9b20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub esi, edi
sub ebx, edi
sub eax, edi
mov ecx, 0x10
nop dword [eax + eax]
lea edi, [edi + 0x10]
movups xmm3, xmmword [esi + edi - 0x10]
movups xmm1, xmmword [edi - 0x10]
movaps xmm2, xmm3
xorps xmm2, xmm1
andps xmm2, xmm4
movaps xmm0, xmm2
xorps xmm2, xmm3
xorps xmm0, xmm1
movups xmmword [ebx + edi - 0x10], xmm0
movups xmmword [eax + edi - 0x10], xmm2
sub ecx, 1
jne 0x5d9b60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret