joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180118320
Capabilities:
Get socket status

Disassembly:
push rbp
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x5a8]
sub rsp, 0x6a8
mov rax, qword [0x180272190]
xor rax, rsp
mov qword [rbp + 0x580], rax
xor edi, edi
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x30], rdi
mov esi, r9d
mov r15, r8
mov r14, rdx
mov r13, rcx
cmp rcx, 0xffffffffffffffff
jne 0x18011837f
cmp rdx, rcx
jne 0x18011837f
cmp r8, rcx
jne 0x18011837f
mov ecx, r9d
call fcn.180118650
jmp 0x180118628
mov qword [rsp + 0x6a0], rbx
mov qword [rsp + 0x698], r12
test esi, esi
jle 0x18011839d
call fcn.180110cd0
mov rbx, rax
jmp 0x1801183a2
mov rbx, qword [rsp + 0x30]
test esi, esi
mov r9, 0xffffffffffffffff
mov r12d, esi
mov ecx, edi
cmovle r12d, edi
mov dword [rbp + 0x160], ecx
lea eax, [r9 + 2]
cmp r13, r9
je 0x1801183da
mov qword [rbp + 0x168], r13
mov ecx, eax
mov dword [rbp + 0x160], eax
mov r9, r13
mov qword [rsp + 0x58], r13
mov dword [rsp + 0x50], ecx
mov r8d, ecx
cmp r14, 0xffffffffffffffff
je 0x180118461
mov edx, edi
test ecx, ecx
je 0x180118402
nop dword [rax]
mov eax, edx
cmp qword [rbp + rax*8 + 0x168], r14
je 0x180118402
inc edx
cmp edx, ecx
jb 0x1801183f0
cmp edx, ecx
jne 0x18011841b
cmp ecx, 0x40
jae 0x18011841b
mov eax, edx
mov qword [rbp + rax*8 + 0x168], r14
inc dword [rbp + 0x160]
mov edx, edi
test ecx, ecx
je 0x180118430
mov eax, edx
cmp qword [rsp + rax*8 + 0x58], r14
je 0x180118430
inc edx
cmp edx, ecx
jb 0x180118421
mov dword [rsp + 0x50], ecx
cmp edx, ecx
jne 0x180118455
mov dword [rsp + 0x50], ecx
cmp ecx, 0x40
jae 0x180118455
mov eax, edx
mov qword [rsp + rax*8 + 0x58], r14
mov r8d, dword [rsp + 0x50]
inc r8d
mov dword [rsp + 0x50], r8d
cmp r14, r9
mov eax, 1
cmova r9, r14
mov dword [rbp + 0x370], edi
cmp r15, 0xffffffffffffffff
je 0x1801184ae
mov qword [rbp + 0x378], r15
mov ecx, edi
mov dword [rbp + 0x370], eax
test r8d, r8d
je 0x180118491
mov eax, ecx
cmp qword [rsp + rax*8 + 0x58], r15
je 0x180118491
inc ecx
cmp ecx, r8d
jb 0x180118481
cmp ecx, r8d
jne 0x1801184a7
cmp r8d, 0x40
jae 0x1801184a7
mov eax, ecx
mov qword [rsp + rax*8 + 0x58], r15
inc dword [rsp + 0x50]
cmp r15, r9
cmova r9, r15
test esi, esi
lea r13, [rsp + 0x30]
lea r10d, [r9 + 1]
cmovs r13, rdi
mov dword [rsp + 0x38], r10d

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x180118c2b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov edx, 0x51
cmp eax, 0x2733
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x180118cf0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
movsxd rax, edx
mov r10, r9
mov r11, r8
mov rdi, rcx
xor r9d, r9d
mov r8d, r10d
mov rdx, r11
mov rcx, qword [rcx + rax*8 + 0x190]
call qword [sym.imp.WS2_32.dll_send]
mov r14, qword [rsp + 0x50]
movsxd rsi, eax
mov dword [r14], 0
cmp rsi, 0xffffffffffffffff
jne 0x180118d9c
mov qword [rsp + 0x30], rbx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x180118d6b
mov dword [r14], 0x51
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov edx, ebx
mov rcx, rdi
call fcn.180124a70
mov rcx, qword [rdi]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.180118930
mov rcx, qword [rdi]
mov rax, rsi
mov dword [rcx + 0x87d4], ebx
mov dword [r14], gethostname
jmp 0x180118d55
mov rdi, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret

Function at 0x180119010
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r10, qword [rcx + 0x1f8]
mov rdi, r9
mov rsi, r8
mov rbx, rcx
test r10, r10
je 0x180119053
mov rax, qword [rcx + 0x150]
mov qword [rsp + 0x20], rax
call r10
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp edx, 2
ja 0x180119096
mov r9, qword [rbx + 0x148]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x1801b0380]
add rcx, rax
lea r8d, [rdx - 1]
call fcn.18016a114
mov r9, qword [rbx + 0x148]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call fcn.18016a114
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, qword [rcx + 0x768]
mov rsi, rdx
mov rdi, rcx
test rbx, rbx
je 0x18011937a
mov rcx, qword [rcx + 0x18]
test rcx, rcx
je 0x18011937a
mov qword [rsp + 0x20], rbx
lea r8, [0x180119f20]
mov dword [rsp + 0x28], 0
lea rdx, [rsp + 0x20]
mov rcx, qword [rcx + 0xb8]
call fcn.180121b60
cmp dword [rsp + 0x28], 0
jne 0x180119343
mov qword [rdi + 0x768], 0
jmp 0x18011937a
test rsi, rsi
je 0x18011934b
mov qword [rsi], rbx
cmp dword [rbx + 0x1c8], 0
mov rdi, qword [rbx + 0x190]
jne 0x18011937a
mov r9d, 2
lea rdx, [rsp + 0x40]
mov rcx, rdi
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
mov rax, rdi
jne 0x180119381
mov rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180119680
Capabilities:
Check os version
Set socket configuration

