joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14018f100
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x68
mov rax, qword [0x140353c70]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, r9
mov r14, r8
mov rsi, rdx
mov rbx, rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rax
lea r8, str.ck_getsockname_ipv4
mov rdx, r9
lea rcx, [rsp + 0x38]
call fcn.14004ce70
nop
mov rcx, rsi
call fcn.14003ba30
mov dword [r14], 0
mov rcx, qword [rbx + 0x290]
cmp rcx, 0xffffffffffffffff
je 0x14018f1cf
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
js 0x14018f1ab
mov ecx, dword [rsp + 0x2c]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rdx, rax
mov rcx, rsi
call fcn.1400377d0
movzx ecx, word [rsp + 0x2a]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [r14], eax
mov bl, 1
jmp 0x14018f1e1
mov rax, qword [rdi]
lea rdx, str.Failed_to_getsockname
mov rcx, rdi
call qword [rax + 0x28]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, rdi
xor edx, edx
mov ecx, eax
call fcn.140191e70
jmp 0x14018f1df
mov rax, qword [rdi]
lea rdx, str.Cannot_get_socket_name:_INVALID_SOCKET.
mov rcx, rdi
call qword [rax + 0x28]
xor bl, bl
lea rcx, [rsp + 0x38]
call fcn.14004d020
movzx eax, bl
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1402474e0
add rsp, 0x68
pop r14
pop rdi
pop rsi
pop rbx
ret

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

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x78
mov rax, qword [0x140353c70]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, r9
mov r14, r8
mov rsi, rdx
mov rbx, rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rax
lea r8, str.ck_getsockname_ipv6
mov rdx, r9
lea rcx, [rsp + 0x28]
call fcn.14004ce70
nop
mov rcx, rsi
call fcn.14003ba30
mov dword [r14], 0
mov rcx, qword [rbx + 0x290]
cmp rcx, 0xffffffffffffffff
je 0x14018f2df
mov dword [rsp + 0x20], 0x1c
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
js 0x14018f2bb
mov rcx, rsi
call fcn.14003ba30
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.140190db0
movzx ecx, word [rsp + 0x42]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [r14], eax
mov bl, 1
jmp 0x14018f2f1
mov rax, qword [rdi]
lea rdx, str.Failed_to_getsockname_ipv6
mov rcx, rdi
call qword [rax + 0x28]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, rdi
xor edx, edx
mov ecx, eax
call fcn.140191e70
jmp 0x14018f2ef
mov rax, qword [rdi]
lea rdx, str.Cannot_get_socket_name:_INVALID_SOCKET.
mov rcx, rdi
call qword [rax + 0x28]
xor bl, bl
lea rcx, [rsp + 0x28]
call fcn.14004d020
movzx eax, bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1402474e0
add rsp, 0x78
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140191ca0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1000]
mov eax, 0x1100
call fcn.140248160
sub rsp, rax
mov rax, qword [0x140353c70]
xor rax, rsp
mov qword [rbp + 0xff0], rax
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.1401a2180
mov rdx, rbx
mov rcx, rdi
call fcn.1401a2300
test al, al
je 0x140191d0d
mov byte [rdi + 0x29], 1
mov rax, qword [rbx]
lea rdx, str.Wait_for_data_on_socket_aborted_by_app
mov rcx, rbx
call qword [rax + 0x28]
xor al, al
jmp 0x140191dcf
cmp qword [rsi + 0x290], 0xffffffffffffffff
jne 0x140191d32
mov rax, qword [rbx]
lea rdx, str.Cannot_wait_for_socket_data:_not_connected__invalid_socket_
mov rcx, rbx
call qword [rax + 0x28]
mov byte [rdi + 0x2a], 1
xor al, al
jmp 0x140191dcf
xor r14d, r14d
mov qword [rsp + 0x30], r14
lea rcx, [rsp + 0x40]
call fcn.14005f990
lea r15, vtable.ckFdSet.0
mov qword [rsp + 0x40], r15
mov ebx, 0x3004bc8d
mov dword [rsp + 0x50], ebx
mov dword [rbp + 0xfe0], ebx
mov dword [rsp + 0x58], r14d
xorps xmm0, xmm0
movups xmmword [rbp + 0xf60], xmm0
movups xmmword [rbp + 0xf70], xmm0
movups xmmword [rbp + 0xf80], xmm0
movups xmmword [rbp + 0xf90], xmm0
movups xmmword [rbp + 0xfa0], xmm0
movups xmmword [rbp + 0xfb0], xmm0
movups xmmword [rbp + 0xfc0], xmm0
movups xmmword [rbp + 0xfd0], xmm0
movsxd r9, dword [rsi + 0x290]
test r9d, r9d
jns 0x140191df5
mov byte [rdi + 0x2a], 1
xor bl, bl
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x50], r14d
mov dword [rbp + 0xfe0], r14d
lea rcx, [rsp + 0x40]
call fcn.14005fa70
movzx eax, bl
mov rcx, qword [rbp + 0xff0]
xor rcx, rsp
call fcn.1402474e0
mov rbx, qword [rsp + 0x1148]
add rsp, 0x1100
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + r14*8 + 0x60], r9
inc dword [rsp + 0x58]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x58]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x140191daf
jne 0x140191e27
mov byte [rdi + 0x28], 1
jmp 0x140191daf
mov bl, 1
jmp 0x140191db1
Function at 0x140191e30
Capabilities:
Set socket configuration

