joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801b6370
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
mov rbx, rdx
mov rcx, qword [0x18051e6f0]
test rcx, rcx
je 0x1801b642d
mov r8, rdx
lea rdx, [0x180400378]
call fcn.1800ac140
mov ecx, 1
call fcn.180216c38
mov rcx, qword [0x18051e6f0]
cmp rcx, rax
je 0x1801b6428
mov eax, dword [0x18051e708]
inc eax
cmp eax, dword [0x1804aca60]
mov dword [0x18051e708], eax
jl 0x1801b6428
call fcn.180217070
mov rcx, qword [0x18051e700]
call fcn.1802221b4
mov rdx, qword [0x18051e700]
mov rcx, qword [0x18051e6f8]
call fcn.1802254fc
mov rcx, qword [0x18051e6f8]
lea rdx, [0x180400344]
call fcn.18021749c
mov qword [0x18051e6f0], rax
test rax, rax
jne 0x1801b641c
lea ecx, [rax + 1]
call fcn.180216c38
mov qword [0x18051e6f0], rax
mov dword [0x18051e708], 0
jmp 0x1801b642d
call fcn.180217290
mov rax, qword [0x18051e710]
test rax, rax
je 0x1801b6440
mov rdx, rbx
mov ecx, edi
call rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1801b6450
Capabilities:
Move file

