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

Disassembly:
sub esp, 0xc08
push ebx
push esi
push edi
mov esi, eax
mov ebx, ecx
lea edi, [esp + 0x14]
sub ebx, esi
sub edi, esi
mov dword [esp + 0xc], 0x80
push ebp
mov edi, edi
lea ecx, [ebx + esi]
call fcn.100ff060
mov ebp, eax
mov eax, edx
mov ecx, esi
mov dword [esp + 0x14], eax
call fcn.100ff060
xor ebp, eax
mov eax, dword [esp + 0x14]
xor eax, edx
mov dword [edi + esi], ebp
mov dword [edi + esi + 4], eax
add esi, 8
sub dword [esp + 0x10], 1
jne 0x100ff110
xor esi, esi
pop ebp
lea eax, [esp + esi + 0x814]
push eax
mov eax, 2
lea ecx, [esp + esi + 0x18]
mov edx, eax
call fcn.100fee10
add esi, 0x80
add esp, 4
cmp esi, 0x400
jb 0x100ff143
xor esi, esi
mov edi, edi
lea edx, [esp + esi + 0x414]
mov eax, 0x10
push edx
lea ecx, [esp + esi + 0x818]
mov edx, eax
call fcn.100fee10
add esi, 0x10
add esp, 4
cmp esi, 0x80
jb 0x100ff170
mov esi, dword [esp + 0xc18]
add esi, 2
xor edi, edi
lea ecx, [esi - 2]
call fcn.100ff060
xor eax, dword [esp + edi + 0x414]
xor edx, dword [esp + edi + 0x418]
xor eax, dword [esp + edi + 0x14]
xor edx, dword [esp + edi + 0x18]
mov byte [ecx], al
mov ecx, eax
mov ebx, edx
shrd ecx, ebx, 8
mov byte [esi - 1], cl
shr ebx, 8
mov ecx, eax
mov ebx, edx
shrd ecx, ebx, 0x10
mov byte [esi], cl
mov ecx, edx
shrd eax, ecx, 0x18
mov byte [esi + 1], al
shr ecx, 0x18
mov eax, edx
mov ecx, edx
mov byte [esi + 2], al
shr ecx, 8
shr eax, 0x10
shr edx, 0x18
mov byte [esi + 3], cl
mov byte [esi + 4], al
mov byte [esi + 5], dl
add edi, 8
shr ebx, 0x10
add esi, 8
cmp edi, 0x400
jb 0x100ff1a5
push 0x400
lea ecx, [esp + 0x18]
push 0
push ecx
call fcn.10016e50
push 0x400
lea edx, [esp + 0x824]
push 0
push edx
call fcn.10016e50
push 0x400
lea eax, [esp + 0x430]
push 0
push eax
call fcn.10016e50
add esp, 0x24
pop edi
pop esi
pop ebx
add esp, 0xc08
ret
Function at 0x1010e460
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x224
mov eax, dword [0x1026d48c]
xor eax, esp
mov dword [esp + 0x220], eax
cmp byte [0x1026b400], 0
push edi
mov edi, ecx
jne 0x1010e498
mov al, 1
pop edi
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.1018f87e
add esp, 0x224
ret
push ebp
push 0x190
lea eax, [esp + 0x18]
push 0
push eax
mov dword [esp + 0x18], 1
call fcn.1018fc10
mov ebp, dword [sym.imp.WS2_32.dll_WSAStartup]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 0x909
call ebp
cmp eax, 0x276c
mov dword [esp + 0xc], eax
jne 0x1010e585
mov ecx, 5
push esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], 2
jmp 0x1010e4f4
mov ecx, dword [esp + 0x14]
cmp ecx, 1
jl 0x1010e545
sub dword [esp + 0xc], 1
jns 0x1010e50f
sub ecx, 1
mov dword [esp + 0xc], 9
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x1010e545
xor edx, edx
mov dh, byte [esp + 0xc]
push 0x190
lea eax, [esp + 0x1c]
push 0
push eax
mov dl, cl
movzx esi, dx
call fcn.1018fc10
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push esi
call ebp
cmp eax, 0x276c
mov dword [esp + 0x10], eax
je 0x1010e4f0
test eax, eax
pop esi
jne 0x1010e58d
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x14]
push eax
push str.Using_ws2_32.dll_version__d__d
lea ecx, [esp + 0x1e4]
push 0x50
push ecx
call fcn.1002b500
mov edx, dword [edi]
mov edx, dword [edx + 0x2c]
add esp, 0x14
lea eax, [esp + 0x1d8]
push eax
push str.ws2_32_DLL_Version
mov ecx, edi
call edx
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1010e619
cmp eax, 0x276b
jne 0x1010e5a0
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
push str.The_underlying_network_subsystem_is_not_ready_for_network_communication.
jmp 0x1010e615
cmp eax, 0x276c
jne 0x1010e5b3
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
push str.The_version_of_Windows_Sockets_support_requested_is_not_provided_by_this_particular_Windows_Sockets_implementation.
jmp 0x1010e615
cmp eax, 0x2734
jne 0x1010e5c6
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
push str.A_blocking_Windows_Sockets_1.1_operation_is_in_progress.
jmp 0x1010e615
cmp eax, 0x2753
jne 0x1010e5d9
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
push str.Limit_on_the_number_of_tasks_supported_by_the_Windows_Sockets_implementation_has_been_reached.
jmp 0x1010e615
cmp eax, 0x271e
jne 0x1010e5ec
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
push str.The_lpWSAData_is_not_a_valid_pointer.
jmp 0x1010e615
lea eax, [esp + 0xc]
push eax
push str.WSAStartup_error:_0x_x
lea ecx, [esp + 0x1ac]
push 0x32
push ecx
call fcn.1002b4e0
mov edx, dword [edi]
mov edx, dword [edx + 0x14]
add esp, 0x10
lea eax, [esp + 0x1a4]
push eax
mov ecx, edi
call edx
mov byte [0x1026b400], 0
call fcn.1010e370
mov ecx, dword [esp + 0x228]
xor eax, eax
cmp dword [esp + 0xc], eax
pop ebp
sete al
pop edi
xor ecx, esp
call fcn.1018f87e
add esp, 0x224
ret
Function at 0x1010e9f0
Capabilities:
Set socket configuration

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx + 0xd0], 0x4901fb2a
je 0x1010ea1d
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push str.Internal_error:_Socket_object_already_deleted.
call edx
push 0
call fcn.100c11a0
add esp, 4
pop ebx
ret 8
mov eax, dword [esp + 8]
cmp dword [ebx + 0xd8], eax
push esi
lea esi, [ebx + 0xd8]
je 0x1010ea9e
test eax, eax
je 0x1010ea9e
cmp eax, 0x1000
jb 0x1010ea9e
cmp eax, 0x800000
jbe 0x1010ea47
mov eax, 0x800000
shr eax, 0xc
shl eax, 0xc
cmp dword [ebx + 0x294], 0xffffffff
mov dword [esi], eax
je 0x1010ea9e
push edi
mov edi, dword [esp + 0x14]
cmp byte [edi + 0x125], 0
je 0x1010ea83
mov eax, dword [edi]
mov edx, dword [eax + 0x18]
push str.Setting_SO_SNDBUF_size
mov ecx, edi
call edx
mov eax, dword [esi]
push eax
push str.sendBufSize
mov ecx, edi
call fcn.100612a0
mov ecx, dword [ebx + 0x294]
push 4
push esi
push 0x1001
push 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
pop edi
pop esi
pop ebx
ret 8

