joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1404b3040
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 0x1404b307f
mov dword [rsp + 0x44], 1
jmp 0x1404b3087
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 0x1404b30db
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.1401dd854
nop
jmp 0x1404b3204
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax + 0x9d4]
call fcn.1401d7de1
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 0x1404b3142
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.1401dd854
nop
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax + 0x9d8]
call fcn.1401d7de1
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 0x1404b31a9
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.1401dd854
nop
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax + 0x9dc]
call fcn.1401d7de1
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 0x1404b3204
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.1401dd854
nop
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1401dcb34
add rsp, 0x50
pop rdi
ret
Function at 0x1404b3f40
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.1401dbfd6
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.1401db540
nop
lea rcx, str.CURL_DBG_SOCK_WBLOCK
call fcn.1401d8066
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1404b3fe9
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.1401dab27
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jl 0x1404b3fe9
cmp dword [rsp + 0x28], 0x64
jg 0x1404b3fe9
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x150], ecx
lea rcx, str.CURL_DBG_SOCK_WPARTIAL
call fcn.1401d8066
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1404b4035
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.1401dab27
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
jl 0x1404b4035
cmp dword [rsp + 0x2c], 0x64
jg 0x1404b4035
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x2c]
mov dword [rax + 0x154], ecx
lea rcx, str.CURL_DBG_SOCK_RBLOCK
call fcn.1401d8066
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1404b4081
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.1401dab27
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x1404b4081
cmp dword [rsp + 0x30], 0x64
jg 0x1404b4081
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x30]
mov dword [rax + 0x158], ecx
lea rcx, str.CURL_DBG_SOCK_RMAX
call fcn.1401d8066
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1404b40c8
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.1401dab27
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jl 0x1404b40c8
movsxd rax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x160], rax
add rsp, 0x40
pop rdi
ret
Function at 0x1404b4420
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 [0x140814ac0]
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 0x1404b45bf
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 0x1404b45bf
mov dword [rsp + 0x1f4], 0x80
mov r8d, 0x80
xor edx, edx
lea rcx, [rsp + 0x160]
call fcn.1401dbfd6
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 0x1404b453a
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.1401dc477
mov r9, rax
mov r8d, dword [rsp + 0x204]
lea rdx, str.getsockname___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x238]
call fcn.1401df2ad
mov eax, 2
jmp 0x1404b45c1
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.1401dda98
movzx eax, al
test eax, eax
jne 0x1404b45bf
call fcn.1401d847b
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov ecx, dword [rax]
call fcn.1401dc477
mov qword [rsp + 0x210], rax
call fcn.1401d847b
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.1401df2ad
mov eax, 2
jmp 0x1404b45c1
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.1401dcb34
mov rax, rdi
mov rcx, qword [rsp + 0x218]
xor rcx, rsp
call fcn.1401d9736
add rsp, 0x220
pop rdi
ret