Disassembly:
cmp edx, dword [rcx + 0xd4]
je 0x140191e4a
mov dword [rcx + 0xd4], edx
test edx, edx
je 0x140191e4a
mov rdx, r8
jmp fcn.14018eac0
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx + 0xcc], 0xc64d29ea
mov rdi, r8
mov esi, edx
mov rbx, rcx
jne 0x1401b38a8
mov rax, qword [rcx + 0xed8]
test rax, rax
je 0x1401b38d8
cmp dword [rax + 0x3c], 0xc64d29ea
je 0x1401b38f2
xor ecx, ecx
call fcn.140030ce0
cmp dword [rbx + 0xee8], 2
jne 0x1401b38ff
lea rcx, [rbx + 0x220]
mov r8, rdi
mov edx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1401f3ba0
cmp dword [rcx + 0xee8], 2
jne 0x1401b38af
add rcx, 0x220
call fcn.1401f3ab0
test rax, rax
je 0x1401b38af
mov rcx, rax
call fcn.1401f59d0
mov rcx, rax
jmp 0x1401b3906
lea rcx, [rbx + 0xb50]
mov r8, rdi
mov edx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x140191e30
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rdi, [rcx + 0x18]
mov rbx, r8
mov rcx, rdi
mov esi, edx
call fcn.1401f1b60
test rax, rax
jne 0x1401f3be5
mov rax, qword [rbx]
mov rcx, rbx
mov rdx, qword [str.No_socket_connection.]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [rax + 0x28]
mov r8, rbx
mov edx, esi
mov rcx, rax
call 0x140191e30
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1401f1ec0

Function at 0x140191e50
Capabilities:
Set socket configuration

Disassembly:
cmp edx, dword [rcx + 0xd0]
je 0x140191e6a
mov dword [rcx + 0xd0], edx
test edx, edx
je 0x140191e6a
mov rdx, r8
jmp fcn.14018eb70
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx + 0xcc], 0xc64d29ea
mov rdi, r8
mov esi, edx
mov rbx, rcx
jne 0x1401b3958
mov rax, qword [rcx + 0xed8]
test rax, rax
je 0x1401b3988
cmp dword [rax + 0x3c], 0xc64d29ea
je 0x1401b39a2
xor ecx, ecx
call fcn.140030ce0
cmp dword [rbx + 0xee8], 2
jne 0x1401b39af
lea rcx, [rbx + 0x220]
mov r8, rdi
mov edx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1401f3c10
cmp dword [rcx + 0xee8], 2
jne 0x1401b395f
add rcx, 0x220
call fcn.1401f3ab0
test rax, rax
je 0x1401b395f
mov rcx, rax
call fcn.1401f59d0
mov rcx, rax
jmp 0x1401b39b6
lea rcx, [rbx + 0xb50]
mov r8, rdi
mov edx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x140191e50
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rdi, [rcx + 0x18]
mov rbx, r8
mov rcx, rdi
mov esi, edx
call fcn.1401f1b60
test rax, rax
jne 0x1401f3c55
mov rax, qword [rbx]
mov rcx, rbx
mov rdx, qword [str.No_socket_connection.]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [rax + 0x28]
mov r8, rbx
mov edx, esi
mov rcx, rax
call 0x140191e50
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1401f1ec0
Function at 0x1401925b0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140353c70]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [rcx + 0x290], 0xffffffffffffffff
mov rbx, rcx
je 0x140192641
movzx eax, byte [r8 + 0x169]
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 0
test dl, dl
je 0x140192609
test al, al
je 0x140192602
mov rax, qword [r8]
lea rdx, str.Turning_on_TCP_NODELAY.
mov rcx, r8
call qword [rax + 0x30]
lea r9, [rsp + 0x30]
jmp 0x140192622
test al, al
je 0x14019261d
mov rax, qword [r8]
lea rdx, str.Turning_off_TCP_NODELAY.
mov rcx, r8
call qword [rax + 0x30]
lea r9, [rsp + 0x34]
mov rcx, qword [rbx + 0x290]
mov r8d, 1
mov dword [rsp + 0x20], 4
lea edx, [r8 + 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1402474e0
add rsp, 0x40
pop rbx
ret

Function at 0x140192660
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
mov rsi, rcx
cmp dword [rcx + 0xd4], edx
je 0x1401926fb
cmp edx, 0x1000
jb 0x1401926fb
mov eax, 0x800000
cmp edx, eax
cmovbe eax, edx
and eax, 0xfffff000
cmp qword [rcx + 0x290], 0xffffffffffffffff
mov dword [rcx + 0xd4], eax
je 0x1401926fb
cmp byte [r8 + 0x169], 0
je 0x1401926d4
mov rax, qword [r8]
lea rdx, str.Setting_SO_RCVBUF_size
mov rcx, rbx
call qword [rax + 0x30]
mov r8d, dword [rsi + 0xd4]
lea rdx, str.recvBufSize
mov rcx, rbx
call fcn.14004d750
mov rcx, qword [rsi + 0x290]
lea r9, [rsi + 0xd4]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1002
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140192710
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
cmp dword [rcx + 0xc8], 0x4901fb2a
mov rbx, r8
mov rdi, rcx
je 0x14019274d
mov rax, qword [r8]
lea rdx, str.Internal_error:_Socket_object_already_deleted.
mov rcx, rbx
call qword [rax + 0x28]
xor ecx, ecx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp fcn.140030ce0
mov qword [rsp + 0x40], rsi
cmp dword [rcx + 0xd0], edx
je 0x1401927d8
cmp edx, 0x1000
jb 0x1401927d8
mov eax, 0x800000
cmp edx, eax
cmovbe eax, edx
and eax, 0xfffff000
cmp qword [rcx + 0x290], 0xffffffffffffffff
mov dword [rcx + 0xd0], eax
je 0x1401927d8
cmp byte [r8 + 0x169], 0
je 0x1401927b1
mov rax, qword [r8]
lea rdx, str.Setting_SO_SNDBUF_size
mov rcx, rbx
call qword [rax + 0x30]
mov r8d, dword [rdi + 0xd0]
lea rdx, str.sendBufSize
mov rcx, rbx
call fcn.14004d750
mov rcx, qword [rdi + 0x290]
lea r9, [rdi + 0xd0]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1001
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1401927f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140353c70]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [rcx + 0x290]
cmp rcx, 0xffffffffffffffff
jne 0x140192823
mov byte [rbx + 0x288], 0
cmp byte [rbx + 0x288], 0
je 0x140192880
cmp byte [rbx + 0xce], 0
jne 0x140192880
cmp byte [rbx + 0xcd], 0
jne 0x1401928e7
cmp byte [rbx + 0xcc], 0
jne 0x1401928e7
cmp byte [rdx + 0x173], 0
jne 0x1401928e7
mov r9d, 2
lea r8d, [r9 - 1]
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x14019289a
mov rdx, rdi
mov rcx, rbx
call fcn.140191b10
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1402474e0
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
cmp eax, 0xffffffff
jg 0x1401928e7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1401928e7
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rax
lea r8, str.isConnected_recv_peek
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.14004ce70
nop
mov rdx, rdi
xor ecx, ecx
call fcn.140192410
nop
lea rcx, [rsp + 0x20]
call fcn.14004d020
jmp 0x140192880
mov al, 1
jmp 0x140192882
Function at 0x1401b3470
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx + 0xcc], 0xc64d29ea
mov rdi, r8
movzx esi, dl
mov rbx, rcx
jne 0x1401b34a9
mov rax, qword [rcx + 0xed8]
test rax, rax
je 0x1401b34db
cmp dword [rax + 0x3c], 0xc64d29ea
je 0x1401b34f5
xor ecx, ecx
call fcn.140030ce0
cmp dword [rbx + 0xee8], 2
mov rdx, rdi
jne 0x1401b35c9
lea rcx, [rbx + 0x220]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1401f3cd0
cmp dword [rcx + 0xee8], 2
jne 0x1401b34b0
add rcx, 0x220
call fcn.1401f3ab0
test rax, rax
je 0x1401b34b0
mov rdx, rdi
mov rcx, rax
call fcn.1401f6cb0
test al, al
je 0x1401b359e
test sil, sil
jne 0x1401b351f
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp byte [rdi + 0x169], 0
je 0x1401b3538
mov rax, qword [rdi]
lea rdx, str.Checking_SSH_channel...
mov rcx, rdi
call qword [rax + 0x30]
cmp qword [rbx + 0xed8], 0
je 0x1401b355d
mov eax, dword [rbx + 0xee0]
test eax, eax
setne al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp dword [rbx + 0xee8], 2
jne 0x1401b3587
lea rcx, [rbx + 0x220]
call fcn.1401f3aa0
test eax, eax
setne al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor eax, eax
test eax, eax
setne al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp byte [rdi + 0x169], 0
je 0x1401b35b7
mov rax, qword [rdi]
lea rdx, str.SSH_tunnel_is_not_connected.
mov rcx, rdi
call qword [rax + 0x30]
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea rcx, [rbx + 0xb50]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1401927f0
add rcx, 0x18
jmp fcn.1401f2220