Function at 0x1010eb40
Capabilities:
Set socket configuration

Disassembly:
sub esp, 8
push esi
mov esi, ecx
cmp dword [esi + 0x294], 0xffffffff
je 0x1010ebcb
cmp byte [esp + 0x10], 0
mov ecx, dword [esp + 0x14]
mov dword [esp + 4], 1
mov dword [esp + 8], 0
je 0x1010eb9e
cmp byte [ecx + 0x125], 0
je 0x1010eb7f
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
push str.Turning_on_TCP_NODELAY.
call edx
mov ecx, dword [esi + 0x294]
push 4
lea eax, [esp + 8]
push eax
push 1
push 6
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
add esp, 8
ret 8
cmp byte [ecx + 0x125], 0
je 0x1010ebb3
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
push str.Turning_off_TCP_NODELAY.
call eax
mov edx, dword [esi + 0x294]
push 4
lea ecx, [esp + 0xc]
push ecx
push 1
push 6
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
add esp, 8
ret 8

Function at 0x1010ebe0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
mov eax, dword [esi + 0x294]
cmp eax, 0xffffffff
jne 0x1010ebfa
xor al, al
pop esi
add esp, 0x14
ret 8
xor ecx, ecx
cmp byte [esp + 0x1c], cl
mov dword [esp + 4], 1
mov dword [esp + 8], ecx
je 0x1010ec55
push ecx
push ecx
lea edx, [esp + 0x24]
push edx
push ecx
push ecx
push 0xc
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x24]
push ecx
push 0x98000004
push eax
mov dword [esp + 0x30], 1
mov dword [esp + 0x38], 0x7148
mov dword [esp + 0x34], 0x1d0d8
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov eax, dword [esi + 0x294]
push 4
lea edx, [esp + 8]
push edx
jmp 0x1010ec5c
push 4
lea ecx, [esp + 0xc]
push ecx
push 8
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov al, 1
pop esi
add esp, 0x14
ret 8
Function at 0x10110200
Capabilities:
Get socket status

Disassembly:
push 0xffffffffffffffff
push 0x101a30ab
mov eax, dword fs:[0]
push eax
sub esp, 0x85c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1026d48c]
xor eax, esp
push eax
lea eax, [esp + 0x870]
mov dword fs:[0], eax
mov ebx, ecx
mov ebp, dword [esp + 0x880]
mov ecx, ebp
call fcn.10095ac0
mov esi, dword [esp + 0x884]
push esi
mov ecx, ebp
call fcn.10095b00
test al, al
je 0x10110267
mov byte [ebp + 0x15], 1
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.Wait_for_data_on_socket_aborted_by_app
mov ecx, esi
call edx
jmp 0x1011034a
cmp dword [ebx + 0x294], 0xffffffff
jne 0x10110287
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.Cannot_wait_for_socket_data:_not_connected__invalid_socket_
mov ecx, esi
call edx
mov byte [ebp + 0x16], 1
jmp 0x1011034a
xor edi, edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
call fcn.10061a50
mov eax, 0x3004bc8d
mov dword [esp + 0x1c], vtable.ckFdSet.0
mov dword [esp + 0x24], eax
mov dword [esp + 0x86c], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x878], edi
call fcn.1010e850
mov eax, dword [ebx + 0x294]
push esi
push eax
lea ecx, [esp + 0x24]
call fcn.1010e8a0
test al, al
jne 0x101102e8
mov byte [ebp + 0x16], 1
mov dword [esp + 0x878], 0xffffffff
jmp 0x1011032e
lea ecx, [esp + 0x14]
push ecx
push edi
push edi
lea edx, [esp + 0x34]
push edx
push edi
call dword [sym.imp.WS2_32.dll_select]
or ecx, 0xffffffff
cmp eax, ecx
je 0x10110327
cmp eax, edi
jl 0x10110327
mov dword [esp + 0x878], ecx
lea ecx, [esp + 0x1c]
jne 0x1011031e
mov byte [ebp + 0x14], 1
call fcn.1010e830
jmp 0x1011034a
call fcn.1010e830
mov al, 1
jmp 0x1011034c
mov dword [esp + 0x878], ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], vtable.ckFdSet.0
mov dword [esp + 0x24], edi
mov dword [esp + 0x86c], edi
call fcn.10061a60
xor al, al
mov ecx, dword [esp + 0x870]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x868
ret 8
Function at 0x10110790
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x101a315f
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x1026d48c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.ChilkatSocket.0
xor ebx, ebx
lea ecx, [esi + 0x30]
mov dword [esi + 0x10], vtable._ckSockBulkSendBehavior.0
mov byte [esi + 0x18], bl
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
call fcn.101888f0
mov dword [esi + 0xc0], ebx
mov dword [esi + 0xc4], ebx
mov byte [esi + 0xc8], bl
lea ecx, [esi + 0xe0]
mov dword [esp + 0x18], ebx
mov dword [esi + 0xd0], 0x4901fb2a
mov byte [esi + 0xd4], bl
mov byte [esi + 0xd5], bl
mov byte [esi + 0xd6], bl
call fcn.100ee6a0
lea ecx, [esi + 0x128]
mov byte [esp + 0x18], 1
call fcn.100ee6a0
lea ecx, [esi + 0x170]
mov byte [esp + 0x18], 2
call fcn.101888f0
lea ecx, [esi + 0x200]
mov byte [esp + 0x18], 3
call fcn.101888f0
lea ecx, [esi + 0x2a4]
mov byte [esp + 0x18], 4
mov byte [esi + 0x290], bl
mov byte [esi + 0x291], bl
mov byte [esi + 0x292], bl
mov dword [esi + 0x294], 0xffffffff
mov dword [esi + 0x298], 2
mov dword [esi + 0x2a0], ebx
call fcn.100182e0
lea ecx, [esi + 0x2c4]
mov byte [esp + 0x18], 5
call fcn.10010fb0
mov byte [esp + 0x18], 6
mov byte [esi + 0x338], 1
mov byte [esi + 0x339], 1
mov dword [esi + 0x33c], ebx
mov byte [esi + 0x340], bl
mov byte [esi + 0x341], bl
mov byte [esi + 0x342], bl
call fcn.1010e650
mov eax, dword [0x1026b3f8]
mov dword [esi + 0x29c], eax
add eax, 1
mov dword [esi + 0x16c], 1
mov dword [esi + 0x124], 2
mov dword [0x1026b3f8], eax
mov eax, dword [0x1025e224]
mov dword [esi + 0xd8], eax
mov ecx, dword [0x1025e228]
mov dword [esi + 0xdc], ecx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x10110940
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push 0xffffffffffffffff
push 0x101a3188
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1026d48c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1026d48c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
push str.ck_getsockname_ipv4
mov ebp, ecx
push esi
lea ecx, [esp + 0x20]
call fcn.10061630
mov ecx, edi
mov dword [esp + 0x40], 0
call fcn.10010660
mov dword [ebx], 0
mov eax, dword [ebp + 0x294]
or ebp, 0xffffffff
cmp eax, ebp
je 0x10110a28
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
push eax
mov dword [esp + 0x20], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, ebp
je 0x10110a06
test eax, eax
jl 0x10110a06
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
mov ecx, edi
call fcn.10012ba0
mov ecx, dword [esp + 0x26]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
lea ecx, [esp + 0x18]
mov dword [ebx], edx
mov dword [esp + 0x40], ebp
call fcn.100616a0
mov al, 1
jmp 0x10110a45
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.Failed_to_getsockname
mov ecx, esi
call edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push esi
push 0
push eax
call fcn.1010ed00
add esp, 0xc
jmp 0x10110a36
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.Cannot_get_socket_name:_INVALID_SOCKET.
mov ecx, esi
call edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], ebp
call fcn.100616a0
xor al, al
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1018f87e
add esp, 0x30
ret 0xc
Function at 0x10110a70
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push 0xffffffffffffffff
push 0x101a31b8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1026d48c]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1026d48c]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x58]
push str.ck_getsockname_ipv6
mov ebp, ecx
push esi
lea ecx, [esp + 0x20]
call fcn.10061630
mov ecx, edi
mov dword [esp + 0x4c], 0
call fcn.10010660
mov dword [ebx], 0
mov eax, dword [ebp + 0x294]
or ebp, 0xffffffff
cmp eax, ebp
je 0x10110b57
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
push eax
mov dword [esp + 0x20], 0x1c
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, ebp
je 0x10110b35
test eax, eax
jl 0x10110b35
mov ecx, edi
call fcn.10010660
mov edx, edi
lea ecx, [esp + 0x2c]
call fcn.1010dd50
mov eax, dword [esp + 0x26]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
mov dword [ebx], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x4c], ebp
call fcn.100616a0
mov al, 1
jmp 0x10110b74
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Failed_to_getsockname_ipv6
mov ecx, esi
call eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push esi
push 0
push eax
call fcn.1010ed00
add esp, 0xc
jmp 0x10110b65
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Cannot_get_socket_name:_INVALID_SOCKET.
mov ecx, esi
call eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x4c], ebp
call fcn.100616a0
xor al, al
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.1018f87e
add esp, 0x3c
ret 0xc

Function at 0x10110ba0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101a6848
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
mov eax, dword [0x1026d48c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
push str.domainLookup_ipv4
push esi
lea ecx, [esp + 0x14]
call fcn.10061630
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push ecx
push esi
push edx
push eax
mov dword [esp + 0x40], 0
call fcn.1010f1d0
add esp, 0x20
lea ecx, [esp + 0xc]
mov bl, al
mov dword [esp + 0x20], 0xffffffff
call fcn.100616a0
mov al, bl
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x101117a0
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
push 0xffffffffffffffff
push 0x101a32bb
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x1026d48c]
xor eax, esp
mov dword [esp + 0x14c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1026d48c]
xor eax, esp
push eax
lea eax, [esp + 0x164]
mov dword fs:[0], eax
mov eax, dword [esp + 0x178]
mov edi, ecx
cmp dword [edi + 0x294], 0xffffffff
mov ecx, dword [esp + 0x17c]
mov dword [esp + 0x14], ecx
je 0x101118d4
mov ebp, dword [esp + 0x174]
test ebp, ebp
je 0x1011180f
cmp ebp, 0x7530
jbe 0x10111814
mov ebp, 0x7530
push eax
lea ecx, [esp + 0x1c]
call fcn.10095850
mov dword [esp + 0x16c], 0
call sub.KERNEL32.dll_GetTickCount
mov ebx, dword [sym.imp.WS2_32.dll_recv]
push 0
push 0x20
lea edx, [esp + 0x148]
mov esi, eax
mov eax, dword [edi + 0x294]
push edx
push eax
call ebx
test eax, eax
je 0x1011188f
cmp eax, 0xffffffff
je 0x10111858
test eax, eax
jge 0x10111865
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x101118c0
call sub.KERNEL32.dll_GetTickCount
cmp eax, esi
jae 0x10111870
mov esi, eax
sub eax, esi
cmp eax, ebp
jae 0x101118c0
mov edx, dword [edi + 0x294]
push 0
push 0x20
lea ecx, [esp + 0x148]
push ecx
push edx
call ebx
test eax, eax
jne 0x1011184f
mov ecx, dword [esp + 0x14]
cmp byte [ecx + 0x125], 0
je 0x101118a8
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
push str.TCP_connection_cleanly_closed_by_peer.
call edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x16c], 0xffffffff
call fcn.10095930
mov al, 1
jmp 0x101118d6
lea ecx, [esp + 0x18]
mov dword [esp + 0x16c], 0xffffffff
call fcn.10095930
xor al, al
mov ecx, dword [esp + 0x164]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14c]
xor ecx, esp
call fcn.1018f87e
add esp, 0x15c
ret 0xc
Function at 0x101122d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
cmp dword [ecx + 0x298], 2
jne 0x101122de
jmp fcn.10110940
jmp fcn.10110a70
Function at 0x10112c80
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0xffffffffffffffff
push 0x101a3388
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x1026d48c]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
push edi
mov eax, dword [0x1026d48c]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov edi, dword [esp + 0x34]
mov esi, ecx
mov eax, dword [esi + 0x294]
cmp eax, 0xffffffff
jne 0x10112cc8
mov byte [esi + 0x290], 0
cmp byte [esi + 0x290], 0
je 0x10112d11
cmp byte [esi + 0xd6], 0
jne 0x10112d11
cmp byte [esi + 0xd5], 0
jne 0x10112d62
cmp byte [esi + 0xd4], 0
jne 0x10112d62
cmp byte [edi + 0x130], 0
jne 0x10112d62
push 2
push 1
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x10112d15
push edi
mov ecx, esi
call fcn.101114b0
xor al, al
jmp 0x10112d64
cmp eax, 0xffffffff
je 0x10112d1e
test eax, eax
jge 0x10112d62
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x10112d62
push str.isConnected_recv_peek
push edi
lea ecx, [esp + 0x14]
call fcn.10061630
push edi
push 0
mov dword [esp + 0x34], 0
call fcn.10110920
add esp, 8
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.100616a0
xor al, al
jmp 0x10112d64
mov al, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.1018f87e
add esp, 0x24
ret 4
Function at 0x10112d90
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x101a33c0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1026d48c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x44]
push str.terminateConnection
push edi
lea ecx, [esp + 0x24]
call fcn.10061630
xor ebx, ebx
or ebp, 0xffffffff
cmp dword [esi + 0x294], ebp
mov dword [esp + 0x30], ebx
jne 0x10112df1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], ebp
call fcn.100616a0
mov al, 1
jmp 0x10112fa1
cmp byte [esi + 0xd6], bl
lea eax, [esi + 0xd6]
jne 0x10112ddd
push eax
lea ecx, [esp + 0x18]
call fcn.10061af0
cmp byte [esp + 0x38], bl
mov byte [esp + 0x30], 1
jne 0x10112e1e
push 1
call fcn.1002ace0
add esp, 4
cmp byte [esi + 0x291], bl
mov byte [esp + 0x44], 1
jne 0x10112ecd
cmp byte [esp + 0x38], bl
jne 0x10112ecd
cmp byte [esi + 0x292], bl
jne 0x10112ecd
mov eax, dword [esi + 0x294]
push 1
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
cmp eax, ebx
mov byte [esi + 0x292], 1
je 0x10112eb7
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
push str.error_on_socket_shutdown.
mov ecx, edi
call eax
push edi
push ebx
call fcn.10110920
mov ecx, dword [esi + 0x294]
add esp, 8
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [esp + 0x14]
mov dword [esi + 0x294], ebp
mov byte [esi + 0x290], bl
mov byte [esi + 0x291], bl
mov byte [esp + 0x30], bl
call fcn.10061b10
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], ebp
call fcn.100616a0
xor al, al
jmp 0x10112fa1
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
push edi
push edx
push eax
mov ecx, esi
call fcn.101117a0
mov byte [esp + 0x44], al
push str.AbortiveClose
lea ecx, [edi + 0x90]
call fcn.10013020
test al, al
je 0x10112f0b
mov edx, dword [esi + 0x294]
push 4
lea ecx, [esp + 0x3c]
push ecx
push 0x80
push 0xffff
push edx
mov word [esp + 0x4c], 1
mov word [esp + 0x4e], bx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [esi + 0x294]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp eax, ebx
je 0x10112f3f
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
push str.error_on_closesocket.
mov ecx, edi
call eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
push ebx
push eax
call fcn.1010ed00
add esp, 0xc
mov byte [esp + 0x44], bl
mov dword [esi + 0x294], ebp
cmp byte [edi + 0x125], bl
je 0x10112f77
cmp byte [esi + 0x291], bl
je 0x10112f5c
push str.Closed_listen_socket.
jmp 0x10112f6e
cmp byte [esp + 0x44], bl
je 0x10112f69
push str.Cleanly_terminated_TCP_connection.
jmp 0x10112f6e
push str.Terminated_TCP_connection.
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
lea ecx, [esp + 0x14]
mov byte [esi + 0x290], bl
mov byte [esi + 0x291], bl
mov byte [esp + 0x30], bl
call fcn.10061b10
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], ebp
call fcn.100616a0
mov al, byte [esp + 0x44]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x10