joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800d8120
Capabilities:
Query environment variable

Disassembly:
mov eax, Ordinal_41
call fcn.1800b7d60
sub rsp, rax
cmp dword [0x1804b838c], 0
jne 0x1800d8282
mov qword [rsp + 0x38], rbp
lea r8d, [rax + 8]
mov qword [rsp + 0x40], rsi
lea rcx, str.OPENSSL_ia32cap
mov qword [rsp + 0x20], rdi
lea rdi, [0x1804b8390]
mov rdx, rdi
mov dword [0x1804b838c], 1
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x2e
ja 0x1800d824e
movzx r11d, word [0x1804b8390]
xor ebp, ebp
mov eax, ebp
cmp r11w, 0x7e
sete al
lea rcx, [rdi + rax*2]
call fcn.1800d8750
mov rsi, rax
cmp r11w, 0x7e
jne 0x1800d81dd
mov qword [rsp + 0x30], rbx
lea rcx, [0x18051c200]
mov rbx, rax
call fcn.180004bf0
movzx r11d, word [0x1804b8390]
not rsi
and rsi, rax
bt rbx, 0x18
mov rbx, qword [rsp + 0x30]
jae 0x1800d81fb
movabs rax, 0xedfff7fdffffffff
and rsi, rax
jmp 0x1800d81fb
cmp r11w, 0x3a
jne 0x1800d81fb
lea rcx, [0x18051c200]
call fcn.180004bf0
movzx r11d, word [0x1804b8390]
mov rsi, rax
test r11w, r11w
je 0x1800d8217
cmp r11w, 0x3a
je 0x1800d821f
movzx r11d, word [rdi + 2]
add rdi, 2
test r11w, r11w
jne 0x1800d8201
mov dword [0x18051c208], ebp
jmp 0x1800d825d
cmp word [rdi + 2], 0x7e
sete bpl
lea rcx, [rbp + 1]
lea rcx, [rdi + rcx*2]
call fcn.1800d8750
cmp word [rdi + 2], 0x7e
jne 0x1800d8246
not eax
and dword [0x18051c208], eax
jmp 0x1800d825d
mov dword [0x18051c208], eax
jmp 0x1800d825d
lea rcx, [0x18051c200]
call fcn.180004bf0
mov rsi, rax
mov rdi, qword [rsp + 0x20]
mov eax, esi
mov rbp, qword [rsp + 0x38]
bts eax, 0xa
shr rsi, 0x20
mov dword [0x18051c204], esi
mov rsi, qword [rsp + 0x40]
mov dword [0x18051c200], eax
add rsp, 0x28
ret
Function at 0x1801c0cf0
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 0x1801c0d7a
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.1801d40f0
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 0x1801c0d1c
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 0x1801c12fd
call fcn.1801d6090
test al, al
jne 0x1801c12fd
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rsi
xor esi, esi
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdi + rbx], sil
jne 0x1801c1297
mov r8, rbx
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, rdi
call fcn.1801e04c0
test rax, rax
je 0x1801c12dc
sub rax, rdi
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov r8, rax
mov rcx, rdi
call fcn.1801e04c0
mov rsi, rax
test rax, rax
je 0x1801c12dc
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 0x1801c0cf0
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x1801c1270
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 0x1801c0d7a
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.1801d40f0
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 0x1801c0d1c
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 0x1801c12fd
call fcn.1801d6090
test al, al
jne 0x1801c12fd
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rsi
xor esi, esi
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdi + rbx], sil
jne 0x1801c1297
mov r8, rbx
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, rdi
call fcn.1801e04c0
test rax, rax
je 0x1801c12dc
sub rax, rdi
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov r8, rax
mov rcx, rdi
call fcn.1801e04c0
mov rsi, rax
test rax, rax
je 0x1801c12dc
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 0x1801c0cf0
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x1801cd8e0
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 0x1801cd99e
cmp qword [rcx + 0x268], 0
je 0x1801cd95e
mov qword [rsp + 0x40], rbx
call fcn.1801bb4b0
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.1801bb800
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.1801bb800
mov rbx, qword [rsp + 0x40]
jmp 0x1801cd99e
cmp esi, 2
ja 0x1801cd99e
mov r9, qword [rdi + 0x1d0]
lea rax, [0x1803ff748]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call fcn.180214b68
mov r9, qword [rdi + 0x1d0]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call fcn.180214b68
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x1801cd9c0
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 [0x18049d0e0]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp byte [rcx + 0xacf], 0
mov rdi, rcx
jne 0x1801cda03
cmp qword [rcx + 0x1e0], 0
je 0x1801cdaf1
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 0x1801cda69
cmp byte [rdi + 0x132b], 0
jne 0x1801cda69
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 0x1801cda50
mov byte [rdi + 0x132b], 1
mov byte [rsp + r9 + 0x30], 0xa
inc r9d
movsxd rsi, r9d
cmp rsi, 0x102
jae 0x1801cdb42
cmp byte [rdi + 0xacf], 0
mov byte [rsp + rsi + 0x30], 0
je 0x1801cdae9
cmp qword [rdi + 0x268], 0
je 0x1801cdb0a
mov rcx, rdi
mov qword [rsp + 0x158], rbx
call fcn.1801bb4b0
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.1801bb800
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.1801bb800
mov rbx, qword [rsp + 0x158]
mov rsi, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800b7d20
add rsp, 0x160
pop rdi
ret
mov r9, qword [rdi + 0x1d0]
lea rcx, [0x1803ff748]
mov edx, 2
lea r8d, [rdx - 1]
call fcn.180214b68
mov r9, qword [rdi + 0x1d0]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rsi
call fcn.180214b68
jmp 0x1801cdae9
call fcn.1800b815c
int3
Function at 0x1801cdd20
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x130
mov rax, qword [0x18049d0e0]
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.1801ce220
test rax, rax
jle 0x1801cdd72
mov dword [rbx], 0
jmp 0x1801cdddd
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 0x1801cddda
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2733
jne 0x1801cddaa
mov dword [rbx], 0x51
jmp 0x1801cddda
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.1801b6a30
mov r8, rax
lea rdx, str.Recv_failure:__s
mov rcx, rbp
call fcn.1801cd9c0
mov dword [rbp + 0xd8c], edi
mov dword [rbx], gethostname
mov rax, rsi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1800b7d20
add rsp, 0x130
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x130
mov rax, qword [0x18049d0e0]
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.1801ce390
test eax, eax
je 0x1801cde55
mov dword [rbx], reloc.WLDAP32.dll_Ordinal_27
or rax, 0xffffffffffffffff
jmp 0x1801cdec0
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 0x1801cdebd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2733
jne 0x1801cde8d
mov dword [rbx], 0x51
jmp 0x1801cdebd
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.1801b6a30
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, rbp
call fcn.1801cd9c0
mov dword [rbp + 0xd8c], edi
mov dword [rbx], gethostname
mov rax, rsi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1800b7d20
add rsp, 0x130
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1801ce390
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 0x1801ce46d
lea rax, [0x1801deaf0]
cmp qword [rdx + r9*8 + 0x1e0], rax
jne 0x1801ce46d
cmp qword [rbx], 0
je 0x1801ce3fb
test rdi, rdi
je 0x1801ce46d
or r8, 0xffffffffffffffff
xor r9d, r9d
or rdx, r8
mov rcx, rsi
call fcn.1801dffa0
cmp eax, 0xffffffff
je 0x1801ce46d
test al, 1
je 0x1801ce46d
cmp qword [rbx], 0
jne 0x1801ce44c
mov eax, dword [rbp + 0x6e4]
lea ecx, [rax + rax]
mov qword [rbx + 8], rcx
call qword [fcn.18020ffc8]
mov qword [rbx], rax
test rax, rax
jne 0x1801ce43e
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1801ce46f
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 0x1801ce46d
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 0x1801ceaf0
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.1801deab0
test al, al
je 0x1801ceb27
mov rdx, rbx
mov rcx, rdi
call fcn.1801c72d0
test eax, eax
jne 0x1801ceb58
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rbx + 0x1b8]
cmp rcx, 0xffffffffffffffff
je 0x1801ceb1a
mov r9d, 2
lea rdx, [rsp + 0x40]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x1801ceb58
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 0x1801cedb0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x1c8
mov rax, qword [0x18049d0e0]
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.18020d280
lea r8, [rsp + 0x20]
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1801cee34
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.1801b6a30
mov r8d, ebx
lea rdx, str.getsockname___failed_with_errno__d:__s
jmp 0x1801cee7b
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rbp
mov r8, rdi
call fcn.1801ce7c0
test al, al
jne 0x1801cee86
call fcn.180213e9c
mov rbx, rax
call fcn.180213e9c
mov ecx, dword [rbx]
lea rdx, [rsp + 0xb0]
mov r8d, 0x100
mov rdi, rax
call fcn.1801b6a30
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.1801cd9c0
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1800b7d20
add rsp, 0x1c8
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1801cf1e0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x180518b6c]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x1801cf244
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.1801fecb0
test al, al
je 0x1801cf238
mov dword [0x180518b6c], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x180518b6c], 1
jmp 0x1801cf249
cmp eax, 2
je 0x1801cf29b
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 0x1801cf27a
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x1801cf29b
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 0x1801cf510
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 [0x18049d0e0]
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 0x1801cf57f
cmp byte [rdx + 0x55d], 3
jne 0x1801cf57a
cmp byte [rdx + 0x348], al
jne 0x1801cf57f
call fcn.1801ceeb0
xor edx, edx
mov dword [rsp + 0x20], 0x80
mov r8d, 0x80
lea rcx, [rsp + 0x30]
call fcn.18020d280
lea r8, [rsp + 0x20]
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1801cf5e3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp - 0x20]
mov ecx, eax
mov ebx, eax
call fcn.1801b6a30
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, r15
call fcn.1801cd9c0
jmp 0x1801cf6ba
movzx ecx, word [rsp + 0x30]
sub ecx, 1
je 0x1801cf691
sub ecx, 1
je 0x1801cf62c
cmp ecx, 0x15
jne 0x1801cf638
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 0x1801cf638
movzx ecx, word [rsp + 0x32]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx esi, ax
jmp 0x1801cf6ba
lea rdx, [rsp + 0x34]
mov ecx, 2
jmp 0x1801cf605
mov qword [rsp + 0x238], rdi
xor esi, esi
mov byte [rbp - 0x50], 0
call fcn.180213e9c
mov dword [rax], 0x273f
call fcn.180213e9c
mov rbx, rax
call fcn.180213e9c
mov ecx, dword [rbx]
lea rdx, [rbp - 0x20]
mov r8d, 0x100
mov rdi, rax
call fcn.1801b6a30
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, r15
call fcn.1801cd9c0
mov rdi, qword [rsp + 0x238]
jmp 0x1801cf6ba
cmp dword [rsp + 0x20], 2
jle 0x1801cf6b4
lea r9, [rsp + 0x32]
mov edx, reloc.WLDAP32.dll_Ordinal_46
lea r8, [0x18046c200]
lea rcx, [rbp - 0x50]
call sym.gcm64.dll_curl_msnprintf
jmp 0x1801cf6b8
mov byte [rbp - 0x50], 0
xor esi, esi
mov r9d, esi
lea r8, [rbp - 0x50]
mov rdx, r14
mov rcx, r15
call fcn.1801cf0f0
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.1800b7d20
add rsp, 0x1f0
pop r15
pop r14
pop rsi
pop rbx
pop rbp
ret
Function at 0x1801d04f0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x18049d0e0]
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 0x1801d055f
mov r8, rdi
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d
mov rcx, rbx
call fcn.1801cdb50
jmp 0x1801d05ee
mov ecx, dword [rbx + 0xa44]
mov dword [rsp + 0x58], 1
call fcn.1801d0790
imul ecx, eax, 0x3e8
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rbx + 0xa48]
call fcn.1801d0790
imul ecx, eax, 0x3e8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], rsi
mov r9d, listen
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 0x1801d05ee
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.1801cdb50
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1800b7d20
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1801d0610
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x18049d0e0]
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 0x1801d0686
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.1801b6a30
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s
mov rcx, rbx
call fcn.1801cdb50
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800b7d20
add rsp, 0x150
pop rbx
ret