Disassembly:
push rbx
sub rsp, 0x20
xor eax, eax
mov ebx, ecx
mov ecx, dword [0x1804aca64]
mov r8d, eax
cmp ecx, 0xffffffff
jne 0x1801b6470
cmp ebx, dword [reloc.WS2_32.dll_closesocket]
jmp 0x1801b6472
cmp ebx, ecx
setge r8b
test r8d, r8d
je 0x1801b64aa
cmp qword [0x18051e6f0], 0
jne 0x1801b648f
cmp qword [0x18051e710], 0
je 0x1801b649b
mov rcx, rdx
call fcn.1801b6210
add rax, 7
mov rdx, rax
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp fcn.1801b6370
add rsp, 0x20
pop rbx
ret
Function at 0x1801c3910
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0x1505
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x50], rax
jae 0x1801c399a
mov rax, qword [rsp + 0x28]
shl rax, 5
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax]
mov byte [rsp + 0x20], al
movzx ecx, byte [rsp + 0x20]
call fcn.1801d6d20
movsx rax, al
mov rcx, qword [rsp + 0x28]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
inc rax
mov qword [rsp + 0x50], rax
jmp 0x1801c393c
xor edx, edx
mov rax, qword [rsp + 0x28]
mov ecx, 0x100
div rcx
mov rax, rdx
add rsp, 0x48
ret
push rdi
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
je 0x1801c3f1d
call fcn.1801d8cd0
test al, al
jne 0x1801c3f1d
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rsi
xor esi, esi
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdi + rbx], sil
jne 0x1801c3eb7
mov r8, rbx
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, rdi
call fcn.1801e3100
test rax, rax
je 0x1801c3efc
sub rax, rdi
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov r8, rax
mov rcx, rdi
call fcn.1801e3100
mov rsi, rax
test rax, rax
je 0x1801c3efc
inc rsi
mov rcx, rdi
sub rcx, rsi
add rbx, rcx
test rsi, rsi
mov rdx, rbx
cmovne rdi, rsi
mov rcx, rdi
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x1801c3910
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x1801c3e90
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0x1505
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x50], rax
jae 0x1801c399a
mov rax, qword [rsp + 0x28]
shl rax, 5
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax]
mov byte [rsp + 0x20], al
movzx ecx, byte [rsp + 0x20]
call fcn.1801d6d20
movsx rax, al
mov rcx, qword [rsp + 0x28]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
inc rax
mov qword [rsp + 0x50], rax
jmp 0x1801c393c
xor edx, edx
mov rax, qword [rsp + 0x28]
mov ecx, 0x100
div rcx
mov rax, rdx
add rsp, 0x48
ret
push rdi
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
je 0x1801c3f1d
call fcn.1801d8cd0
test al, al
jne 0x1801c3f1d
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rsi
xor esi, esi
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdi + rbx], sil
jne 0x1801c3eb7
mov r8, rbx
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, rdi
call fcn.1801e3100
test rax, rax
je 0x1801c3efc
sub rax, rdi
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov r8, rax
mov rcx, rdi
call fcn.1801e3100
mov rsi, rax
test rax, rax
je 0x1801c3efc
inc rsi
mov rcx, rdi
sub rcx, rsi
add rbx, rcx
test rsi, rsi
mov rdx, rbx
cmovne rdi, rsi
mov rcx, rdi
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x1801c3910
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x1801d0510
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0xacf], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x1801d05ce
cmp qword [rcx + 0x268], 0
je 0x1801d058e
mov qword [rsp + 0x40], rbx
call fcn.1801be0d0
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.1801be420
mov rcx, qword [rdi + 0x1d8]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x268]
movzx edx, bl
mov rcx, rdi
call fcn.1801be420
mov rbx, qword [rsp + 0x40]
jmp 0x1801d05ce
cmp esi, 2
ja 0x1801d05ce
mov r9, qword [rdi + 0x1d0]
lea rax, [0x180403fb8]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call fcn.1802176e8
mov r9, qword [rdi + 0x1d0]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call fcn.1802176e8
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x1801d05f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x160
mov rax, qword [0x1804a20e0]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp byte [rcx + 0xacf], 0
mov rdi, rcx
jne 0x1801d0633
cmp qword [rcx + 0x1e0], 0
je 0x1801d0721
mov r8, rdx
mov qword [rsp + 0x150], rsi
mov edx, 0x100
lea r9, [rsp + 0x180]
lea rcx, [rsp + 0x30]
call sym.gcm64.dll_curl_mvsnprintf
mov rdx, qword [rdi + 0x1e0]
movsxd r9, eax
test rdx, rdx
je 0x1801d0699
cmp byte [rdi + 0x132b], 0
jne 0x1801d0699
lea r8, [rsp + 0x30]
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r8]
lea r8, [r8 + 1]
mov byte [rdx], cl
lea rdx, [rdx + 1]
test cl, cl
jne 0x1801d0680
mov byte [rdi + 0x132b], 1
mov byte [rsp + r9 + 0x30], 0xa
inc r9d
movsxd rsi, r9d
cmp rsi, 0x102
jae 0x1801d0772
cmp byte [rdi + 0xacf], 0
mov byte [rsp + rsi + 0x30], 0
je 0x1801d0719
cmp qword [rdi + 0x268], 0
je 0x1801d073a
mov rcx, rdi
mov qword [rsp + 0x158], rbx
call fcn.1801be0d0
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.1801be420
mov rdx, qword [rdi + 0x1d8]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rdx
mov r9, rsi
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x268]
movzx edx, bl
mov rcx, rdi
call fcn.1801be420
mov rbx, qword [rsp + 0x158]
mov rsi, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800b8140
add rsp, 0x160
pop rdi
ret
mov r9, qword [rdi + 0x1d0]
lea rcx, [0x180403fb8]
mov edx, 2
lea r8d, [rdx - 1]
call fcn.1802176e8
mov r9, qword [rdi + 0x1d0]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rsi
call fcn.1802176e8
jmp 0x1801d0719
call fcn.1800b857c
int3
Function at 0x1801d0950
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x130
mov rax, qword [0x1804a20e0]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rbx, qword [rsp + 0x180]
mov rbp, rcx
mov rcx, qword [rcx + 0x18]
mov rsi, r9
movsxd rax, edx
mov rdi, r8
mov r14, qword [rcx + rax*8 + 0x1b8]
call fcn.1801d0e50
test rax, rax
jle 0x1801d09a2
mov dword [rbx], 0
jmp 0x1801d0a0d
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rsi, eax
mov dword [rbx], 0
cmp rsi, 0xffffffffffffffff
jne 0x1801d0a0a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2733
jne 0x1801d09da
mov dword [rbx], 0x51
jmp 0x1801d0a0a
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.1801b9650
mov r8, rax
lea rdx, str.Recv_failure:__s
mov rcx, rbp
call fcn.1801d05f0
mov dword [rbp + 0xd8c], edi
mov dword [rbx], gethostname
mov rax, rsi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1800b8140
add rsp, 0x130
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x130
mov rax, qword [0x1804a20e0]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rbx, qword [rsp + 0x180]
mov rdi, r8
movsxd r8, edx
mov rsi, r9
mov rdx, qword [rcx + 0x18]
mov rbp, rcx
mov r14, qword [rdx + r8*8 + 0x1b8]
call fcn.1801d0fc0
test eax, eax
je 0x1801d0a85
mov dword [rbx], reloc.WLDAP32.dll_Ordinal_27
or rax, 0xffffffffffffffff
jmp 0x1801d0af0
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
movsxd rsi, eax
mov dword [rbx], 0
cmp rsi, 0xffffffffffffffff
jne 0x1801d0aed
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2733
jne 0x1801d0abd
mov dword [rbx], 0x51
jmp 0x1801d0aed
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.1801b9650
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, rbp
call fcn.1801d05f0
mov dword [rbp + 0xd8c], edi
mov dword [rbx], gethostname
mov rax, rsi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1800b8140
add rsp, 0x130
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1801d0fc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movsxd r9, r8d
lea rbx, [rdx + 0x210]
mov rax, r9
mov rbp, rcx
shl rax, 5
add rbx, rax
mov rax, qword [rdx + 0x370]
mov rsi, qword [rdx + r9*8 + 0x1b8]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x84], 3
je 0x1801d109d
lea rax, [0x1801e1730]
cmp qword [rdx + r9*8 + 0x1e0], rax
jne 0x1801d109d
cmp qword [rbx], 0
je 0x1801d102b
test rdi, rdi
je 0x1801d109d
or r8, 0xffffffffffffffff
xor r9d, r9d
or rdx, r8
mov rcx, rsi
call fcn.1801e2be0
cmp eax, 0xffffffff
je 0x1801d109d
test al, 1
je 0x1801d109d
cmp qword [rbx], 0
jne 0x1801d107c
mov eax, dword [rbp + 0x6e4]
lea ecx, [rax + rax]
mov qword [rbx + 8], rcx
call qword [fcn.180212b48]
mov qword [rbx], rax
test rax, rax
jne 0x1801d106e
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1801d109f
mov rdi, qword [rbx + 8]
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov rdx, qword [rbx]
xor r9d, r9d
add rdx, qword [rbx + 0x10]
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x1801d109d
add qword [rbx + 0x10], rcx
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
xor edx, edx
call fcn.1801e16f0
test al, al
je 0x1801d1757
mov rdx, rbx
mov rcx, rdi
call fcn.1801c9f00
test eax, eax
jne 0x1801d1788
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rbx + 0x1b8]
cmp rcx, 0xffffffffffffffff
je 0x1801d174a
mov r9d, 2
lea rdx, [rsp + 0x40]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x1801d1788
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov al, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1801d19e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x1c8
mov rax, qword [0x1804a20e0]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rdi, r8
mov dword [rsp + 0x20], 0x80
mov rbx, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x80
mov rbp, r9
call fcn.18020fe90
lea r8, [rsp + 0x20]
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1801d1a64
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.1801b9650
mov r8d, ebx
lea rdx, str.getsockname___failed_with_errno__d:__s
jmp 0x1801d1aab
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rbp
mov r8, rdi
call fcn.1801d13f0
test al, al
jne 0x1801d1ab6
call fcn.180216a1c
mov rbx, rax
call fcn.180216a1c
mov ecx, dword [rbx]
lea rdx, [rsp + 0xb0]
mov r8d, 0x100
mov rdi, rax
call fcn.1801b9650
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.1801d05f0
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1800b8140
add rsp, 0x1c8
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1801d1e10
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x18059bf0c]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x1801d1e74
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.1802018f0
test al, al
je 0x1801d1e68
mov dword [0x18059bf0c], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x18059bf0c], 1
jmp 0x1801d1e79
cmp eax, 2
je 0x1801d1ecb
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 0x1801d1eaa
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x1801d1ecb
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 0x1801d2140
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbp
push rbx
push rsi
push r14
push r15
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov rax, qword [0x1804a20e0]
xor rax, rsp
mov qword [rbp + 0xe0], rax
xor eax, eax
or esi, 0xffffffff
mov rbx, r8
mov r14, rdx
mov r15, rcx
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x28], eax
mov word [rbp - 0x24], ax
cmp byte [rdx + 0x337], al
jne 0x1801d21af
cmp byte [rdx + 0x55d], 3
jne 0x1801d21aa
cmp byte [rdx + 0x348], al
jne 0x1801d21af
call fcn.1801d1ae0
xor edx, edx
mov dword [rsp + 0x20], 0x80
mov r8d, 0x80
lea rcx, [rsp + 0x30]
call fcn.18020fe90
lea r8, [rsp + 0x20]
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1801d2213
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp - 0x20]
mov ecx, eax
mov ebx, eax
call fcn.1801b9650
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, r15
call fcn.1801d05f0
jmp 0x1801d22ea
movzx ecx, word [rsp + 0x30]
sub ecx, 1
je 0x1801d22c1
sub ecx, 1
je 0x1801d225c
cmp ecx, 0x15
jne 0x1801d2268
lea rdx, [rsp + 0x38]
mov ecx, reloc.WS2_32.dll_socket
lea r8, [rbp - 0x50]
mov r9d, reloc.WLDAP32.dll_Ordinal_46
call sub.WS2_32.dll_inet_ntop
test rax, rax
je 0x1801d2268
movzx ecx, word [rsp + 0x32]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx esi, ax
jmp 0x1801d22ea
lea rdx, [rsp + 0x34]
mov ecx, 2
jmp 0x1801d2235
mov qword [rsp + 0x238], rdi
xor esi, esi
mov byte [rbp - 0x50], 0
call fcn.180216a1c
mov dword [rax], 0x273f
call fcn.180216a1c
mov rbx, rax
call fcn.180216a1c
mov ecx, dword [rbx]
lea rdx, [rbp - 0x20]
mov r8d, 0x100
mov rdi, rax
call fcn.1801b9650
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, r15
call fcn.1801d05f0
mov rdi, qword [rsp + 0x238]
jmp 0x1801d22ea
cmp dword [rsp + 0x20], 2
jle 0x1801d22e4
lea r9, [rsp + 0x32]
mov edx, reloc.WLDAP32.dll_Ordinal_46
lea r8, [0x180470708]
lea rcx, [rbp - 0x50]
call sym.gcm64.dll_curl_msnprintf
jmp 0x1801d22e8
mov byte [rbp - 0x50], 0
xor esi, esi
mov r9d, esi
lea r8, [rbp - 0x50]
mov rdx, r14
mov rcx, r15
call fcn.1801d1d20
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.1800b8140
add rsp, 0x1f0
pop r15
pop r14
pop rsi
pop rbx
pop rbp
ret
Function at 0x1801d3120
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1804a20e0]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor esi, esi
mov dword [rsp + 0x20], 4
mov eax, esi
lea r9, [rsp + 0x50]
cmp byte [rcx + 0xada], al
mov rdi, rdx
mov rbx, rcx
mov edx, 0xffff
setne al
lea r8d, [rsi + 8]
mov rcx, rdi
mov dword [rsp + 0x50], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1801d318f
mov r8, rdi
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d
mov rcx, rbx
call fcn.1801d0780
jmp 0x1801d321e
mov ecx, dword [rbx + 0xa44]
mov dword [rsp + 0x58], 1
call fcn.1801d33e0
imul ecx, eax, 0x3e8
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rbx + 0xa48]
call fcn.1801d33e0
imul ecx, eax, 0x3e8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], rsi
mov r9d, recvfrom
mov qword [rsp + 0x30], rax
mov edx, 0x98000004
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x60], ecx
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x1801d321e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, edi
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
mov r9d, eax
mov rcx, rbx
call fcn.1801d0780
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1800b8140
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1801d3240
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x1804a20e0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rax, rdx
mov dword [rsp + 0x30], 1
mov edx, 6
mov dword [rsp + 0x20], 4
mov rbx, rcx
lea r9, [rsp + 0x30]
mov rcx, rax
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1801d32b6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.1801b9650
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s
mov rcx, rbx
call fcn.1801d0780
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800b8140
add rsp, 0x150
pop rbx
ret

