joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1404a25f0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x30]
mov ecx, reloc.WS2_32.dll_recv
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
cmp qword [rsp + 0x88], 0
je 0x1404a263a
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0
jne 0x1404a267c
cmp qword [rsp + 0x90], 0
je 0x1404a2652
mov rax, qword [rsp + 0x90]
cmp dword [rax], 0
jne 0x1404a267c
cmp qword [rsp + 0x98], 0
je 0x1404a266a
mov rax, qword [rsp + 0x98]
cmp dword [rax], 0
jne 0x1404a267c
mov rcx, qword [rsp + 0xa0]
call fcn.1401d9537
jmp 0x1404a274d
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x38]
call fcn.1401db553
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x98], 0
je 0x1404a26ba
mov rax, qword [rsp + 0x98]
cmp dword [rax], 0
je 0x1404a26ba
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x50], rax
jmp 0x1404a26c3
mov qword [rsp + 0x50], 0
cmp qword [rsp + 0x90], 0
je 0x1404a26ea
mov rax, qword [rsp + 0x90]
cmp dword [rax], 0
je 0x1404a26ea
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x58], rax
jmp 0x1404a26f3
mov qword [rsp + 0x58], 0
cmp qword [rsp + 0x88], 0
je 0x1404a271a
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0
je 0x1404a271a
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x60], rax
jmp 0x1404a2723
mov qword [rsp + 0x60], 0
mov eax, dword [rsp + 0x80]
inc eax
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_select]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1401dbb48
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x1404ad9a0
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x160
lea rdi, [rsp + 0xa0]
mov ecx, 0x30
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x170]
mov rax, qword [0x140812ac0]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rax, [0x14081db61]
mov qword [rsp + 0xd8], rax
lea rax, [0x14081db62]
mov qword [rsp + 0xe0], rax
lea rax, [0x14081db63]
mov qword [rsp + 0xe8], rax
lea rax, [0x14081db64]
mov qword [rsp + 0xf0], rax
lea rdx, [rsp + 0xa8]
mov rax, qword [rsp + 0x170]
mov rcx, qword [rax + 0x20]
call fcn.1401d5388
mov dword [rsp + 0xf8], eax
cmp dword [rsp + 0xf8], 0
je 0x1404ada57
mov eax, dword [rsp + 0xf8]
jmp 0x1404adc56
lea r8, [rsp + 0x108]
mov rax, qword [rsp + 0x170]
mov rdx, qword [rax + 0x10]
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x1404ada99
lea rax, str.____
mov qword [rsp + 0xd8], rax
lea rax, [0x1407e2b4c]
mov qword [rsp + 0xe0], rax
lea r8, [rsp + 0x108]
mov rax, qword [rsp + 0x170]
mov rdx, qword [rax]
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x1404adada
lea rax, [0x1407e2b50]
mov qword [rsp + 0xe8], rax
lea rax, [0x1407e2b54]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0x170]
movzx eax, byte [rax + 0x28]
mov dword [rsp + 0x130], eax
mov ecx, dword [rsp + 0xb8]
inc ecx
mov dword [rsp + 0x134], ecx
mov edx, dword [rsp + 0xbc]
add edx, 0x76c
mov dword [rsp + 0x138], edx
mov r8, qword [rsp + 0x170]
movzx r8d, word [r8 + 0x18]
mov dword [rsp + 0x13c], r8d
mov r9, qword [rsp + 0x170]
mov ecx, dword [r9 + 0x1c]
call fcn.1401ddf10
mov qword [rsp + 0x140], rax
mov rcx, qword [rsp + 0x170]
movzx ecx, word [rcx + 8]
mov dword [rsp + 0x148], ecx
mov rdx, qword [rsp + 0x170]
mov ecx, dword [rdx + 0xc]
call fcn.1401ddf10
mov rcx, qword [rsp + 0x170]
mov ecx, dword [rcx + 0x2c]
mov dword [rsp + 0x98], ecx
mov ecx, dword [rsp + 0x130]
mov dword [rsp + 0x90], ecx
mov ecx, dword [rsp + 0xa8]
mov dword [rsp + 0x88], ecx
mov ecx, dword [rsp + 0xac]
mov dword [rsp + 0x80], ecx
mov ecx, dword [rsp + 0xb0]
mov dword [rsp + 0x78], ecx
mov ecx, dword [rsp + 0xb4]
mov dword [rsp + 0x70], ecx
mov ecx, dword [rsp + 0x134]
mov dword [rsp + 0x68], ecx
mov ecx, dword [rsp + 0x138]
mov dword [rsp + 0x60], ecx
mov ecx, dword [rsp + 0x13c]
mov dword [rsp + 0x58], ecx
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0x50], rcx
mov rcx, qword [rsp + 0x170]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rsp + 0xd8]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0x140]
mov qword [rsp + 0x38], rcx
mov ecx, dword [rsp + 0x148]
mov dword [rsp + 0x30], ecx
mov rcx, qword [rsp + 0xf0]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x170]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0xe8]
mov r8, rax
lea rdx, [0x1407e2b58]
mov rcx, qword [rsp + 0x178]
call fcn.1401d5432
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.1401dbb48
mov rax, rdi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1401d8740
add rsp, 0x160
pop rdi
ret
Function at 0x1404adf40
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
lea rcx, [0x1407e2ee8]
call fcn.1401d7075
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1404adf80
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.1401d9b3b
mov dword [rsp + 0x28], eax
movsxd rax, dword [rsp + 0x28]
jmp 0x1404adf87
xor ecx, ecx
call fcn.1404ac2d0
add rsp, 0x30
pop rdi
ret