Disassembly:
push rbx
sub rsp, 0xf0
mov rax, qword [0x180272190]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov eax, dword [0x18027e27c]
mov rbx, rcx
mov dword [rsp + 0x34], 0x4020
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x38], 4
test eax, eax
jne 0x18011970c
xor edx, edx
lea rcx, [rsp + 0x44]
mov r8d, 0x90
call fcn.180154c10
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], __WSAFDIsSet
mov dword [0x18027e27c], 1
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x180119706
cmp dword [rsp + 0x44], 6
jb 0x180119706
mov dword [0x18027e27c], 2
jmp 0x180119763
mov eax, dword [0x18027e27c]
cmp eax, 2
je 0x180119763
lea rax, [rsp + 0x38]
mov edx, 0xffff
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x180119742
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x30], eax
jg 0x180119763
lea r9, [rsp + 0x34]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1801525d0
add rsp, 0xf0
pop rbx
ret

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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x180272190]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp dword [rcx + 0x244], 0
mov rbx, rdx
mov rsi, qword [rcx]
mov rdi, rcx
jne 0x180119a80
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], pe_nt_image_headers64
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x1801199a5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.180124a70
mov r9, rax
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.180118930
jmp 0x180119a88
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], pe_nt_image_headers64
lea rdx, [rsp + 0xb0]
mov rcx, rbx
Function at 0x180119fc0
Capabilities:
Connect socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xd0
mov rax, qword [0x180272190]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rsi, qword [rcx]
mov r15, r8
mov qword [r8], 0xffffffffffffffff
xor r12d, r12d
mov dword [r9], r12d
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x20]
mov rdi, rcx
call fcn.180119780
test eax, eax
jne 0x18011a1fb
lea rbx, [rdi + 0xde]
mov rdx, rbx
lea r8, [rdi + 0x10c]
lea rcx, [rsp + 0x40]
call fcn.180119f40
test eax, eax
jne 0x18011a069
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.180124a70
mov r9, rax
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.180118930
mov rdx, qword [rsp + 0x20]
mov rcx, rdi
call fcn.1801190b0
jmp 0x18011a1fb
movups xmm0, xmmword [rbx]
mov eax, dword [rbx + 0x28]
lea r8, [rdi + 0x60]
movups xmm1, xmmword [rbx + 0x10]
lea rdx, str.__Trying__s..._n
mov rcx, rsi
movups xmmword [rdi + 0x60], xmm0
movsd xmm0, qword [rbx + 0x20]
movups xmmword [rdi + 0x70], xmm1
movsd qword [rdi + 0x80], xmm0
mov dword [rdi + 0x88], eax
movzx eax, word [rbx + 0x2c]
mov word [rdi + 0x8c], ax
call fcn.180118a00
mov rcx, rdi
call fcn.1801195c0
mov rbx, qword [rsp + 0x20]
cmp dword [rsi + 0x44c], r12d
je 0x18011a0cd
mov rdx, rbx
mov rcx, rdi
call fcn.18011a340
mov rcx, rbx
call fcn.180119680
cmp dword [rsi + 0x5fc], r12d
je 0x18011a0e9
mov rdx, rbx
mov rcx, rsi
call fcn.18011a220
mov rax, qword [rsi + 0x208]
test rax, rax
je 0x18011a10d
mov rcx, qword [rsi + 0x210]
xor r8d, r8d
mov rdx, rbx
call rax
cmp eax, 2
jne 0x18011a13e
lea r12d, [rax - 1]
mov r8d, dword [rsp + 0x30]
mov rdx, rbx
mov rcx, rdi
call fcn.180119ab0
mov ebp, eax
test eax, eax
je 0x18011a157
mov rdx, rbx
mov rcx, rdi
call fcn.1801190b0
cmp ebp, 1
je 0x18011a1fb
mov eax, ebp
jmp 0x18011a1fd
test eax, eax
je 0x18011a10d
mov rdx, rbx
mov rcx, rdi
call fcn.1801190b0
mov eax, Ordinal_46
jmp 0x18011a1fd
mov edx, 1
mov rcx, rbx
call fcn.180138cf0
call fcn.180110cd0
cmp dword [rdi + 0x2ac], 1
mov qword [rdi + 0x2a4], rax
jle 0x18011a187
mov edx, dword [rdi + 0x2b0]
mov rcx, rsi
call fcn.18010c8b0
test r12d, r12d
jne 0x18011a1f8
cmp dword [rdi + 0x94], 1
jne 0x18011a1f8
mov r8d, dword [rsp + 0x3c]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x18011a1f8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp eax, 0xb
je 0x18011a1f8
lea ecx, [rax - 0x2733]
cmp ecx, 1
jbe 0x18011a1f8
mov edx, eax
mov rcx, rdi
call fcn.180124a70
mov r9, rax
lea r8, [rdi + 0x60]
lea rdx, str.Failed_to_connect_to__s:__s
mov rcx, rsi
call fcn.180118930
mov rdx, rbx
mov dword [rsi + 0x87d4], ebp
mov rcx, rdi
call fcn.1801190b0
jmp 0x18011a1fb
mov qword [r15], rbx
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1801525d0
add rsp, 0xd0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18011a220
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x180272190]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor esi, esi
mov dword [rsp + 0x20], 4
mov eax, esi
lea r9, [rsp + 0x50]
cmp dword [rcx + 0x5fc], eax
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 0x18011a28f
mov r8, rdi
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov rcx, rbx
call fcn.180118a00
jmp 0x18011a31e
mov ecx, dword [rbx + 0x600]
mov dword [rsp + 0x58], 1
call fcn.1801218c0
imul ecx, eax, 0x3e8
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rbx + 0x604]
call fcn.1801218c0
imul ecx, eax, 0x3e8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], rsi
mov r9d, ntohs
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 0x18011a31e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, edi
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
mov r9d, eax
mov rcx, rbx
call fcn.180118a00
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1801525d0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x18011a340
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [rcx]
lea r9, [rsp + 0x40]
mov r10, rdx
mov dword [rsp + 0x20], 4
mov edx, 6
mov rdi, rcx
mov rcx, r10
mov eax, dword [rbx + 0x44c]
mov dword [rsp + 0x40], eax
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x18011a3ad
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
call fcn.180124a70
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
call fcn.180118a00
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.180118a00
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x180124490
Capabilities:
Parse pe header

Disassembly:
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x1801244af
lea r8, [0x180000000]
cdqe
mov edx, dword [r8 + rax*4 + 0x124504]
add rdx, r8
jmp rdx
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, Ordinal_79
ret
mov al, reloc.WLDAP32.dll_Ordinal_79
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
movzx eax, cl
ret

Function at 0x180124630
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push r12
push r14
push r15
sub rsp, 0x20
xor r12d, r12d
mov r15, r9
mov qword [r9], r12
mov esi, r12d
lea r9, [rsp + 0x68]
mov r14d, r12d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebp, eax
test eax, eax
jne 0x1801247a8
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x180124791
mov qword [rsp + 0x58], rdi
nop dword [rax]
cmp dword [rbx + 4], 2
jne 0x180124728
cmp qword [rbx + 0x20], r12
je 0x180124728
cmp qword [rbx + 0x10], 0x10
jb 0x180124728
mov ecx, gethostbyname
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x180124761
mov ecx, dword [rbx]
mov dword [rax], ecx
mov ecx, dword [rbx + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rbx + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rbx + 0xc]
mov dword [rax + 0xc], ecx
mov ecx, reloc.WS2_32.dll_recv
mov dword [rax + reloc.WS2_32.dll_recv], 0x10
mov qword [rax + 0x20], r12
mov qword [rax + 0x18], r12
mov qword [rax + 0x28], r12
call qword [section..data]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x180124751
mov rcx, qword [rbx + 0x20]
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x180124715
call qword [case.0x180110b34.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x180124737
test rsi, rsi
cmove rsi, rdi
test r14, r14
je 0x180124725
mov qword [r14 + 0x28], rdi
mov r14, rdi
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x180124680
jmp 0x180124766
mov rcx, qword [rdi + 0x20]
mov ebp, 8
call qword [fcn.18015d8ec]
mov rcx, rdi
call qword [fcn.18015d8ec]
jmp 0x180124766
mov rcx, rdi
mov ebp, 8
call qword [fcn.18015d8ec]
jmp 0x180124766
mov ebp, 8
mov rcx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x58]
test rcx, rcx
je 0x18012477b
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x18012478c
mov rcx, rsi
call fcn.1801245e0
mov rsi, r12
jmp 0x18012479e
test rsi, rsi
jne 0x18012479e
mov ebp, 0x2af9
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rbx, qword [rsp + 0x50]
mov eax, ebp
mov qword [r15], rsi
add rsp, 0x20
pop r15
pop r14
pop r12
pop rsi
pop rbp
ret
Function at 0x180125630
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x28
mov rax, r8
mov r10, rdx
cmp ecx, 2
je 0x180125651
mov ecx, 0x273f
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x28
ret
mov r8, r9
mov rdx, rax
mov rcx, r10
add rsp, 0x28
jmp 0x180125670
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x180272190]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx eax, byte [rcx + 3]
mov rbx, rdx
movzx edx, byte [rcx + 2]
mov rdi, r8
movzx r10d, byte [rcx + 1]
lea r8, str._d._d._d._d
movzx r9d, byte [rcx]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], edx
mov edx, reloc.WS2_32.dll_recv
mov byte [rsp + 0x40], 0
mov dword [rsp + 0x20], r10d
call sym.WebKeyAPICPPDLLx64.dll_curl_msnprintf
lea rcx, [rsp + 0x40]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x1801256d4
test rax, rax
je 0x180125714
cmp rax, rdi
jae 0x180125714
lea rax, [rsp + 0x40]
mov r8, rbx
sub r8, rax
lea rcx, [rsp + 0x40]
nop word [rax + rax]
movzx edx, byte [rcx]
mov byte [r8 + rcx], dl
lea rcx, [rcx + 1]
test dl, dl
jne 0x180125700
mov rax, rbx
jmp 0x180125721
mov ecx, Ordinal_30
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1801525d0
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x180272190]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbp, qword [rcx + 0x198]
lea r8, [rsp + 0x20]
mov rsi, qword [rcx]
lea rdx, [rsp + 0x28]
mov rbx, rcx
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov rcx, rbp
mov rdi, 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x18012bbe4
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x28]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
mov rdi, rax
mov rdx, rbp
mov rcx, rbx
call fcn.1801190b0
mov rcx, rsi
cmp rdi, 0xffffffffffffffff
jne 0x18012bc09
lea rdx, str.Error_accept__ing_server_connect
call fcn.180118930
lea eax, [rdi + 0x1f]
jmp 0x18012bc74
lea rdx, str.Connection_accepted_from_server_n
call fcn.180118a00
mov edx, 1
mov qword [rbx + 0x198], rdi
mov rcx, rdi
call fcn.180138cf0
mov dword [rbx + 0x1a4], 1
mov rax, qword [rsi + 0x208]
test rax, rax
je 0x18012bc72
mov rcx, qword [rsi + 0x210]
mov r8d, 1
mov rdx, rdi
call rax
test eax, eax
je 0x18012bc72
mov rdx, rdi
mov rcx, rbx
call fcn.1801190b0
mov eax, Ordinal_46
mov qword [rbx + 0x198], 0xffffffffffffffff
jmp 0x18012bc74
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1801525d0
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x18012cf10
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x4e0
cmp dword [rbx + 0x570], 0
jne 0x18012cfc6
xor r9d, r9d
mov dword [rbx + 0x590], r9d
mov edx, r9d
mov rax, qword [rbx]
cmp dword [rax + 0x3bc], 2
sete dl
mov dword [rbx + 0x594], edx
cmp dword [rbx + 0x244], r9d
je 0x18012cf89
mov r8, qword [rbx + 0x548]
test r8, r8
je 0x18012cf89
lea rdx, str.CWD__s
mov dword [rbx + 0x58c], r9d
call fcn.18013b4d0
test eax, eax
jne 0x18012cfd3
lea edx, [rax + 0x10]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.18012c120
cmp dword [rbx + 0x558], r9d
je 0x18012cfc6
mov r8, qword [rbx + 0x550]
lea rdx, str.CWD__s
mov dword [rbx + 0x58c], 1
mov r8, qword [r8]
call fcn.18013b4d0
test eax, eax
jne 0x18012cfd3
lea edx, [rax + 0x10]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.18012c120
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.18012db60
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, qword [rcx]
mov rdi, rcx
cmp edx, 0xc8
je 0x18012db2e
mov qword [rsp + 0x30], rbx
mov ebx, dword [rcx + 0x58c]
test ebx, ebx
jne 0x18012daec
lea rdx, str.disabling_EPRT_usage_n
mov rcx, rsi
call fcn.180118a00
mov dword [rdi + 0x284], ebx
inc ebx
cmp ebx, 2
jne 0x18012db15
lea rdx, str.Failed_to_do_PORT
mov rcx, rsi
call fcn.180118930
lea eax, [rbx + 0x1c]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov edx, ebx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x18012e8e0
lea rdx, str.Connect_data_stream_actively_n
mov rcx, rsi
call fcn.180118a00
xor edx, edx
mov rcx, rdi
call fcn.18012c120
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.18012c220

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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
add rcx, 0x4e0
cmp dword [rax + 0x3d4], 0
jne 0x18012db85
cmp dword [rax + 0x300], 0
je 0x18012dbb1
mov r8, qword [rcx + 0x80]
test r8, r8
je 0x18012dbb1
lea rdx, str.MDTM__s
call fcn.18013b4d0
test eax, eax
jne 0x18012dbbe
lea edx, [rax + 0x12]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.18012c120
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.18012dd20
add rsp, 0x20
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
mov r10, qword [rcx]
mov r9, rcx
cmp dword [r10 + 0x40c], 0
je 0x18012dd75
cmp qword [rcx + 0x560], 0
je 0x18012dd75
mov edx, dword [r10 + 0x3dc]
call fcn.18012c500
test eax, eax
je 0x18012dd75
mov rax, qword [r10 + 0x8930]
mov r8d, reloc.WS2_32.dll_send
mov rcx, r9
mov dword [rax + 0x18], 1
mov edx, dword [r10 + 0x3dc]
add rsp, 0x28
jmp fcn.18012c470
mov rcx, r9
add rsp, 0x28
jmp fcn.18012e0b0
Function at 0x18012e040
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
mov rdx, qword [rax + 0x8930]
cmp dword [rdx + 0x18], 0
je 0x18012e08d
cmp qword [rcx + 0x560], 0
je 0x18012e08d
add rcx, 0x4e0
lea rdx, str.REST__d
xor r8d, r8d
call fcn.18013b4d0
test eax, eax
jne 0x18012e097
lea edx, [rax + 0x1a]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.18012c120
add rsp, 0x20
pop rbx
jmp fcn.18012dd90
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x4e0
mov rax, qword [rbx]
mov rdx, qword [rax + 0x8930]
cmp dword [rdx + 0x18], 1
jne 0x18012e0fc
mov r8, qword [rcx + 0x80]
test r8, r8
je 0x18012e0fc
lea rdx, str.SIZE__s
call fcn.18013b4d0
test eax, eax
jne 0x18012e109
lea edx, [rax + 0x17]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.18012c120
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.18012e040
add rsp, 0x20
pop rbx
ret
Function at 0x180132410
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1d0
mov rax, qword [0x180272190]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x180132456
mov r8d, eax
lea rdx, str.WSAStartup_failed___d_
mov rcx, rbx
call fcn.180118930
jmp 0x180132480
call qword [sym.imp.WS2_32.dll_WSACleanup]
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x180132471
shr ax, 8
test al, al
jne 0x180132471
xor eax, eax
jmp 0x180132485
lea rdx, str.insufficient_winsock_version_to_support_telnet
mov rcx, rbx
call fcn.180118930
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1801525d0
add rsp, 0x1d0
pop rbx
ret