Function at 0x1801d33b0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call fcn.1802349c4
cdqe
add rsp, 0x28
ret
Function at 0x1801d36a0
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x1801d36ca
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x18032fe9c]
mov rcx, rbx
mov r14, rax
call fcn.180228c70
test rax, rax
je 0x1801d372d
mov rcx, rbx
test r14, r14
je 0x1801d3717
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x1801d3765
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1801d3765
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x1801d3828
mov qword [rsp + 0x40], rsi
or rsi, 0xffffffffffffffff
mov rdx, rsi
nop dword [rax + rax]
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x1801d3790
lea ecx, [rax + 1]
add rcx, rdx
call qword [fcn.180212b48]
mov rdi, rax
test rax, rax
je 0x1801d381a
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1801d381a
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x1801d37c0
mov ecx, 0x5c
mov word [rax + rdi], cx
cmp byte [rdi + rsi + 1], bpl
lea rsi, [rsi + 1]
jne 0x1801d37d4
lea rcx, [rsi + rdi]
sub rcx, rbx
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x1801d37f0
mov rcx, rdi
test r14, r14
je 0x1801d3811
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x1801d3817
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [fcn.180211bf4]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x1801d3890
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x1804a20e0]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x1801d38f6
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1801d38d9
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x1801d38d3
shr ax, 8
cmp al, 2
je 0x1801d38f6
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1800b8140
add rsp, 0x1e8
ret
lea rcx, str.iphlpapi.dll
call fcn.1801d36a0
mov qword [0x18059bf18], rax
test rax, rax
je 0x1801d3933
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18059bf10]
test rax, rax
cmovne rcx, rax
mov qword [0x18059bf10], rcx
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.1802018f0
test al, al
lea rcx, [0x1805a3258]
setne byte [0x1805a3250]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1800b8140
add rsp, 0x1e8
ret

Function at 0x1801d9890
Capabilities:
Convert ip address from string

Disassembly:
cmp qword [rsp + 0x28], 0
mov qword [r9], 0
jge 0x1801d98a5
mov eax, 0xfffffffe
ret
mov qword [rsp + 0x28], r9
mov r9b, 1
jmp fcn.1801d9550

Function at 0x1801d9d70
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov esi, ecx
or rbx, 0xffffffffffffffff
nop dword [rax]
cmp byte [rdx + rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x1801d9d90
xor eax, eax
mov ebp, 2
mov qword [rsp + 0x20], rax
mov word [rsp + 0x20], bp
mov qword [rsp + 0x28], rax
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rsp + 0x40]
mov ecx, ebp
lea rdx, str.127.0.0.1
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jge 0x1801d9ddc
xor eax, eax
jmp 0x1801d9e62
mov eax, dword [rsp + 0x40]
lea rcx, [rbx + 0x41]
mov edx, 1
mov dword [rsp + 0x24], eax
call qword [fcn.180216a70]
mov rbx, rax
test rax, rax
je 0x1801d9dd5
movups xmm0, xmmword [rsp + 0x20]
mov dword [rax], 0
mov rdx, rdi
mov dword [rax + 4], ebp
mov dword [rax + 8], 1
mov dword [rax + 0xc], 6
mov dword [rax + reloc.WS2_32.dll_recv], 0x10
add rax, 0x30
mov qword [rbx + 0x20], rax
movups xmmword [rax], xmm0
mov rcx, qword [rbx + 0x20]
add rcx, 0x10
mov qword [rbx + 0x18], rcx
nop dword [rax + rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
mov byte [rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x1801d9e40
mov rdx, rdi
mov ecx, esi
call fcn.1801d9e80
mov qword [rbx + 0x28], rax
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret