joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1404b2a20
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 [0x140818ac0]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rax, [0x140823b61]
mov qword [rsp + 0xd8], rax
lea rax, [0x140823b62]
mov qword [rsp + 0xe0], rax
lea rax, [0x140823b63]
mov qword [rsp + 0xe8], rax
lea rax, [0x140823b64]
mov qword [rsp + 0xf0], rax
lea rdx, [rsp + 0xa8]
mov rax, qword [rsp + 0x170]
mov rcx, qword [rax + 0x20]
call fcn.1401d73c4
mov dword [rsp + 0xf8], eax
cmp dword [rsp + 0xf8], 0
je 0x1404b2ad7
mov eax, dword [rsp + 0xf8]
jmp 0x1404b2cd6
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 0x1404b2b19
lea rax, str.____
mov qword [rsp + 0xd8], rax
lea rax, [0x1407e8b4c]
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 0x1404b2b5a
lea rax, [0x1407e8b50]
mov qword [rsp + 0xe8], rax
lea rax, [0x1407e8b54]
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.1401dff51
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.1401dff51
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, [0x1407e8b58]
mov rcx, qword [rsp + 0x178]
call fcn.1401d745f
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.1401ddb7f
mov rax, rdi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1401da763
add rsp, 0x160
pop rdi
ret
Function at 0x1404b2fc0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
lea rcx, [0x1407e8ee8]
call fcn.1401d9070
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1404b3000
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.1401dbba9
mov dword [rsp + 0x28], eax
movsxd rax, dword [rsp + 0x28]
jmp 0x1404b3007
xor ecx, ecx
call fcn.1404b1350
add rsp, 0x30
pop rdi
ret

Function at 0x1404b4350
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rdi, [rsp + 0x20]
mov ecx, listen
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x60]
lea rcx, str.CURL_TIME
call fcn.1401d9070
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1404b43be
lea r9, [rsp + 0x38]
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.1401daadd
mov rax, qword [0x140824548]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
jmp 0x1404b43c5
xor ecx, ecx
call fcn.1404b3740
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1401ddb7f
mov rax, rdi
add rsp, 0x50
pop rdi
ret

Function at 0x1404b65a0
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 0x1404b65e0
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 [0x140818ac0]
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 0x1404b6686
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1401dd4e0
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s
mov rcx, qword [rsp + 0x190]
call fcn.1401de8c2
nop
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.1401ddb7f
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1401da763
add rsp, 0x180
pop rdi
ret
Function at 0x1404b66c0
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 0x1404b66ff
mov dword [rsp + 0x44], 1
jmp 0x1404b6707
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 0x1404b675b
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.1401de8c2
nop
jmp 0x1404b6884
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax + 0x9d4]
call fcn.1401d8df0
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 0x1404b67c2
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.1401de8c2
nop
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax + 0x9d8]
call fcn.1401d8df0
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 0x1404b6829
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.1401de8c2
nop
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax + 0x9dc]
call fcn.1401d8df0
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 0x1404b6884
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.1401de8c2
nop
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1401ddb7f
add rsp, 0x50
pop rdi
ret
Function at 0x1404b75c0
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.1401dd053
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.1401dc5ae
nop
lea rcx, str.CURL_DBG_SOCK_WBLOCK
call fcn.1401d9070
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1404b7669
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.1401dbba9
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jl 0x1404b7669
cmp dword [rsp + 0x28], 0x64
jg 0x1404b7669
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x150], ecx
lea rcx, str.CURL_DBG_SOCK_WPARTIAL
call fcn.1401d9070
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1404b76b5
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.1401dbba9
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
jl 0x1404b76b5
cmp dword [rsp + 0x2c], 0x64
jg 0x1404b76b5
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x2c]
mov dword [rax + 0x154], ecx
lea rcx, str.CURL_DBG_SOCK_RBLOCK
call fcn.1401d9070
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1404b7701
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.1401dbba9
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x1404b7701
cmp dword [rsp + 0x30], 0x64
jg 0x1404b7701
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x30]
mov dword [rax + 0x158], ecx
lea rcx, str.CURL_DBG_SOCK_RMAX
call fcn.1401d9070
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1404b7748
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.1401dbba9
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jl 0x1404b7748
movsxd rax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x160], rax
add rsp, 0x40
pop rdi
ret
Function at 0x1404b7aa0
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 [0x140818ac0]
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 0x1404b7c3f
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 0x1404b7c3f
mov dword [rsp + 0x1f4], 0x80
mov r8d, 0x80
xor edx, edx
lea rcx, [rsp + 0x160]
call fcn.1401dd053
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 0x1404b7bba
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.1401dd4e0
mov r9, rax
mov r8d, dword [rsp + 0x204]
lea rdx, str.getsockname___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x238]
call fcn.1401e02e4
mov eax, 2
jmp 0x1404b7c41
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.1401deafc
movzx eax, al
test eax, eax
jne 0x1404b7c3f
call fcn.1401d946c
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov ecx, dword [rax]
call fcn.1401dd4e0
mov qword [rsp + 0x210], rax
call fcn.1401d946c
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.1401e02e4
mov eax, 2
jmp 0x1404b7c41
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.1401ddb7f
mov rax, rdi
mov rcx, qword [rsp + 0x218]
xor rcx, rsp
call fcn.1401da763
add rsp, 0x220
pop rdi
ret