Function at 0x1401b3700
Capabilities:
Get socket status

Disassembly:
mov rax, qword [rcx + 0xed8]
test rax, rax
je 0x1401b3714
mov rcx, rax
jmp fcn.1401f7480
cmp dword [rcx + 0xee8], 2
jne 0x1401b3729
add rcx, 0x220
jmp fcn.1401f3b80
add rcx, 0xb50
jmp fcn.140191ca0
Function at 0x1401b3870
Capabilities:
Set socket configuration

Disassembly:
cmp edx, dword [rcx + 0xd4]
je 0x140191e4a
mov dword [rcx + 0xd4], edx
test edx, edx
je 0x140191e4a
mov rdx, r8
jmp fcn.14018eac0
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx + 0xcc], 0xc64d29ea
mov rdi, r8
mov esi, edx
mov rbx, rcx
jne 0x1401b38a8
mov rax, qword [rcx + 0xed8]
test rax, rax
je 0x1401b38d8
cmp dword [rax + 0x3c], 0xc64d29ea
je 0x1401b38f2
xor ecx, ecx
call fcn.140030ce0
cmp dword [rbx + 0xee8], 2
jne 0x1401b38ff
lea rcx, [rbx + 0x220]
mov r8, rdi
mov edx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1401f3ba0
cmp dword [rcx + 0xee8], 2
jne 0x1401b38af
add rcx, 0x220
call fcn.1401f3ab0
test rax, rax
je 0x1401b38af
mov rcx, rax
call fcn.1401f59d0
mov rcx, rax
jmp 0x1401b3906
lea rcx, [rbx + 0xb50]
mov r8, rdi
mov edx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x140191e30
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rdi, [rcx + 0x18]
mov rbx, r8
mov rcx, rdi
mov esi, edx
call fcn.1401f1b60
test rax, rax
jne 0x1401f3be5
mov rax, qword [rbx]
mov rcx, rbx
mov rdx, qword [str.No_socket_connection.]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [rax + 0x28]
mov r8, rbx
mov edx, esi
mov rcx, rax
call 0x140191e30
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1401f1ec0

Function at 0x1401b3920
Capabilities:
Set socket configuration

Disassembly:
cmp edx, dword [rcx + 0xd0]
je 0x140191e6a
mov dword [rcx + 0xd0], edx
test edx, edx
je 0x140191e6a
mov rdx, r8
jmp fcn.14018eb70
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx + 0xcc], 0xc64d29ea
mov rdi, r8
mov esi, edx
mov rbx, rcx
jne 0x1401b3958
mov rax, qword [rcx + 0xed8]
test rax, rax
je 0x1401b3988
cmp dword [rax + 0x3c], 0xc64d29ea
je 0x1401b39a2
xor ecx, ecx
call fcn.140030ce0
cmp dword [rbx + 0xee8], 2
jne 0x1401b39af
lea rcx, [rbx + 0x220]
mov r8, rdi
mov edx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1401f3c10
cmp dword [rcx + 0xee8], 2
jne 0x1401b395f
add rcx, 0x220
call fcn.1401f3ab0
test rax, rax
je 0x1401b395f
mov rcx, rax
call fcn.1401f59d0
mov rcx, rax
jmp 0x1401b39b6
lea rcx, [rbx + 0xb50]
mov r8, rdi
mov edx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x140191e50
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rdi, [rcx + 0x18]
mov rbx, r8
mov rcx, rdi
mov esi, edx
call fcn.1401f1b60
test rax, rax
jne 0x1401f3c55
mov rax, qword [rbx]
mov rcx, rbx
mov rdx, qword [str.No_socket_connection.]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [rax + 0x28]
mov r8, rbx
mov edx, esi
mov rcx, rax
call 0x140191e50
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1401f1ec0
Function at 0x1401b4200
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov r8, rdx
add rcx, 0xffffffffffffff78
mov dl, 1
jmp fcn.1401b3470