Function at 0x1404b4bd0
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 0x1404b4c05
jmp 0x1404b4c30
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 0x1404b52b0
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 [0x140814ac0]
xor rax, rsp
mov qword [rsp + 0xf0], rax
lea rcx, [rsp + 0xc0]
call fcn.1401dd6f1
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.1401defdd
cmp rax, 0x3e8
jle 0x1404b5434
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 0x1404b5413
mov rax, qword [rsp + 0x120]
mov eax, dword [rax + 0x148]
cmp dword [rsp + 0x54], eax
je 0x1404b5413
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 0x1404b5413
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.1401dcb34
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1401d9736
add rsp, 0x108
pop rdi
pop rsi
ret
Function at 0x1404b6100
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 0x1404b6152
mov r8d, 0x6fb
lea rdx, [0x1407e6fb0]
lea rcx, str.ctx__sock____SOCKET__0_
call fcn.1401d5938
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 0x1404b61ae
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.1404b3e40
jmp 0x1404b6272
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x16a], 1
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.1404b4420
mov rax, qword [rsp + 0x50]
cmp dword [rax], 5
jne 0x1404b61e7
lea rax, str.QUIC
mov qword [rsp + 0x60], rax
jmp 0x1404b61f3
lea rax, [0x1407e7084]
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.1401dd0a7
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 0x1404d5190
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 [0x140814ac0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0x28], 0x1c
mov rcx, qword [rsp + 0xd8]
call fcn.1401d91f0
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, [0x1407f08b0]
mov r8d, 0x213
mov rdx, rax
mov ecx, 1
call fcn.1401d76a7
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1404d5237
xor eax, eax
jmp 0x1404d533a
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, [0x1407f064c]
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.1401d9777
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.1401d9777
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.1401d802a
mov rax, qword [rsp + 0x20]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.1401dcb34
mov rax, rdi
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1401d9736
add rsp, 0xc0
pop rdi
ret
Function at 0x1404d5370
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 [0x140814ac0]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x30], reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0xb8]
call fcn.1401d91f0
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.1401dbfd6
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, [0x1407f08f8]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jge 0x1404d542c
xor eax, eax
jmp 0x1404d554b
mov r8d, 4
lea rdx, [rsp + 0x74]
lea rcx, [rsp + 0x4c]
call fcn.1401d9777
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
lea rax, [rax + rcx + 0x31]
lea r9, [0x1407f0910]
mov r8d, 0x242
mov rdx, rax
mov ecx, 1
call fcn.1401d76a7
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1404d547e
xor eax, eax
jmp 0x1404d554b
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.1401d9777
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.1401d802a
mov rdx, qword [rsp + 0xb8]
mov ecx, dword [rsp + 0xb0]
call fcn.1404d5190
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1404d5538
mov rax, qword [rsp + 0x20]
jmp 0x1404d554b
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.1401dcb34
mov rax, rdi
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1401d9736
add rsp, 0xa0
pop rdi
ret
Function at 0x1404f5a90
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

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, 0xd0
lea rdi, [rsp + 0x30]
mov ecx, 0x28
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x74], 0
mov dword [rsp + 0x94], 4
mov eax, dword [rsp + 0xf8]
mov dword [rsp + 0xb4], eax
mov r8, qword [rsp + 0xf8]
xor edx, edx
mov rcx, qword [rsp + 0xf0]
call fcn.1401dbfd6
mov dword [rsp + 0x20], 0xf0000040
mov r9d, dword [rsp + 0x100]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1404f5b38
jmp 0x1404f5c24
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x108]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1404f5b63
jmp 0x1404f5bfa
xor r9d, r9d
mov r8d, dword [rsp + 0xe8]
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x1404f5b87
jmp 0x1404f5bfa
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x94]
lea r8, [rsp + 0x74]
mov edx, 4
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x1404f5bb2
jmp 0x1404f5bfa
mov eax, dword [rsp + 0x74]
cmp qword [rsp + 0xf8], rax
jae 0x1404f5bc2
jmp 0x1404f5bfa
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0xb4]
mov r8, qword [rsp + 0xf0]
mov edx, 2
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1404f5bf0
jmp 0x1404f5bfa
xor eax, eax
test eax, eax
jne 0x1404f5b38
cmp qword [rsp + 0x58], 0
je 0x1404f5c0e
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
nop
cmp qword [rsp + 0x38], 0
je 0x1404f5c24
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_getpeername
call fcn.1401dcb34
add rsp, 0xd0
pop rdi
ret
Function at 0x1404f7990
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x38], 0x8000
mov eax, dword [rsp + 0x34]
lea r9, [0x1407fe010]
mov r8d, 0x30
mov edx, eax
mov rcx, qword [rsp + 0x20]
call fcn.1401d76a2
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1404f79f7
lea r8, [0x1407fe060]
mov edx, 0x32
mov rcx, qword [rsp + 0x20]
call fcn.1401d55f5
xor eax, eax
jmp 0x1404f7a6d
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x20], rax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x1404f7a3d
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x34], eax
je 0x1404f7a3d
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x34], eax
jbe 0x1404f7a57
lea r8, str.D:_vcpkg_buildtreescurl_srccurl_8_9_1_bb74e44024.cleanlibgetenv.c
mov edx, 0x3d
mov rcx, qword [rsp + 0x20]
call fcn.1401d55f5
xor eax, eax
jmp 0x1404f7a6d
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x34], eax
jae 0x1404f7a68
mov rax, qword [rsp + 0x20]
jmp 0x1404f7a6d
jmp 0x1404f79b3
add rsp, 0x40
pop rdi
ret
Function at 0x140512e70
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x130
lea rdi, [rsp + 0x30]
mov ecx, 0x40
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x140]
mov rax, qword [0x140814ac0]
xor rax, rsp
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x140]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x30], rax
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx + rax + 0x220]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], 0xffffffffffffffff
mov dword [rsp + 0x104], 0x80
lea r8, [rsp + 0x104]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140512f3d
mov dword [rsp + 0x104], 0x80
lea rax, [0x1408026f0]
mov qword [rsp + 0x20], rax
mov r9d, 0x1be
lea r8, [rsp + 0x104]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
call fcn.1401daf32
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x140512f63
lea rdx, str.Error_accept__ing_server_connect
mov rcx, qword [rsp + 0x140]
call fcn.1401df2ad
mov eax, 0x1e
jmp 0x14051306c
lea rdx, str.Connection_accepted_from_server
mov rcx, qword [rsp + 0x140]
call fcn.1401dd854
mov rax, qword [rsp + 0x30]
mov byte [rax + 0x3ad], 0
mov edx, 1
mov rcx, qword [rsp + 0x48]
call fcn.1401d6b76
lea r9, [rsp + 0x48]
mov r8d, 1
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x140]
call fcn.1401df3c0
mov dword [rsp + 0x114], eax
cmp dword [rsp + 0x114], 0
je 0x140512fe2
lea r8, [0x140802780]
mov edx, 0x1ce
mov rcx, qword [rsp + 0x48]
call fcn.1401da22b
mov eax, dword [rsp + 0x114]
jmp 0x14051306c
mov rax, qword [rsp + 0x140]
cmp qword [rax + 0x280], 0
je 0x14051306a
mov dword [rsp + 0x118], 0
mov dl, 1
mov rcx, qword [rsp + 0x140]
call fcn.1401dca1c
mov r8d, 1
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x140]
mov rcx, qword [rax + 0x288]
mov rax, qword [rsp + 0x140]
call qword [rax + 0x280]
mov dword [rsp + 0x118], eax
xor edx, edx
mov rcx, qword [rsp + 0x140]
call fcn.1401dca1c
cmp dword [rsp + 0x118], 0
je 0x14051306a
mov rcx, qword [rsp + 0x140]
call fcn.140512c90
mov eax, 0x2a
jmp 0x14051306c
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.1401dcb34
mov rax, rdi
mov rcx, qword [rsp + 0x128]
xor rcx, rsp
call fcn.1401d9736
add rsp, 0x130
pop rdi
ret
Function at 0x140516d60
Capabilities:
Check http status code