Function at 0x1404b8250
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 0x1404b8285
jmp 0x1404b82b0
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 0x1404b8930
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 [0x140818ac0]
xor rax, rsp
mov qword [rsp + 0xf0], rax
lea rcx, [rsp + 0xc0]
call fcn.1401de741
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.1401e000a
cmp rax, 0x3e8
jle 0x1404b8ab4
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 0x1404b8a93
mov rax, qword [rsp + 0x120]
mov eax, dword [rax + 0x148]
cmp dword [rsp + 0x54], eax
je 0x1404b8a93
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 0x1404b8a93
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.1401ddb7f
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1401da763
add rsp, 0x108
pop rdi
pop rsi
ret
Function at 0x1404b9780
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 0x1404b97d2
mov r8d, 0x6fb
lea rdx, [0x1407eafb0]
lea rcx, str.ctx__sock____SOCKET__0_
call fcn.1401d6933
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 0x1404b982e
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.1404b74c0
jmp 0x1404b98f2
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x16a], 1
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.1404b7aa0
mov rax, qword [rsp + 0x50]
cmp dword [rax], 5
jne 0x1404b9867
lea rax, str.QUIC
mov qword [rsp + 0x60], rax
jmp 0x1404b9873
lea rax, [0x1407eb084]
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.1401de0ed
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 0x1404d8810
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 [0x140818ac0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0x28], 0x1c
mov rcx, qword [rsp + 0xd8]
call fcn.1401da209
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, [0x1407f48b0]
mov r8d, 0x213
mov rdx, rax
mov ecx, 1
call fcn.1401d86b1
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1404d88b7
xor eax, eax
jmp 0x1404d89ba
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, [0x1407f464c]
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.1401da7a9
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.1401da7a9
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.1401d9034
mov rax, qword [rsp + 0x20]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.1401ddb7f
mov rax, rdi
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1401da763
add rsp, 0xc0
pop rdi
ret
Function at 0x1404d89f0
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 [0x140818ac0]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x30], reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0xb8]
call fcn.1401da209
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.1401dd053
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, [0x1407f48f8]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jge 0x1404d8aac
xor eax, eax
jmp 0x1404d8bcb
mov r8d, 4
lea rdx, [rsp + 0x74]
lea rcx, [rsp + 0x4c]
call fcn.1401da7a9
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
lea rax, [rax + rcx + 0x31]
lea r9, [0x1407f4910]
mov r8d, 0x242
mov rdx, rax
mov ecx, 1
call fcn.1401d86b1
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1404d8afe
xor eax, eax
jmp 0x1404d8bcb
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.1401da7a9
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.1401d9034
mov rdx, qword [rsp + 0xb8]
mov ecx, dword [rsp + 0xb0]
call fcn.1404d8810
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1404d8bb8
mov rax, qword [rsp + 0x20]
jmp 0x1404d8bcb
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.1401ddb7f
mov rax, rdi
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1401da763
add rsp, 0xa0
pop rdi
ret
Function at 0x1404f9110
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.1401dd053
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 0x1404f91b8
jmp 0x1404f92a4
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 0x1404f91e3
jmp 0x1404f927a
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 0x1404f9207
jmp 0x1404f927a
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 0x1404f9232
jmp 0x1404f927a
mov eax, dword [rsp + 0x74]
cmp qword [rsp + 0xf8], rax
jae 0x1404f9242
jmp 0x1404f927a
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 0x1404f9270
jmp 0x1404f927a
xor eax, eax
test eax, eax
jne 0x1404f91b8
cmp qword [rsp + 0x58], 0
je 0x1404f928e
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
nop
cmp qword [rsp + 0x38], 0
je 0x1404f92a4
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.1401ddb7f
add rsp, 0xd0
pop rdi
ret