Function at 0x1401b4220
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov dword [rsp + 0x18], r8d
push rbx
push rsi
push rdi
push r12
push r15
sub rsp, 0x30
mov rbx, qword [rsp + 0x80]
mov esi, r9d
mov rdi, qword [rsp + 0x88]
mov r15d, r8d
mov r12, rdx
mov byte [rbx], 0
cmp byte [rdi + 0x10], 0
jne 0x1401b4275
mov rcx, qword [rsp + 0x90]
mov rdx, qword [str.Internal_error:_Socket_IO_params_not_valid.__Contact_support_chilkatsoft.com]
mov rax, qword [rcx]
call qword [rax + 0x28]
xor al, al
add rsp, 0x30
pop r15
pop r12
pop rdi
pop rsi
pop rbx
ret
mov qword [rsp + 0x60], rbp
lea rbp, [rcx - 0x88]
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x78], r14
mov r14, qword [rsp + 0x90]
mov qword [rsp + 0x88], rbp
test r9d, r9d
jne 0x1401b42ec
mov rax, qword [rcx + 0xe50]
mov r8, r14
mov rdx, rdi
test rax, rax
je 0x1401b42bc
mov rcx, rax
call fcn.1401f7480
jmp 0x1401b42df
cmp dword [rcx + 0xe60], 2
jne 0x1401b42d3
add rcx, 0x198
call fcn.1401f3b80
jmp 0x1401b42df
add rcx, 0xac8
call fcn.140191ca0
test al, al
je 0x1401b43cc
mov esi, 0x7530
mov rcx, r12
call fcn.140042d30
mov r9d, esi
mov qword [rsp + 0x28], r14
mov r8d, r15d
mov qword [rsp + 0x20], rdi
mov rdx, r12
mov rcx, rbp
mov r13d, eax
call fcn.1401b3d00
movzx r15d, al
test al, al
je 0x1401b43cc
mov rcx, r12
call fcn.140042d30
cmp eax, r13d
jbe 0x1401b433d
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + htons]
mov byte [rbx], al
mov al, 1
jmp 0x1401b43ce
call sub.KERNEL32.dll_GetTickCount
mov ebp, eax
xor ebx, ebx
mov rcx, r12
call fcn.140042d30
cmp eax, r13d
jne 0x1401b439f
cmp ebx, esi
jae 0x1401b439f
mov r8d, dword [rsp + 0x70]
mov r9d, esi
mov rcx, qword [rsp + 0x88]
mov rdx, r12
movzx ebx, byte [rdi + 0x34]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rdi
call fcn.1401b3d00
movzx r15d, al
test bl, bl
je 0x1401b4389
mov byte [rdi + 0x34], 1
call sub.KERNEL32.dll_GetTickCount
mov ebx, eax
cmp eax, ebp
jb 0x1401b43cc
sub ebx, ebp
cmp ebx, esi
jae 0x1401b43b8
test r15b, r15b
jne 0x1401b4346
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + htons]
mov rcx, qword [rsp + 0x80]
mov byte [rcx], al
movzx eax, r15b
jmp 0x1401b43ce
mov rax, qword [r14]
lea rdx, str.Timed_out......
mov rcx, r14
call qword [rax + 0x28]
mov byte [rdi + 0x28], 1
xor al, al
mov r13, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov r14, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1401b5f20
Capabilities:
Get socket status

Disassembly:
mov rax, qword [rcx + 0xed8]
test rax, rax
je 0x1401b5f34
mov rcx, rax
jmp 0x140204c60
cmp dword [rcx + 0xee8], 2
jne 0x1401b5f49
add rcx, 0x220
jmp 0x1401f43b0
add rcx, 0xb50
jmp fcn.140194150
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbx, rcx
mov rsi, r9
add rcx, 0x40
mov rbp, r8
mov r14d, edx
call fcn.140042d30
test eax, eax
je 0x1401f2652
mov al, 1
jmp 0x1401f26a6
mov qword [rsp + 0x30], rdi
mov rcx, rbx
xor dil, dil
call fcn.140064910
mov rcx, qword [rbx + 0x78]
test rcx, rcx
je 0x1401f267b
mov r9, rsi
mov r8, rbp
mov edx, r14d
call fcn.140194150
jmp 0x1401f2692
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x1401f2695
mov r9, rsi
mov r8, rbp
mov edx, r14d
call fcn.1401b5f20
movzx edi, al
mov rcx, rbx
call fcn.140064890
movzx eax, dil
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
add rcx, 0x18
jmp 0x1401f2620
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x48
mov rax, qword [0x140353c70]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbp, r9
mov rsi, r8
mov edi, edx
mov rbx, rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rax
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.14006fda0
nop
lea rcx, [rbx + 0xbe0]
call fcn.1401f1c50
mov rcx, rax
mov r9, rbp
mov r8, rsi
mov edx, edi
call fcn.140194150
movzx ebx, al
lea rcx, [rsp + 0x20]
call fcn.14006fe70
movzx eax, bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1402474e0
add rsp, 0x48
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1401e6b90
Capabilities:
Get socket status

Disassembly:
mov byte [rsp + 0x20], r9b
push rbp
push rsi
push r14
sub rsp, 0x40
movzx r10d, r9b
mov esi, r8d
mov r14d, edx
mov rbp, rcx
cmp r8d, 0x32
jbe 0x1401e6cfb
test edx, edx
je 0x1401e6cfb
mov qword [rsp + 0x30], r15
mov r15, qword [rsp + 0x90]
mov dword [r15], 0xffffffff
cmp dword [rcx + 0x10], 0
jne 0x1401e6bfb
mov rcx, qword [rsp + 0x88]
lea rdx, str.No_sockets_exists_for_fdSetSelect.
mov rax, qword [rcx]
call qword [rax + 0x28]
mov r15, qword [rsp + 0x30]
xor al, al
add rsp, 0x40
pop r14
pop rsi
pop rbp
ret
mov qword [rsp + 0x60], rbx
mov al, 1
mov qword [rsp + 0x68], rdi
xor edi, edi
mov qword [rsp + 0x70], r12
mov r12, qword [rsp + 0x98]
mov qword [rsp + 0x38], r13
mov r13, qword [rsp + 0x88]
mov ecx, 1
mov ebx, r14d
cmp esi, edi
jbe 0x1401e6c3a
mov ebx, esi
sub ebx, edi
cmp ebx, r14d
cmova ebx, r14d
test al, al
je 0x1401e6c46
shr ebx, 1
cmp ebx, 1
cmovb ebx, ecx
mov r9, r13
mov qword [rsp + 0x20], r15
movzx r8d, r10b
mov edx, ebx
mov rcx, rbp
call fcn.1401e6d30
mov ecx, dword [r15]
cmp ecx, 0xffffffff
je 0x1401e6cbb
test ecx, ecx
jg 0x1401e6cbb
add edi, ebx
cmp edi, esi
jae 0x1401e6cdd
test r12, r12
je 0x1401e6c82
mov rdx, r13
mov rcx, r12
call fcn.14009e640
test al, al
jne 0x1401e6c8c
movzx r10d, byte [rsp + 0x78]
xor al, al
jmp 0x1401e6c23
mov rax, qword [r13]
lea rdx, str.socket_set_select_aborted_by_application_callback
mov rcx, r13
call qword [rax + 0x28]
xor eax, eax
mov dword [r15], eax
mov rcx, qword [rbp + 8]
mov dword [rbp + 0x10], eax
mov dword [rbp + 0x1018], eax
test rcx, rcx
je 0x1401e6cb9
call fcn.140116920
mov al, 1
mov r13, qword [rsp + 0x38]
mov r12, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov r15, qword [rsp + 0x30]
add rsp, 0x40
pop r14
pop rsi
pop rbp
ret
mov rcx, qword [rbp + 8]
xor ebx, ebx
mov dword [rbp + 0x10], ebx
mov dword [rbp + 0x1018], ebx
test rcx, rcx
je 0x1401e6cf6
call fcn.140116920
mov dword [r15], ebx
jmp 0x1401e6cb9
mov rax, qword [rsp + 0x90]
movzx r8d, r10b
mov r9, qword [rsp + 0x88]
mov edx, esi
mov qword [rsp + 0x80], rax
add rsp, 0x40
pop r14
pop rsi
pop rbp
jmp fcn.1401e6d30