joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009ea40
Capabilities:
Resolve dns

Disassembly:
push r12
push r13
push r14
push r15
sub rsp, 0x28
mov r13, r9
xor r14d, r14d
mov qword [r9], r14
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x14009ebcb
mov qword [rsp + 0x20], rdi
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x14009ebb0
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x14009eaae
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14009eaa0
inc rbx
jmp 0x14009eab0
xor ebx, ebx
mov eax, dword [rdi + 4]
cmp eax, 2
jne 0x14009eabd
lea ebp, [rax + 0xe]
jmp 0x14009eac9
cmp eax, 0x17
jne 0x14009eb65
lea ebp, [rax + 5]
cmp qword [rdi + 0x20], 0
je 0x14009eb65
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x14009eb65
cmp rax, rbp
jb 0x14009eb65
lea rcx, [rbp + 0x30]
add rcx, rbx
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x14009eb74
mov ecx, dword [rdi]
mov r8, rbp
mov dword [rax], ecx
mov ecx, dword [rdi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rdi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rdi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [rsi + 0x30]
mov dword [rax + 0x10], ebp
xor eax, eax
mov qword [rsi + 0x18], rax
mov qword [rsi + 0x28], rax
mov qword [rsi + 0x20], rcx
mov rdx, qword [rdi + 0x20]
call fcn.1401f8470
test rbx, rbx
je 0x14009eb52
mov rcx, qword [rsi + 0x20]
mov r8, rbx
add rcx, rbp
mov qword [rsi + 0x18], rcx
mov rdx, qword [rdi + 0x18]
call fcn.1401f8470
test r14, r14
cmove r14, rsi
test r15, r15
je 0x14009eb62
mov qword [r15 + 0x28], rsi
mov r15, rsi
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x14009ea90
jmp 0x14009eb7a
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
test rcx, rcx
je 0x14009eb99
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x14009ebab
mov rcx, r14
call fcn.14009ea10
xor r14d, r14d
jmp 0x14009ebbf
test r14, r14
jne 0x14009ebbf
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x20]
mov eax, r12d
mov qword [r13], r14
add rsp, 0x28
pop r15
pop r14
pop r13
pop r12
ret

Function at 0x14009f080
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call fcn.14020e7d0
test rax, rax
je 0x14009f0b6
cmp rax, 0xffffffffffffffff
cmovne rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
add rsp, 0x30
pop rbx
ret

Function at 0x14009f260
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov r8, rdx
xor edx, edx
mov rdi, rcx
call fcn.1401f8b20
mov r9d, 2
mov r8d, ebx
mov rdx, rdi
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
mov rbx, qword [rsp + 0x30]
neg eax
sbb eax, eax
and eax, 2
add rsp, 0x20
pop rdi
ret
Function at 0x1400a46f0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [case.0x140087590.0]
mov rdi, rax
test rax, rax
je 0x1400a476d
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x1400a4798
cmp ebx, esi
je 0x1400a4798
cmp ebx, 0x8000
ja 0x1400a4798
cmp ebx, esi
jb 0x1400a4793
mov edx, ebx
mov rcx, rdi
call qword [case.0x140087590.0]
mov rdi, rax
test rax, rax
jne 0x1400a4730
mov rcx, rbp
call qword [fcn.140202498]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x1400a4778
mov rcx, rdi
jmp 0x1400a4770
jmp 0x1400a46f0

Function at 0x1400a47a0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [case.0x140087590.0]
mov rdi, rax
test rax, rax
je 0x1400a476d
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x1400a4798
cmp ebx, esi
je 0x1400a4798
cmp ebx, 0x8000
ja 0x1400a4798
cmp ebx, esi
jb 0x1400a4793
mov edx, ebx
mov rcx, rdi
call qword [case.0x140087590.0]
mov rdi, rax
test rax, rax
jne 0x1400a4730
mov rcx, rbp
call qword [fcn.140202498]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x1400a4778
mov rcx, rdi
jmp 0x1400a4770
jmp 0x1400a46f0
Function at 0x1400a6050
Capabilities:
Send data
Send data on socket

Disassembly:
mov r9, qword [rcx + 0x1a0]
mov r11, rcx
movsxd r10, edx
mov r8d, dword [r9 + r10*4 + 8]
sub r8d, 1
je 0x1400a60d1
sub r8d, 1
je 0x1400a60a8
cmp r8d, 1
jne 0x1400a60e5
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x1400a60c9
cmp ecx, r8d
jne 0x1400a60e5
xor eax, eax
mov dword [r9 + r10*4 + 8], 2
mov r8d, edx
mov dword [r9 + r10*4 + 0x408], eax
mov edx, 0xfb
mov rcx, r11
jmp fcn.1400a6270
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x1400a60c9
cmp ecx, 1
jne 0x1400a60e5
xor eax, eax
mov dword [r9 + r10*4 + 8], eax
mov dword [r9 + r10*4 + 0x408], eax
ret
xor eax, eax
mov dword [r9 + r10*4 + 8], eax
ret
xor eax, eax
mov r8d, edx
mov edx, 0xfc
mov dword [r9 + r10*4 + 8], eax
jmp fcn.1400a6270
ret

Function at 0x1400a60f0
Capabilities:
Send data
Send data on socket

Disassembly:
mov r9, qword [rcx + 0x1a0]
mov r11, rcx
movsxd r10, edx
mov r8d, dword [r9 + r10*4 + 0xc08]
test r8d, r8d
je 0x1400a6194
sub r8d, 2
je 0x1400a614d
cmp r8d, 1
jne 0x1400a6186
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x1400a6140
cmp ecx, r8d
jne 0x1400a6186
mov dword [r9 + r10*4 + 0xc08], r8d
mov dword [r9 + r10*4 + 0x1008], 0
ret
mov dword [r9 + r10*4 + 0xc08], 0
ret
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x1400a6187
cmp ecx, 1
jne 0x1400a6186
mov dword [r9 + r10*4 + 0xc08], 3
mov rcx, r11
mov dword [r9 + r10*4 + 0x1008], 0
mov r8d, edx
mov edx, 0xfe
jmp fcn.1400a6270
ret
mov dword [r9 + r10*4 + 0xc08], 1
ret
cmp dword [r9 + r10*4 + 0x1408], 1
jne 0x1400a6179
mov r8d, edx
mov dword [r9 + r10*4 + 0xc08], 1
mov edx, 0xfd
jmp fcn.1400a6270

Function at 0x1400a61c0
Capabilities:
Send data
Send data on socket

Disassembly:
mov r9, qword [rcx + 0x1a0]
mov r11, rcx
movsxd r10, edx
mov r8d, dword [r9 + r10*4 + 0xc08]
sub r8d, 1
je 0x1400a624d
sub r8d, 1
je 0x1400a621e
cmp r8d, 1
jne 0x1400a6264
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x1400a6242
cmp ecx, r8d
jne 0x1400a6264
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], 2
mov r8d, edx
mov dword [r9 + r10*4 + 0x1008], eax
mov edx, 0xfd
mov rcx, r11
jmp fcn.1400a6270
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x1400a6242
cmp ecx, 1
jne 0x1400a6264
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], eax
mov dword [r9 + r10*4 + 0x1008], eax
ret
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], eax
ret
xor eax, eax
mov r8d, edx
mov edx, 0xfe
mov dword [r9 + r10*4 + 0xc08], eax
jmp fcn.1400a6270
ret
Function at 0x1400a6270
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov byte [rsp + 0x38], 0xff
mov rcx, qword [rcx + 0x20]
mov edi, r8d
mov esi, edx
mov byte [rsp + 0x3a], dil
xor r9d, r9d
mov byte [rsp + 0x39], sil
lea rdx, [rsp + 0x38]
mov rcx, qword [rcx + 0x1a8]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400a62cf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbx
mov r8d, eax
call fcn.14008b200
mov r9d, edi
lea rdx, str.SENT
mov r8d, esi
mov rcx, rbx
call fcn.1400a5a60
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400a6620
Capabilities:
Send data
Send data on socket