Function at 0x1801d0780
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call fcn.1802316dc
cdqe
add rsp, 0x28
ret
Function at 0x1801d0a70
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 0x1801d0a9a
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, [0x18032cd54]
mov rcx, rbx
mov r14, rax
call fcn.180225abc
test rax, rax
je 0x1801d0afd
mov rcx, rbx
test r14, r14
je 0x1801d0ae7
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 0x1801d0b35
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1801d0b35
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 0x1801d0bf8
mov qword [rsp + 0x40], rsi
or rsi, 0xffffffffffffffff
mov rdx, rsi
nop dword [rax + rax]
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x1801d0b60
lea ecx, [rax + 1]
add rcx, rdx
call qword [fcn.18020ffc8]
mov rdi, rax
test rax, rax
je 0x1801d0bea
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1801d0bea
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x1801d0b90
mov ecx, 0x5c
mov word [rax + rdi], cx
cmp byte [rdi + rsi + 1], bpl
lea rsi, [rsi + 1]
jne 0x1801d0ba4
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 0x1801d0bc0
mov rcx, rdi
test r14, r14
je 0x1801d0be1
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x1801d0be7
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [fcn.18020f070]
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 0x1801d0c60
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x18049d0e0]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x1801d0cc6
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1801d0ca9
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x1801d0ca3
shr ax, 8
cmp al, 2
je 0x1801d0cc6
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1800b7d20
add rsp, 0x1e8
ret
lea rcx, str.iphlpapi.dll
call fcn.1801d0a70
mov qword [0x180518b78], rax
test rax, rax
je 0x1801d0d03
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x180518b70]
test rax, rax
cmovne rcx, rax
mov qword [0x180518b70], rcx
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.1801fecb0
test al, al
lea rcx, [0x18051fe70]
setne byte [0x18051fe6e]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1800b7d20
add rsp, 0x1e8
ret

Function at 0x1801d6c50
Capabilities:
Convert ip address from string

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

Function at 0x1801d7130
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 0x1801d7150
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 0x1801d719c
xor eax, eax
jmp 0x1801d7222
mov eax, dword [rsp + 0x40]
lea rcx, [rbx + 0x41]
mov edx, 1
mov dword [rsp + 0x24], eax
call qword [fcn.180213ef0]
mov rbx, rax
test rax, rax
je 0x1801d7195
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 0x1801d7200
mov rdx, rdi
mov ecx, esi
call fcn.1801d7240
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