Function at 0x1404af2d0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rdi, [rsp + 0x20]
mov ecx, ntohl
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x60]
lea rcx, str.CURL_TIME
call fcn.1401d7075
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1404af33e
lea r9, [rsp + 0x38]
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.1401d8aa1
mov rax, qword [0x14081e548]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
jmp 0x1404af345
xor ecx, ecx
call fcn.1404ae6c0
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1401dbb48
mov rax, rdi
add rsp, 0x50
pop rdi
ret

Function at 0x1404b1520
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x48]
mov r8d, 0x1b
mov edx, 0x29
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_setsockopt]
nop
add rsp, 0x30
pop rdi
ret

Function at 0x1404b1560
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x180
lea rdi, [rsp + 0x30]
mov ecx, 0x54
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x190]
mov rax, qword [0x140812ac0]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x44], 6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov r8d, 1
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x198]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x1404b1606
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1401db46d
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s
mov rcx, qword [rsp + 0x190]
call fcn.1401dc87c
nop
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.1401dbb48
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1401d8740
add rsp, 0x180
pop rdi
ret
Function at 0x1404b1640
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rdi, [rsp + 0x30]
mov ecx, 8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 0xa69]
test eax, eax
je 0x1404b167f
mov dword [rsp + 0x44], 1
jmp 0x1404b1687
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov r8d, 8
mov edx, 0xffff
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x1404b16db
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
mov r8, qword [rsp + 0x68]
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__qd:_errno__d
mov rcx, qword [rsp + 0x60]
call fcn.1401dc87c
nop
jmp 0x1404b1804
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax + 0x9d4]
call fcn.1401d6dfa
mov dword [rsp + 0x34], eax
imul eax, dword [rsp + 0x34], 0x3e8
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov r8d, 3
mov edx, 6
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x1404b1742
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
mov r8, qword [rsp + 0x68]
lea rdx, str.Failed_to_set_TCP_KEEPIDLE_on_fd__qd:_errno__d
mov rcx, qword [rsp + 0x60]
call fcn.1401dc87c
nop
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax + 0x9d8]
call fcn.1401d6dfa
mov dword [rsp + 0x34], eax
imul eax, dword [rsp + 0x34], 0x3e8
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov r8d, reloc.WS2_32.dll_recvfrom
mov edx, 6
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x1404b17a9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
mov r8, qword [rsp + 0x68]
lea rdx, str.Failed_to_set_TCP_KEEPINTVL_on_fd__qd:_errno__d
mov rcx, qword [rsp + 0x60]
call fcn.1401dc87c
nop
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax + 0x9dc]
call fcn.1401d6dfa
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov r8d, reloc.WS2_32.dll_recv
mov edx, 6
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x1404b1804
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
mov r8, qword [rsp + 0x68]
lea rdx, str.Failed_to_set_TCP_KEEPCNT_on_fd__qd:_errno__d
mov rcx, qword [rsp + 0x60]
call fcn.1401dc87c
nop
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1401dbb48
add rsp, 0x50
pop rdi
ret
Function at 0x1404b2540
Capabilities:
Query environment variable

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov r8d, 0x170
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.1401dafc2
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x98], 0xffffffffffffffff
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x60]
mov dword [rax], ecx
mov rax, qword [rsp + 0x50]
add rax, 8
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, rax
call fcn.1401da536
nop
lea rcx, str.CURL_DBG_SOCK_WBLOCK
call fcn.1401d7075
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1404b25e9
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.1401d9b3b
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jl 0x1404b25e9
cmp dword [rsp + 0x28], 0x64
jg 0x1404b25e9
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x150], ecx
lea rcx, str.CURL_DBG_SOCK_WPARTIAL
call fcn.1401d7075
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1404b2635
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.1401d9b3b
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
jl 0x1404b2635
cmp dword [rsp + 0x2c], 0x64
jg 0x1404b2635
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x2c]
mov dword [rax + 0x154], ecx
lea rcx, str.CURL_DBG_SOCK_RBLOCK
call fcn.1401d7075
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1404b2681
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.1401d9b3b
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x1404b2681
cmp dword [rsp + 0x30], 0x64
jg 0x1404b2681
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x30]
mov dword [rax + 0x158], ecx
lea rcx, str.CURL_DBG_SOCK_RMAX
call fcn.1401d7075
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1404b26c8
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.1401d9b3b
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jl 0x1404b26c8
movsxd rax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x160], rax
add rsp, 0x40
pop rdi
ret
Function at 0x1404b2a20
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x220
lea rdi, [rsp + 0x20]
mov ecx, 0x80
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x230]
mov rax, qword [0x140812ac0]
xor rax, rsp
mov qword [rsp + 0x218], rax
mov rax, qword [rsp + 0x230]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
cmp qword [rax + 0x98], 0xffffffffffffffff
je 0x1404b2bbf
mov rax, qword [rsp + 0x238]
mov rax, qword [rax + 0x20]
mov rax, qword [rax + 0x3c8]
mov eax, dword [rax + 0x8c]
and eax, 0x800
test eax, eax
jne 0x1404b2bbf
mov dword [rsp + 0x1f4], 0x80
mov r8d, 0x80
xor edx, edx
lea rcx, [rsp + 0x160]
call fcn.1401dafc2
lea r8, [rsp + 0x1f4]
lea rdx, [rsp + 0x160]
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x98]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1404b2b3a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x204], eax
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov ecx, dword [rsp + 0x204]
call fcn.1401db46d
mov r9, rax
mov r8d, dword [rsp + 0x204]
lea rdx, str.getsockname___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x238]
call fcn.1401de294
mov eax, 2
jmp 0x1404b2bc1
mov rax, qword [rsp + 0x20]
add rax, 0x100
mov rcx, qword [rsp + 0x20]
add rcx, 0xce
mov r9, rax
mov r8, rcx
mov edx, dword [rsp + 0x1f4]
lea rcx, [rsp + 0x160]
call fcn.1401dcac5
movzx eax, al
test eax, eax
jne 0x1404b2bbf
call fcn.1401d7485
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov ecx, dword [rax]
call fcn.1401db46d
mov qword [rsp + 0x210], rax
call fcn.1401d7485
mov rcx, qword [rsp + 0x210]
mov r9, rcx
mov r8d, dword [rax]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x238]
call fcn.1401de294
mov eax, 2
jmp 0x1404b2bc1
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.1401dbb48
mov rax, rdi
mov rcx, qword [rsp + 0x218]
xor rcx, rsp
call fcn.1401d8740
add rsp, 0x220
pop rdi
ret

Function at 0x1404b31d0
Capabilities:
Connect socket

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0xffffffff
movzx eax, byte [rsp + 0x50]
test eax, eax
je 0x1404b3205
jmp 0x1404b3230
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov rcx, qword [rsp + 0x20]
mov r8d, dword [rcx + 0x14]
mov rdx, rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x98]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
add rsp, 0x30
pop rdi
ret
Function at 0x1404b38b0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x108
lea rdi, [rsp + 0x50]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x120]
mov rax, qword [0x140812ac0]
xor rax, rsp
mov qword [rsp + 0xf0], rax
lea rcx, [rsp + 0xc0]
call fcn.1401dc714
lea rcx, [rsp + 0x98]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xe0]
mov rcx, qword [rsp + 0x120]
mov rdi, rax
lea rsi, [rcx + 0x138]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xd0]
lea rcx, [rsp + 0x98]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0xd0]
call fcn.1401ddfce
cmp rax, 0x3e8
jle 0x1404b3a34
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x74]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x54]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4004747b
mov rax, qword [rsp + 0x120]
mov rcx, qword [rax + 0x98]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x1404b3a13
mov rax, qword [rsp + 0x120]
mov eax, dword [rax + 0x148]
cmp dword [rsp + 0x54], eax
je 0x1404b3a13
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x54]
mov r8d, 0x1001
mov edx, 0xffff
mov rax, qword [rsp + 0x120]
mov rcx, qword [rax + 0x98]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1404b3a13
mov rax, qword [rsp + 0x120]
mov ecx, dword [rsp + 0x54]
mov dword [rax + 0x148], ecx
mov rax, qword [rsp + 0x120]
lea rcx, [rsp + 0x98]
lea rdi, [rax + 0x138]
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.1401dbb48
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1401d8740
add rsp, 0x108
pop rdi
pop rsi
ret
Function at 0x1404b4700
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x5c], 1
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x98], 0xffffffffffffffff
jne 0x1404b4752
mov r8d, 0x6fb
lea rdx, [0x1407e4fb0]
lea rcx, str.ctx__sock____SOCKET__0_
call fcn.1401d4924
xor eax, eax
mov rax, qword [rsp + 0x50]
add rax, 0x18
mov rcx, qword [rsp + 0x50]
mov r8d, dword [rcx + 0x14]
mov rdx, rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x98]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0xffffffff
jne 0x1404b47ae
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rsp + 0x50]
add rcx, 0xa0
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x88]
call fcn.1404b2440
jmp 0x1404b4872
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x16a], 1
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.1404b2a20
mov rax, qword [rsp + 0x50]
cmp dword [rax], 5
jne 0x1404b47e7
lea rax, str.QUIC
mov qword [rsp + 0x60], rax
jmp 0x1404b47f3
lea rax, [0x1407e5084]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x50]
add rax, 0xa0
mov rcx, qword [rsp + 0x50]
add rcx, 0xce
mov rdx, qword [rsp + 0x50]
mov edx, dword [rdx + 0xfc]
mov dword [rsp + 0x40], edx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x100]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x98]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x60]
lea r8, str._s_socket__qd_connected:___s:_d_______s:_d_
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
call fcn.1401dc0b6
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 8]
mov dword [rsp + 0x68], eax
xor eax, eax
add rsp, 0x70
pop rdi
ret
Function at 0x1404d3790
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0xc0
lea rdi, [rsp + 0x20]
mov ecx, 0x28
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0xd0]
mov rax, qword [0x140812ac0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0x28], 0x1c
mov rcx, qword [rsp + 0xd8]
call fcn.1401d81eb
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0xd0]
and eax, 0xffff
mov word [rsp + 0xa4], ax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
lea rax, [rax + rcx + 0x31]
lea r9, [0x1407ee8b0]
mov r8d, 0x213
mov rdx, rax
mov ecx, 1
call fcn.1401d66c5
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1404d3837
xor eax, eax
jmp 0x1404d393a
mov eax, reloc.WS2_32.dll_socket
mov word [rsp + 0x48], ax
movzx ecx, word [rsp + 0xa4]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x4a], ax
mov dword [rsp + 0x4c], 0
mov dword [rsp + 0x60], 0
lea r8, [rsp + 0x88]
lea rdx, [0x1407ee64c]
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x50]
call fcn.1401d8781
mov rax, qword [rsp + 0x20]
mov dword [rax], 0
mov rax, qword [rsp + 0x20]
mov dword [rax + 4], reloc.WS2_32.dll_socket
mov rax, qword [rsp + 0x20]
mov dword [rax + 8], 1
mov rax, qword [rsp + 0x20]
mov dword [rax + 0xc], 6
mov rax, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x10], ecx
mov rax, qword [rsp + 0x20]
mov qword [rax + 0x28], 0
mov rax, qword [rsp + 0x20]
add rax, 0x30
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x20], rax
mov r8, qword [rsp + 0x28]
lea rdx, [rsp + 0x48]
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x20]
call fcn.1401d8781
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x20]
add rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x18], rax
mov rdx, qword [rsp + 0xd8]
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x18]
call fcn.1401d7039
mov rax, qword [rsp + 0x20]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.1401dbb48
mov rax, rdi
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1401d8740
add rsp, 0xc0
pop rdi
ret
Function at 0x1404d3970
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0xa0
lea rdi, [rsp + 0x20]
mov ecx, 0x20
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0xb0]
mov rax, qword [0x140812ac0]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x30], reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0xb8]
call fcn.1401d81eb
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0xb0]
and eax, 0xffff
mov word [rsp + 0x84], ax
mov r8d, reloc.WS2_32.dll_recv
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.1401dafc2
mov eax, 2
mov word [rsp + 0x48], ax
movzx ecx, word [rsp + 0x84]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x4a], ax
lea r8, [rsp + 0x74]
lea rdx, [0x1407ee8f8]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jge 0x1404d3a2c
xor eax, eax
jmp 0x1404d3b4b
mov r8d, 4
lea rdx, [rsp + 0x74]
lea rcx, [rsp + 0x4c]
call fcn.1401d8781
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
lea rax, [rax + rcx + 0x31]
lea r9, [0x1407ee910]
mov r8d, 0x242
mov rdx, rax
mov ecx, 1
call fcn.1401d66c5
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1404d3a7e
xor eax, eax
jmp 0x1404d3b4b
mov rax, qword [rsp + 0x20]
mov dword [rax], 0
mov rax, qword [rsp + 0x20]
mov dword [rax + 4], 2
mov rax, qword [rsp + 0x20]
mov dword [rax + 8], 1
mov rax, qword [rsp + 0x20]
mov dword [rax + 0xc], 6
mov rax, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x30]
mov dword [rax + 0x10], ecx
mov rax, qword [rsp + 0x20]
add rax, 0x30
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x20], rax
mov r8, qword [rsp + 0x30]
lea rdx, [rsp + 0x48]
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x20]
call fcn.1401d8781
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x20]
add rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x18], rax
mov rdx, qword [rsp + 0xb8]
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x18]
call fcn.1401d7039
mov rdx, qword [rsp + 0xb8]
mov ecx, dword [rsp + 0xb0]
call fcn.1404d3790
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1404d3b38
mov rax, qword [rsp + 0x20]
jmp 0x1404d3b4b
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
mov qword [rax + 0x28], rcx
mov rax, qword [rsp + 0x28]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.1401dbb48
mov rax, rdi
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1401d8740
add rsp, 0xa0
pop rdi
ret