joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f3520
Capabilities:
Set socket configuration

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 0x1400c80b9
mov rax, qword [rcx + 0xbb0]
test rax, rax
je 0x1400c80eb
cmp dword [rax + 0x3c], 0xc64d29ea
je 0x1400c8100
xor ecx, ecx
call fcn.140002260
cmp dword [rbx + 0xbc0], 2
mov r8, rdi
movzx edx, sil
jne 0x1400c8123
lea rcx, [rbx + 0x218]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1401230a0
cmp dword [rcx + 0xbc0], 2
jne 0x1400c80c0
add rcx, 0x218
call fcn.140123fd0
test rax, rax
je 0x1400c80c0
mov r8, rdi
movzx edx, sil
mov rcx, rax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x140130730
lea rcx, [rbx + 0x8f8]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1400f3520
mov rcx, qword [rcx + 0x58]
test rcx, rcx
jne 0x1400f1d0c
mov al, 1
ret
jmp 0x1400c8080
sub rsp, 0x48
mov rax, qword [0x14026be10]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rcx, qword [rcx + 0xb0]
cmp rcx, 0xffffffffffffffff
jne 0x1400f3554
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140168e10
add rsp, 0x48
ret
test dl, dl
mov dword [rsp + 0x30], 1
mov edx, 0xffff
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov r8d, 8
jne 0x1400f3585
lea r9, [rsp + 0x34]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov al, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140168e10
add rsp, 0x48
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
movzx ebp, dl
mov rbx, rcx
xor dil, dil
call fcn.140050de0
mov rcx, qword [rbx + 0x78]
test rcx, rcx
je 0x14012237c
mov r8, rsi
movzx edx, bpl
call 0x1400f3520
jmp 0x140122391
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x140122394
mov r8, rsi
movzx edx, bpl
call 0x1400c8080
movzx edi, al
mov rcx, rbx
call fcn.140050d80
mov rbx, qword [rsp + 0x30]
movzx eax, dil
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
add rcx, 0x18
jmp 0x140122340
push rbx
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x14026be10]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, r8
movzx edi, dl
mov rbx, rcx
xor eax, eax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.14006faf0
nop
lea rcx, [rbx + 0x550]
mov r8, rsi
movzx edx, dil
call 0x140122340
movzx ebx, al
lea rcx, [rsp + 0x28]
call fcn.14006fbb0
movzx eax, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140168e10
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400f35a0
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x1d0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x200], rbx
mov rax, qword [0x14026be10]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rbp, rdx
mov rbx, rcx
cmp qword [rcx + 0xb0], 0xffffffffffffffff
je 0x1400f3626
xor edx, edx
mov r8d, 0xb8
lea rcx, [rsp + 0x100]
call fcn.14016c710
lea rcx, [rsp + 0x100]
call fcn.1400402b0
nop
lea r9, [rsp + 0x100]
xor r8d, r8d
lea edx, [r8 + 0xa]
mov rcx, rbx
call fcn.1400f8c80
nop
lea rcx, [rsp + 0x100]
call fcn.1400402e0
movzx eax, byte [rbp + 0x2ac]
mov byte [rbx + 0x2ac], al
mov eax, dword [rbp + 0xb8]
mov dword [rbx + 0xb8], eax
mov rax, qword [rbp + 0xb0]
mov qword [rbx + 0xb0], rax
mov eax, dword [rbp + 0x1e0]
mov dword [rbx + 0x1e0], eax
movzx eax, byte [rbp + 0xa8]
mov byte [rbx + 0xa8], al
lea rdx, [rbp + 0x218]
lea rcx, [rbx + 0x218]
call fcn.140030900
movzx eax, byte [rbp + 0x2aa]
mov byte [rbx + 0x2aa], al
mov eax, dword [rbp + 0x14]
mov dword [rbx + 0x14], eax
mov eax, dword [rbp + 0x10]
mov dword [rbx + 0x10], eax
mov byte [rbp + 0xa8], 0
mov byte [rbp + 0xaa], 0
mov qword [rbp + 0xb0], 0xffffffffffffffff
xor edx, edx
mov r8d, 0xb8
lea rcx, [rsp + 0x40]
call fcn.14016c710
lea rcx, [rsp + 0x40]
call fcn.1400402b0
nop
cmp qword [rbx + 0xb0], 0xffffffffffffffff
je 0x1400f37c1
mov ecx, dword [rbx + 0x14]
lea eax, [rcx - 0x1000]
cmp eax, 0x7ff000
ja 0x1400f3746
and ecx, 0xfffff000
mov dword [rbx + 0x14], ecx
cmp byte [rsp + 0xe9], 0
je 0x1400f3722
lea rdx, str.Setting_SO_RCVBUF_size
lea rcx, [rsp + 0x40]
mov rax, qword [rsp + 0x40]
call qword [rax + 0x30]
mov r8d, dword [rbx + 0x14]
lea rdx, str.recvBufSize
lea rcx, [rsp + 0x40]
call fcn.1400717d0
mov dword [rsp + 0x20], 4
lea r9, [rbx + 0x14]
mov edx, 0xffff
mov r8d, 0x1002
mov rcx, qword [rbx + 0xb0]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp qword [rbx + 0xb0], 0xffffffffffffffff
je 0x1400f37c1
mov ecx, dword [rbx + 0x10]
lea eax, [rcx - 0x1000]
cmp eax, 0x7ff000
ja 0x1400f37c1
and ecx, 0xfffff000
mov dword [rbx + 0x10], ecx
cmp byte [rsp + 0xe9], 0
je 0x1400f379c
lea rdx, str.Setting_SO_SNDBUF_size
lea rcx, [rsp + 0x40]
mov rax, qword [rsp + 0x40]
call qword [rax + 0x30]
mov r8d, dword [rbx + 0x10]
lea rdx, str.sendBufSize
lea rcx, [rsp + 0x40]
call fcn.1400717d0
mov dword [rsp + 0x20], 4
lea r9, [rbx + 0x10]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, qword [rbx + 0xb0]
call qword [sym.imp.WS2_32.dll_setsockopt]
nop
lea rcx, [rsp + 0x40]
call fcn.1400402e0
mov al, 1
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140168e10
mov rbx, qword [rsp + 0x200]
add rsp, 0x1d0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400f3bf0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0xb0], 0xffffffffffffffff
mov rsi, rdx
mov rdi, rcx
je 0x1400f3c81
mov r8d, dword [rcx + 0x14]
mov qword [rsp + 0x40], rbx
lea eax, [r8 - 0x1000]
cmp eax, 0x7ff000
ja 0x1400f3c7c
and r8d, 0xfffff000
mov dword [rcx + 0x14], r8d
cmp byte [rdx + 0xa9], 0
je 0x1400f3c58
mov rax, qword [rdx]
mov rcx, rsi
lea rdx, str.Setting_SO_RCVBUF_size
call qword [rax + 0x30]
mov r8d, dword [rdi + 0x14]
lea rdx, str.recvBufSize
mov rcx, rsi
call fcn.1400717d0
mov rcx, qword [rdi + 0xb0]
lea r9, [rdi + 0x14]
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 0x1400f3c90
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0xb0], 0xffffffffffffffff
mov rsi, rdx
mov rdi, rcx
je 0x1400f3d21
mov r8d, dword [rcx + 0x10]
mov qword [rsp + 0x40], rbx
lea eax, [r8 - 0x1000]
cmp eax, 0x7ff000
ja 0x1400f3d1c
and r8d, 0xfffff000
mov dword [rcx + 0x10], r8d
cmp byte [rdx + 0xa9], 0
je 0x1400f3cf8
mov rax, qword [rdx]
mov rcx, rsi
lea rdx, str.Setting_SO_SNDBUF_size
call qword [rax + 0x30]
mov r8d, dword [rdi + 0x10]
lea rdx, str.sendBufSize
mov rcx, rsi
call fcn.1400717d0
mov rcx, qword [rdi + 0xb0]
lea r9, [rdi + 0x10]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1001
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 0x1400f3dc0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x68
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x14026be10]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, r9
mov r14, r8
mov rsi, rdx
mov rbx, rcx
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
lea r8, str.ck_getsockname_ipv4
mov rdx, r9
lea rcx, [rsp + 0x30]
call fcn.140071270
nop
mov rcx, rsi
call fcn.140032220
mov dword [r14], 0
mov rcx, qword [rbx + 0xb0]
cmp rcx, 0xffffffffffffffff
je 0x1400f3e9a
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
js 0x1400f3e76
mov ecx, dword [rsp + 0x4c]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rdx, rax
mov rcx, rsi
call fcn.140030950
movzx ecx, word [rsp + 0x4a]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [r14], eax
mov bl, 1
jmp 0x1400f3eac
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.1400f73b0
jmp 0x1400f3eaa
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 + 0x30]
call fcn.140071380
movzx eax, bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140168e10
add rsp, 0x68
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400f3ed0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x78
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x14026be10]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, r9
mov r14, r8
mov rsi, rdx
mov rbx, rcx
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
lea r8, str.ck_getsockname_ipv6
mov rdx, r9
lea rcx, [rsp + 0x30]
call fcn.140071270
nop
mov rcx, rsi
call fcn.140032220
mov dword [r14], 0
mov rcx, qword [rbx + 0xb0]
cmp rcx, 0xffffffffffffffff
je 0x1400f3faa
mov dword [rsp + 0x28], 0x1c
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
js 0x1400f3f86
mov rcx, rsi
call fcn.140032220
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.1400f6360
movzx ecx, word [rsp + 0x4a]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [r14], eax
mov bl, 1
jmp 0x1400f3fbc
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.1400f73b0
jmp 0x1400f3fba
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 + 0x30]
call fcn.140071380
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140168e10
add rsp, 0x78
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400f70d0
Capabilities:
Get socket status

Disassembly:
push rsi
push rdi
push r14
mov eax, 0x1100
call fcn.140169bf0
sub rsp, rax
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x1120], rbx
mov qword [rsp + 0x1138], rbp
mov rax, qword [0x14026be10]
xor rax, rsp
mov qword [rsp + 0x10f0], rax
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.1400aeb50
mov rdx, rbx
mov rcx, rdi
call fcn.1400aece0
test al, al
je 0x1400f7148
mov byte [rdi + 0x19], 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 0x1400f7267
cmp qword [rsi + 0xb0], 0xffffffffffffffff
jne 0x1400f716d
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 + 0x1a], 1
xor al, al
jmp 0x1400f7267
xor ebp, ebp
mov qword [rsp + 0x38], rbp
lea rcx, [rsp + 0x40]
call fcn.14006f550
lea r14, vtable.ckFdSet.0
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x50], 0x3004bc8d
mov dword [rsp + 0x10e0], 0x3004bc8d
mov dword [rsp + 0x58], ebp
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rsp + 0x1060]
call fcn.14016c710
cmp dword [rsp + 0x50], 0x3004bc8d
je 0x1400f71c7
xor ecx, ecx
call fcn.140002260
cmp dword [rsp + 0x10e0], 0x3004bc8d
je 0x1400f71db
xor ecx, ecx
call fcn.140002260
movsxd r9, dword [rsi + 0xb0]
test r9d, r9d
js 0x1400f7244
mov edx, ebp
mov ecx, dword [rsp + 0x58]
test ecx, ecx
je 0x1400f7200
mov eax, edx
cmp qword [rsp + rax*8 + 0x60], r9
je 0x1400f7200
inc edx
cmp edx, ecx
jb 0x1400f71f1
cmp edx, ecx
jne 0x1400f7217
cmp ecx, 0x200
jae 0x1400f7217
mov eax, edx
mov qword [rsp + rax*8 + 0x60], r9
inc dword [rsp + 0x58]
lea rax, [rsp + 0x38]
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 0x1400f7248
jne 0x1400f7240
mov byte [rdi + 0x18], 1
jmp 0x1400f7248
mov bl, 1
jmp 0x1400f724a
mov byte [rdi + 0x1a], 1
xor bl, bl
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x50], ebp
mov dword [rsp + 0x10e0], ebp
lea rcx, [rsp + 0x40]
call fcn.14006f630
movzx eax, bl
mov rcx, qword [rsp + 0x10f0]
xor rcx, rsp
call fcn.140168e10
lea r11, [rsp + 0x1100]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400f7290
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x140
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x168], rbx
mov rax, qword [0x14026be10]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov r14, r9
mov rbx, r8
mov rdi, rcx
cmp qword [rcx + 0xb0], 0xffffffffffffffff
jne 0x1400f72d9
xor al, al
jmp 0x1400f7380
mov eax, 0x7530
mov esi, eax
test edx, edx
cmovne esi, edx
cmp esi, eax
cmova esi, eax
xor edx, edx
mov r8d, 0xd8
lea rcx, [rsp + 0x30]
call fcn.14016c710
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1400ae9c0
nop
call sub.KERNEL32.dll_GetTickCount
mov ebx, eax
xor r9d, r9d
lea r8d, [r9 + 0x20]
lea rdx, [rsp + 0x110]
mov rcx, qword [rdi + 0xb0]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x1400f7357
cmp eax, 0xffffffff
jg 0x1400f7343
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1400f7353
call sub.KERNEL32.dll_GetTickCount
cmp eax, ebx
cmovb ebx, eax
sub eax, ebx
cmp eax, esi
jb 0x1400f7311
xor bl, bl
jmp 0x1400f7373
cmp byte [r14 + 0xa9], 0
je 0x1400f7371
mov rax, qword [r14]
lea rdx, str.TCP_connection_cleanly_closed_by_peer.
mov rcx, r14
call qword [rax + 0x30]
mov bl, 1
lea rcx, [rsp + 0x30]
call fcn.1400aea40
movzx eax, bl
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140168e10
mov rbx, qword [rsp + 0x168]
add rsp, 0x140
pop r14
pop rdi
pop rsi
ret

Function at 0x1400f7ae0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14026be10]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [rcx + 0xb0], 0xffffffffffffffff
mov rbx, rcx
je 0x1400f7b75
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 0
test dl, dl
je 0x1400f7b37
cmp byte [r8 + 0xa9], 0
je 0x1400f7b30
mov rax, qword [r8]
lea rdx, str.Turning_on_TCP_NODELAY.
mov rcx, r8
call qword [rax + 0x30]
lea r9, [rsp + 0x30]
jmp 0x1400f7b56
cmp byte [r8 + 0xa9], 0
je 0x1400f7b51
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 + 0xb0]
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.140168e10
add rsp, 0x40
pop rbx
ret

Function at 0x1400f7b90
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 + 0x14], edx
je 0x1400f7c1f
cmp edx, 0x1000
jb 0x1400f7c1f
mov eax, 0x800000
cmp edx, eax
cmovbe eax, edx
and eax, 0xfffff000
cmp qword [rcx + 0xb0], 0xffffffffffffffff
mov dword [rcx + 0x14], eax
je 0x1400f7c1f
cmp byte [r8 + 0xa9], 0
je 0x1400f7bfb
mov rax, qword [r8]
lea rdx, str.Setting_SO_RCVBUF_size
mov rcx, rbx
call qword [rax + 0x30]
mov r8d, dword [rsi + 0x14]
lea rdx, str.recvBufSize
mov rcx, rbx
call fcn.1400717d0
mov rcx, qword [rsi + 0xb0]
lea r9, [rsi + 0x14]
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 0x1400f7c30
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x30
cmp dword [rcx + 8], 0x4901fb2a
mov rbx, r8
mov rsi, rcx
je 0x1400f7c6a
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 rsi
jmp fcn.140002260
mov qword [rsp + 0x40], rdi
cmp dword [rcx + 0x10], edx
je 0x1400f7ce9
cmp edx, 0x1000
jb 0x1400f7ce9
mov eax, 0x800000
cmp edx, eax
cmovbe eax, edx
and eax, 0xfffff000
cmp qword [rcx + 0xb0], 0xffffffffffffffff
mov dword [rcx + 0x10], eax
je 0x1400f7ce9
cmp byte [r8 + 0xa9], 0
je 0x1400f7cc5
mov rax, qword [r8]
lea rdx, str.Setting_SO_SNDBUF_size
mov rcx, rbx
call qword [rax + 0x30]
mov r8d, dword [rsi + 0x10]
lea rdx, str.sendBufSize
mov rcx, rbx
call fcn.1400717d0
mov rcx, qword [rsi + 0xb0]
lea r9, [rsi + 0x10]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1001
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rsi
ret

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

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov rax, qword [0x14026be10]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [rcx + 0xb0]
cmp rcx, 0xffffffffffffffff
jne 0x1400f7d3d
mov byte [rbx + 0xa8], 0
cmp byte [rbx + 0xa8], 0
je 0x1400f7d7c
cmp byte [rbx + 0xe], 0
jne 0x1400f7d7c
cmp byte [rbx + 0xd], 0
jne 0x1400f7dce
cmp byte [rbx + 0xc], 0
jne 0x1400f7dce
mov r9d, 2
lea r8d, [r9 - 1]
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x1400f7d80
mov rdx, rdi
mov rcx, rbx
call fcn.1400f6f30
xor al, al
jmp 0x1400f7dd0
jns 0x1400f7dce
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1400f7dce
xor eax, eax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
lea r8, str.isConnected_recv_peek
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.140071270
nop
mov rdx, rdi
xor ecx, ecx
call fcn.1400f7950
nop
lea rcx, [rsp + 0x28]
call fcn.140071380
xor al, al
jmp 0x1400f7dd0
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140168e10
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x1400f8900
Capabilities:
Initialize winsock library

Disassembly:
push rdi
sub rsp, 0x250
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x268], rbx
mov rax, qword [0x14026be10]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rcx
cmp byte [0x14026a214], 0
jne 0x1400f893f
mov al, 1
jmp 0x1400f8ada
mov dword [rsp + 0x38], 1
xor edx, edx
mov r8d, 0x198
lea rcx, [rsp + 0x50]
call fcn.14016c710
nop
mov ecx, 0x909
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x38], eax
cmp eax, 0x276c
jne 0x1400f8a3b
mov ecx, 5
mov dword [rsp + 0x40], ecx
mov edx, 2
mov dword [rsp + 0x3c], edx
nop dword [rax + rax]
cmp ecx, 1
jl 0x1400f89f3
sub edx, 1
mov dword [rsp + 0x3c], edx
jns 0x1400f89ad
mov edx, 9
mov dword [rsp + 0x3c], edx
dec ecx
mov dword [rsp + 0x40], ecx
test ecx, ecx
je 0x1400f89f3
movzx ebx, dl
shl bx, 8
movzx eax, cl
or bx, ax
xor edx, edx
mov r8d, 0x198
lea rcx, [rsp + 0x50]
call fcn.14016c710
lea rdx, [rsp + 0x50]
movzx ecx, bx
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x38], eax
cmp eax, 0x276c
jne 0x1400f89f3
mov ecx, dword [rsp + 0x40]
mov edx, dword [rsp + 0x3c]
jmp 0x1400f8990
test eax, eax
jne 0x1400f8a3f
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
lea r8, str.Using_ws2_32.dll_version__d__d
mov edx, 0x50
lea rcx, [rsp + 0x1f0]
call fcn.14007a930
mov rax, qword [rdi]
lea r8, [rsp + 0x1f0]
lea rdx, str.ws2_32_DLL_Version
mov rcx, rdi
call qword [rax + 0x58]
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x1400f8abe
cmp eax, 0x276b
jne 0x1400f8a4f
lea rdx, str.The_underlying_network_subsystem_is_not_ready_for_network_communication.
jmp 0x1400f8ab5
cmp eax, 0x276c
jne 0x1400f8a5f
lea rdx, str.The_version_of_Windows_Sockets_support_requested_is_not_provided_by_this_particular_Windows_Sockets_implementation.
jmp 0x1400f8ab5
cmp eax, 0x2734
jne 0x1400f8a6f
lea rdx, str.A_blocking_Windows_Sockets_1.1_operation_is_in_progress.
jmp 0x1400f8ab5
cmp eax, 0x2753
jne 0x1400f8a7f
lea rdx, str.Limit_on_the_number_of_tasks_supported_by_the_Windows_Sockets_implementation_has_been_reached.
jmp 0x1400f8ab5
cmp eax, 0x271e
jne 0x1400f8a8f
lea rdx, str.The_lpWSAData_is_not_a_valid_pointer.
jmp 0x1400f8ab5
lea r9, [rsp + 0x38]
lea r8, str.WSAStartup_error:_0x_x
mov edx, gethostbyname
lea rcx, [rsp + 0x1f0]
call fcn.14007a8f0
lea rdx, [rsp + 0x1f0]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x28]
mov byte [0x14026a214], 0
mov rcx, rdi
call fcn.1400f3ac0
xor eax, eax
cmp dword [rsp + 0x38], eax
sete al
jmp 0x1400f8ada
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140168e10
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x140125e10
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, dword [rsp + 0x30]
mov r10, rdx
mov ebx, r9d
mov ecx, eax
mov r11, r8
movzx r9d, al
shl r9d, 8
mov edx, eax
mov dword [r10 + 0x40], 0x40
xor edi, edi
mov qword [r10 + 0x30], rdi
mov r8d, eax
mov dword [r10 + 0x38], edi
shr ecx, 8
movzx eax, cl
mov rcx, r10
or r9d, eax
shr edx, 0x10
shl r9d, 8
movzx eax, dl
mov rdx, r11
or r9d, eax
shr r8d, 0x18
shl r9d, 8
or r9d, r8d
mov r8d, ebx
mov dword [r10 + 0x3c], r9d
mov qword [r10 + 0xb4], rdi
mov dword [r10 + 0xbc], edi
mov dword [r10 + 0xc0], r9d
mov dword [r10 + 0xc4], 0x40
inc dword [r10 + 0xb4]
mov rbx, qword [rsp + 0x10]
pop rdi
jmp fcn.140125a20
Function at 0x140125eb0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov r10, rcx
mov r9, qword [str.expand_32_byte_k]
movzx eax, byte [r9 + 2]
movzx r8d, byte [r9 + 3]
shl r8d, 8
or r8d, eax
movzx eax, byte [r9 + 1]
shl r8d, 8
or r8d, eax
movzx eax, byte [r9]
shl r8d, 8
or r8d, eax
mov dword [rcx], r8d
movzx eax, byte [r9 + 6]
movzx ecx, byte [r9 + 7]
shl ecx, 8
or ecx, eax
movzx eax, byte [r9 + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [r9 + 4]
shl ecx, 8
or ecx, eax
mov dword [r10 + 4], ecx
movzx eax, byte [r9 + 0xa]
movzx ecx, byte [r9 + 0xb]
shl ecx, 8
or ecx, eax
movzx eax, byte [r9 + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [r9 + 8]
shl ecx, 8
or ecx, eax
mov dword [r10 + 8], ecx
movzx eax, byte [r9 + 0xe]
movzx ecx, byte [r9 + 0xf]
shl ecx, 8
or ecx, eax
movzx eax, byte [r9 + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [r9 + 0xc]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0xc], ecx
movzx eax, byte [rdx + 2]
movzx ecx, byte [rdx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x10], ecx
movzx eax, byte [rdx + 6]
movzx ecx, byte [rdx + 7]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 4]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x14], ecx
movzx eax, byte [rdx + 0xa]
movzx ecx, byte [rdx + 0xb]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 8]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x18], ecx
movzx ecx, byte [rdx + 0xf]
shl ecx, 8
movzx eax, byte [rdx + 0xe]
or ecx, eax
movzx eax, byte [rdx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0xc]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x1c], ecx
movzx eax, byte [rdx + 0x12]
movzx ecx, byte [rdx + 0x13]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x10]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x20], ecx
movzx eax, byte [rdx + 0x16]
movzx ecx, byte [rdx + 0x17]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x14]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x24], ecx
movzx eax, byte [rdx + 0x1a]
movzx ecx, byte [rdx + 0x1b]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x19]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x18]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x28], ecx
movzx eax, byte [rdx + 0x1e]
movzx ecx, byte [rdx + 0x1f]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x1d]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x1c]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x40], 0x40
mov dword [r10 + 0x2c], ecx
ret