Disassembly:
mov r10, qword [rcx + 0x1a0]
movsxd r11, edx
mov r9d, dword [r10 + r11*4 + 8]
cmp r8d, 1
jne 0x1400a6673
test r9d, r9d
je 0x1400a665d
sub r9d, 2
je 0x1400a6685
cmp r9d, r8d
jne 0x1400a66b3
cmp dword [r10 + r11*4 + 0x408], 0
jne 0x1400a66b3
mov dword [r10 + r11*4 + 0x408], 1
ret
mov r8d, edx
mov dword [r10 + r11*4 + 8], 2
mov edx, 0xfb
jmp fcn.1400a6270
sub r9d, 1
je 0x1400a669d
sub r9d, 1
je 0x1400a6645
cmp r9d, 1
jne 0x1400a66b3
cmp dword [r10 + r11*4 + 0x408], 1
jne 0x1400a66b3
mov dword [r10 + r11*4 + 0x408], 0
ret
mov r8d, edx
mov dword [r10 + r11*4 + 8], 3
mov edx, 0xfc
jmp fcn.1400a6270
ret

Function at 0x1400a66c0
Capabilities:
Send data
Send data on socket

Disassembly:
mov r10, qword [rcx + 0x1a0]
movsxd r11, edx
mov r9d, dword [r10 + r11*4 + 0xc08]
cmp r8d, 1
jne 0x1400a6719
test r9d, r9d
je 0x1400a6700
sub r9d, 2
je 0x1400a672b
cmp r9d, r8d
jne 0x1400a675c
cmp dword [r10 + r11*4 + 0x1008], 0
jne 0x1400a675c
mov dword [r10 + r11*4 + 0x1008], 1
ret
mov r8d, edx
mov dword [r10 + r11*4 + 0xc08], 2
mov edx, 0xfd
jmp fcn.1400a6270
sub r9d, 1
je 0x1400a6743
sub r9d, 1
je 0x1400a66e8
cmp r9d, 1
jne 0x1400a675c
cmp dword [r10 + r11*4 + 0x1008], 1
jne 0x1400a675c
mov dword [r10 + r11*4 + 0x1008], 0
ret
mov r8d, edx
mov dword [r10 + r11*4 + 0xc08], 3
mov edx, 0xfe
jmp fcn.1400a6270
ret
Function at 0x1400a78e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1402deca0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx + 0x20]
mov rsi, rcx
xor r9d, r9d
mov rdi, qword [rax + 0x3a0]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], Ordinal_133
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8d, dword [rdi + 0x144]
lea r14, [rdi + 0x150]
mov rdx, qword [r14]
add r8d, 4
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rdi + 0x138], 0
mov dword [rdi + 0x13c], eax
jne 0x1400a7979
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xb8]
lea rdx, [rsp + 0x40]
call fcn.1401f8470
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x138], eax
mov r9d, dword [rdi + 0x13c]
mov qword [rsp + 0xf8], rbx
mov qword [rsp + 0x100], rbp
cmp r9d, 4
jge 0x1400a79da
lea rdx, str.Received_too_short_packet
mov rcx, rsi
call fcn.14008b200
mov dword [rdi + 0xc], 7
xor eax, eax
mov rbp, qword [rsp + 0x100]
mov rbx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1401f66a0
add rsp, 0xd0
pop r14
pop rdi
pop rsi
ret
mov rcx, r14
call fcn.1400a7420
movzx r8d, ax
mov dword [rdi + 0xc], r8d
dec r8d
cmp r8d, 5
ja case.0x1400a7a0b.1
lea rdx, [0x140000000]
movsxd rax, r8d
mov ecx, dword [rdx + rax*4 + 0xa7b24]
add rcx, rdx
jmp rcx
cmp r9d, 4
jle case.0x1400a7a0b.4
mov rcx, r14
call fcn.1400a7400
movzx ecx, word [rdi + 0x14c]
inc ecx
cmp cx, ax
jne case.0x1400a7a0b.4
mov r8, qword [r14]
lea eax, [r9 - 4]
movsxd r9, eax
add r8, 4
mov edx, 1
mov rcx, rsi
call fcn.14008b490
mov ebx, eax
test eax, eax
je 0x1400a7a66
mov edx, 5
mov rcx, rdi
call fcn.1400a8370
mov eax, ebx
jmp 0x1400a79ae
mov eax, dword [rdi + 0x13c]
mov rcx, rsi
sub eax, 4
cdqe
add qword [rsi + 0x100], rax
mov rdx, qword [rsi + 0x100]
call fcn.14009a1a0
jmp case.0x1400a7a0b.4
mov rbp, qword [r14]
lea eax, [r9 - 4]
mov rcx, r14
movsxd rbx, eax
call fcn.1400a7400
movzx r9d, ax
lea rcx, [rbp + 4]
mov rdx, rbx
mov dword [rdi + 8], r9d
call fcn.1400a8480
cmp rax, rbx
jae case.0x1400a7a0b.4
lea r8, [rbp + 4]
mov rcx, rsi
lea rdx, str.TFTP_error:__s
call fcn.14008b2f0
jmp case.0x1400a7a0b.4
mov rdx, qword [r14]
lea r8d, [r9 - 2]
add rdx, 2
mov rcx, rdi
call fcn.1400a7640
test eax, eax
je case.0x1400a7a0b.4
jmp 0x1400a79ae
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rsi
lea rdx, [0x14022b974]
call fcn.14008b200
mov rcx, rsi
call fcn.14009a460
test eax, eax
je 0x1400a79ac
mov edx, 5
mov rcx, rdi
call fcn.1400a8370
mov eax, Ordinal_46
jmp 0x1400a79ae
Function at 0x1400aff10
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1402deca0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, qword [rcx + 0x20]
lea r8, [rsp + 0x20]
mov rdi, rcx
lea rdx, [rsp + 0x30]
mov rbx, qword [rsi + 0x1b0]
mov rcx, rbx
mov qword [rsp + 0x28], 0xffffffffffffffff
mov dword [rsp + 0x20], Ordinal_133
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400aff8c
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_133
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsp + 0x28], rax
jmp 0x1400aff91
mov rax, qword [rsp + 0x28]
mov rcx, rdi
cmp rax, 0xffffffffffffffff
jne 0x1400affb0
lea rdx, str.Error_accept__ing_server_connect
call fcn.14008b200
mov eax, 0x1e
jmp 0x1400b003c
lea rdx, str.Connection_accepted_from_server
call fcn.14008b2f0
mov byte [rsi + 0x2d5], 0
mov edx, 1
mov rcx, qword [rsp + 0x28]
call fcn.1400c87c0
lea r9, [rsp + 0x28]
mov r8d, 1
mov rdx, rsi
mov rcx, rdi
call fcn.1400bcc40
test eax, eax
jne 0x1400b003c
cmp qword [rdi + 0x270], 0
je 0x1400b003a
mov dl, 1
mov rcx, rdi
call fcn.14007a360
mov rdx, qword [rsp + 0x28]
mov r8d, 1
mov rcx, qword [rdi + 0x278]
call qword [rdi + 0x270]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.14007a360
test ebx, ebx
je 0x1400b003a
mov rdx, rsi
mov rcx, rdi
call fcn.1400b0520
mov eax, Ordinal_46
jmp 0x1400b003c
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1401f66a0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, rdx
mov rbx, rcx
add rdx, 0x3a0
cmp byte [rdx + 0xfd], 0
jne 0x1400b1239
xor r8d, r8d
mov dword [rdx + 0xec], r8d
cmp byte [rax + 0x2cf], r8b
je 0x1400b11f3
mov r9, qword [rdx + 0x98]
test r9, r9
je 0x1400b11f3
cmp dword [rdx + 0xe0], r8d
je 0x1400b11e7
mov rax, qword [rdx + 0xa8]
mov rcx, qword [rax]
cmp byte [rcx], 0x2f
je 0x1400b11f3
mov dword [rdx + 0xe4], r8d
mov rcx, rbx
jmp 0x1400b1213
mov rcx, rbx
cmp dword [rdx + 0xe0], r8d
je 0x1400b1239
mov r9, qword [rdx + 0xa8]
mov dword [rdx + 0xe4], 1
mov r9, qword [r9]
lea r8, str.CWD__s
call fcn.1400efad0
mov r8d, eax
test eax, eax
jne 0x1400b1243
mov dl, reloc.WS2_32.dll_recv
mov rcx, rbx
call fcn.1400b0510
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1400b1620
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, qword [rcx + 0x20]
mov rbx, rcx
add rdx, 0x3a0
cmp byte [rcx + 0xa9a], 0
jne 0x1400b1646
cmp byte [rcx + 0x528], 0
je 0x1400b1678
mov r9, qword [rdx + 0xa0]
test r9, r9
je 0x1400b1678
lea r8, str.MDTM__s
call fcn.1400efad0
mov r8d, eax
test eax, eax
jne 0x1400b1682
mov dl, reloc.WS2_32.dll_select
mov rcx, rbx
call fcn.1400b0510
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1400b2710
add rsp, 0x20
pop rbx
ret
Function at 0x1400b1db0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
lea eax, [rdx - 0xc8]
mov rbx, rcx
cmp eax, 0x64
jb 0x1400b1e2f
mov qword [rsp + 0x30], rsi
mov rsi, qword [rcx + 0x20]
mov qword [rsp + 0x38], rdi
mov eax, dword [rsi + 0x488]
lea edi, [rax + 1]
test eax, eax
jne 0x1400b1e0b
lea rdx, str.disabling_EPRT_usage
call fcn.14008b2f0
mov byte [rsi + 0x2da], 0
mov edx, edi
mov rcx, rbx
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
jmp 0x1400b2ae0
cmp edi, 2
jne 0x1400b1df2
lea rdx, str.Failed_to_do_PORT
call fcn.14008b200
mov rsi, qword [rsp + 0x30]
lea eax, [rdi + 0x1c]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
lea rdx, str.Connect_data_stream_actively
call fcn.14008b2f0
xor edx, edx
mov rcx, rbx
call fcn.1400b0510
add rsp, 0x20
pop rbx
jmp fcn.1400b0760
Function at 0x1400b2150
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1a0]
add rdx, 0x3a0
mov rbx, rcx
cmp dword [rax + 0x10], 0
je 0x1400b21a0
cmp qword [rdx + 0xa0], 0
je 0x1400b21a0
xor r9d, r9d
lea r8, str.REST__d
call fcn.1400efad0
mov r8d, eax
test eax, eax
jne 0x1400b21aa
mov dl, reloc.WLDAP32.dll_Ordinal_26
mov rcx, rbx
call fcn.1400b0510
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1400b1e50
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1a0]
mov rbx, rcx
cmp dword [rax + 0x10], 1
jne 0x1400b24bf
mov r9, qword [rdx + 0x440]
test r9, r9
je 0x1400b24bf
lea r8, str.SIZE__s
add rdx, 0x3a0
call fcn.1400efad0
mov r8d, eax
test eax, eax
jne 0x1400b24c9
mov dl, reloc.WS2_32.dll_socket
mov rcx, rbx
call fcn.1400b0510
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1400b2150
add rsp, 0x20
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x1cc], 0
mov r10, rcx
mov r11, qword [rcx + 0x20]
je 0x1400b2769
cmp qword [r11 + 0x440], 0
je 0x1400b2769
movzx edx, byte [rcx + 0x139a]
mov rcx, r11
call fcn.1400b09d0
test eax, eax
je 0x1400b2769
mov rax, qword [r10 + 0x1a0]
mov r9b, reloc.WS2_32.dll_send
mov rdx, r11
mov rcx, r10
mov dword [rax + 0x10], 1
movzx r8d, byte [r10 + 0x139a]
add rsp, 0x28
jmp fcn.1400b0930
mov rdx, r11
mov rcx, r10
add rsp, 0x28
jmp fcn.1400b2470

Function at 0x1400b2780
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx + 0x20]
lea eax, [rdx - 0xc8]
xor edi, edi
movzx esi, r8b
mov rbx, rcx
cmp eax, 0x64
jb 0x1400b27bd
lea rdx, str.Couldnt_set_desired_mode
call fcn.14008b200
lea eax, [rdi + 0x11]
jmp 0x1400b2819
cmp edx, 0xc8
je 0x1400b27d4
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.14008b2f0
cmp sil, 0x13
jne 0x1400b27e7
mov rdx, rbp
mov rcx, rbx
call fcn.1400b2470
jmp 0x1400b2815
cmp sil, 0x14
jne 0x1400b27f7
mov rcx, rbx
call fcn.1400b1480
jmp 0x1400b2815
cmp sil, 0x15
jne 0x1400b2807
mov rcx, rbx
call fcn.1400b2460
jmp 0x1400b2815
cmp sil, 0x16
jne 0x1400b2817
mov rcx, rbx
call fcn.1400b2660
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400bce80
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x1402dff28]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x1400bcee4
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.1400c3b00
test al, al
je 0x1400bced8
mov dword [0x1402dff28], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x1402dff28], 1
jmp 0x1400bcee9
cmp eax, 2
je 0x1400bcf3b
lea rax, [rsp + 0x58]
mov edx, 0xffff
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1400bcf1a
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x1400bcf3b
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret

Function at 0x1400bd8e0
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rbx, qword [rcx + 0x10]
mov rdi, rdx
mov rbp, rcx
mov r8d, dword [rbx + 0x14]
lea rdx, [rbx + 0x18]
mov rcx, qword [rbx + 0x98]
lea rsi, [rbx + 0xe0]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1400bd935
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rdx, rsi
mov rcx, rdi
mov r8d, eax
call fcn.1400be070
jmp 0x1400bd9ab
mov rdx, rdi
mov rcx, rbp
call fcn.1400bdda0
cmp dword [rbx], 5
lea rax, str.QUIC
lea rcx, [rbx + 0x114]
mov rdx, rbp
lea r9, [0x1402369c8]
cmove r9, rax
lea r8, str._s_socket__qd_connected:___s:_d_______s:_d_
mov eax, dword [rbx + 0x110]
mov dword [rsp + 0x40], eax
mov eax, dword [rbx + 0x144]
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], eax
mov rax, qword [rbx + 0x98]
mov qword [rsp + 0x28], rcx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.14008b390
mov rcx, qword [rbx + 0x98]
mov edx, 1
call fcn.1400c87c0
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x1400bdb20
Capabilities:
Connect socket

Disassembly:
mov rcx, qword [rcx + 0x10]
test r8b, r8b
jne 0x1400bdb3f
mov r8d, dword [rcx + 0x14]
lea rdx, [rcx + 0x18]
mov rcx, qword [rcx + 0x98]
jmp qword [sym.imp.WS2_32.dll_connect]
mov eax, 0xffffffff
ret
Function at 0x1400bdb50
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x148
mov rax, qword [0x1402deca0]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rax, qword [rcx]
mov rdi, rcx
mov rsi, r9
mov rbp, r8
mov rcx, qword [rax + 0x10]
mov dword [r9], 0
xor r9d, r9d
mov rcx, qword [rcx + 0x98]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
jne 0x1400bdbf1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x1400bdbb5
mov dword [rsi], 0x51
jmp 0x1400bdbea
mov r8d, 0x100
lea rdx, [rsp + 0x30]
mov ecx, ebx
call fcn.14009cd40
mov rcx, qword [rdi + 8]
lea rdx, str.Recv_failure:__s
mov r8, rax
call fcn.14008b200
mov rax, qword [rdi + 8]
mov dword [rax + 0xd74], ebx
mov dword [rsi], gethostname
mov rbx, 0xffffffffffffffff
mov edx, dword [rsi]
lea r8, str.nw_in_read_len_zu______d__err_d
mov rcx, qword [rdi + 8]
mov r9, rbp
mov dword [rsp + 0x28], edx
mov rdx, qword [rdi]
mov dword [rsp + 0x20], ebx
call fcn.14008b390
mov rax, rbx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1401f66a0
add rsp, 0x148
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400bdd70
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x38
mov edx, reloc.WLDAP32.dll_Ordinal_41
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x48]
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

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

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x1c0
mov rax, qword [0x1402deca0]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rax, qword [rdx + 0x20]
mov rsi, rdx
mov rbx, qword [rcx + 0x10]
mov rcx, qword [rax + 0x2e8]
test dword [rcx + 0x84], 0x800
jne 0x1400bdee1
mov rcx, qword [rbx + 0x98]
lea r8, [rsp + 0x20]
xorps xmm0, xmm0
mov dword [rsp + 0x20], Ordinal_133
lea rdx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1400bde71
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.14009cd40
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.14008b200
mov eax, 2
jmp 0x1400bdee3
mov edx, dword [rsp + 0x20]
lea r9, [rbx + 0x144]
lea r8, [rbx + 0x114]
lea rcx, [rsp + 0x30]
call fcn.14008c0b0
test al, al
jne 0x1400bdee1
mov qword [rsp + 0x1e0], rdi
call fcn.140209894
mov ebx, dword [rax]
call fcn.140209894
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.14009cd40
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.14008b200
mov rdi, qword [rsp + 0x1e0]
mov eax, 2
jmp 0x1400bdee3
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1401f66a0
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1c0
pop rsi
ret