Disassembly:
mov byte [rsp + 0x18], r8b
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x48]
cdq
mov ecx, 0x64
idiv ecx
cmp eax, 2
je 0x140516db5
lea rdx, str.Couldnt_set_desired_mode
mov rcx, qword [rsp + 0x40]
call fcn.1401df2ad
mov eax, reloc.WS2_32.dll_recvfrom
jmp 0x140516e45
cmp dword [rsp + 0x48], 0xc8
je 0x140516dd6
mov r8d, dword [rsp + 0x48]
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
mov rcx, qword [rsp + 0x40]
call fcn.1401dd854
nop
movzx eax, byte [rsp + 0x50]
cmp eax, 0x13
jne 0x140516df5
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call fcn.140514fa0
mov dword [rsp + 0x20], eax
jmp 0x140516e41
movzx eax, byte [rsp + 0x50]
cmp eax, 0x14
jne 0x140516e0f
mov rcx, qword [rsp + 0x40]
call fcn.140515060
mov dword [rsp + 0x20], eax
jmp 0x140516e41
movzx eax, byte [rsp + 0x50]
cmp eax, 0x15
jne 0x140516e29
mov rcx, qword [rsp + 0x40]
call fcn.140515350
mov dword [rsp + 0x20], eax
jmp 0x140516e41
movzx eax, byte [rsp + 0x50]
cmp eax, 0x16
jne 0x140516e41
mov rcx, qword [rsp + 0x40]
call fcn.140515380
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret