joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140072860
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x130
mov rax, qword [0x140112070]
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 + 0x1f0]
call fcn.140072d30
test eax, eax
je 0x1400728b8
mov dword [rbx], reloc.WLDAP32.dll_Ordinal_27
mov rax, 0xffffffffffffffff
jmp 0x140072925
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
movsxd rdi, eax
mov dword [rbx], 0
cmp rdi, 0xffffffffffffffff
jne 0x140072922
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp eax, 0x2733
jne 0x1400728f2
xor edi, edi
mov dword [rbx], 0x51
jmp 0x140072922
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, esi
call fcn.14009a5d0
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, rbp
call fcn.140072470
mov dword [rbp + 0xdcc], esi
mov dword [rbx], gethostname
mov rax, rdi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140060520
add rsp, 0x130
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140072d30
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 + 0x238]
mov rax, r9
mov rbp, rcx
shl rax, 5
add rbx, rax
mov rax, qword [rdx + 0x3b8]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x7c], 3
je 0x140072e1a
lea rax, [0x140072780]
cmp qword [rdx + r9*8 + 0x218], rax
jne 0x140072e1a
cmp qword [rbx], 0
je 0x140072d98
test rdi, rdi
je 0x140072e1a
mov rsi, qword [rdx + r9*8 + 0x1f0]
mov rdx, 0xffffffffffffffff
mov r8, rdx
xor r9d, r9d
mov rcx, rsi
call fcn.14007fde0
cmp eax, 0xffffffff
je 0x140072e1a
test al, 1
je 0x140072e1a
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140072df9
mov eax, dword [rbp + 0x704]
add eax, eax
movsxd rcx, eax
mov qword [rbx + 8], rcx
call qword [fcn.1400b5dec]
mov qword [rbx], rax
mov rcx, rax
test rax, rax
jne 0x140072deb
lea eax, [rcx + 0x1b]
jmp 0x140072e1c
mov rdi, qword [rbx + 8]
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rcx
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x140072e1a
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 0x140072fe0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x280], 0
jne 0x14007301a
mov rcx, qword [rcx + 0x1f0]
cmp rcx, 0xffffffffffffffff
je 0x14007301a
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x14007301a
mov al, 1
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret
Function at 0x140073200
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x1c0
mov rax, qword [0x140112070]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
xorps xmm0, xmm0
mov dword [rsp + 0x20], pe_nt_image_headers64
mov rax, rdx
mov rbx, r8
mov rsi, rcx
lea r8, [rsp + 0x20]
mov rcx, rax
lea rdx, [rsp + 0x30]
mov rdi, r9
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 0x1400732a5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.14009a5d0
mov r8d, ebx
lea rdx, str.getsockname___failed_with_errno__d:__s
jmp 0x1400732eb
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8, rbx
call fcn.140072e40
test al, al
jne 0x1400732f6
call fcn.1400b8ed0
mov ebx, dword [rax]
call fcn.1400b8ed0
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.14009a5d0
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.140072470
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140060520
add rsp, 0x1c0
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400747e0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140112070]
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 + 0xafb], 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 0x14007484f
mov r8, rdi
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov rcx, rbx
call fcn.140072560
jmp 0x1400748de
mov ecx, dword [rbx + 0xa5c]
mov dword [rsp + 0x58], 1
call fcn.140074b10
imul ecx, eax, 0x3e8
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rbx + 0xa60]
call fcn.140074b10
imul ecx, eax, 0x3e8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], rsi
mov r9d, recv
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 0x1400748de
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.140072560
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140060520
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140074900
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x140112070]
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 0x140074976
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.14009a5d0
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
call fcn.140072560
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140060520
add rsp, 0x150
pop rbx
ret

Function at 0x140074ad0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
mov rbx, rdx
mov rcx, r8
call fcn.140074b20
mov r8d, eax
mov rdx, rbx
mov ecx, edi
call fcn.1400c32e4
mov rbx, qword [rsp + 0x30]
cdqe
add rsp, 0x20
pop rdi
ret
Function at 0x140074fc0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x140112070]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
test cl, 2
je 0x140075026
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140075009
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x140075003
shr ax, 8
cmp al, 2
je 0x140075026
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140060520
add rsp, 0x1d8
ret
lea rcx, str.iphlpapi.dll
call fcn.140074e20
mov qword [0x1403befb8], rax
test rax, rax
je 0x140075063
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1403befb0]
test rax, rax
cmovne rcx, rax
mov qword [0x1403befb0], rcx
xor edx, edx
lea r9d, [rdx + 3]
lea r8d, [rdx + 2]
lea ecx, [rdx + 6]
call fcn.14009b4c0
test al, al
lea rcx, [0x1403c0668]
setne byte [0x1403c0664]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140060520
add rsp, 0x1d8
ret
Function at 0x14007cbd0
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140112070]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov edx, 1
mov dword [rsp + 0x34], reloc.WS2_32.dll_recv
mov ebp, 2
mov dword [rsp + 0x30], 1
mov ecx, ebp
mov rsi, r9
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14007cc25
jmp 0x14007cdd4
mov qword [rsp + 0x80], rbx
mov ecx, 0x7f000001
xor ebx, ebx
mov word [rsp + 0x38], bp
mov qword [rsp + 0x40], rbx
call qword [sym.imp.WS2_32.dll_htonl]
lea r9, [rsp + 0x30]
mov word [rsp + 0x3a], bx
mov edx, 0xffff
mov dword [rsp + 0x3c], eax
lea r8d, [rbx + 4]
mov qword [rsi + 8], 0xffffffffffffffff
mov rcx, rdi
mov qword [rsi], 0xffffffffffffffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14007cdab
lea r8d, [rbx + 0x10]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x14007cdab
lea r8, [rsp + 0x34]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x14007cdab
lea edx, [rbx + 1]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x14007cdab
xor r8d, r8d
lea edx, [rbx + 1]
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
je 0x14007cdab
lea r8d, [rbx + 0x10]
mov rcx, rax
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14007cdab
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x14007cdab
mov r9, rsi
lea r8, [0x1400dbb30]
lea edx, [rbx + 0xc]
lea rcx, [rsp + 0x48]
call fcn.140082200
lea rax, [rsp + 0x48]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14007cd45
mov rcx, qword [rsi]
lea rdx, [rsp + 0x48]
xor r9d, r9d
mov r8d, ebx
call qword [sym.imp.WS2_32.dll_send]
movsxd rcx, eax
cmp rcx, rbx
jne 0x14007cdab
mov rcx, qword [rsi + 8]
lea rdx, [rsp + 0x54]
xor r9d, r9d
lea r8d, [r9 + 0xc]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, rbx
jne 0x14007cdab
mov r8, rbx
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0x48]
call fcn.1400a61b0
test eax, eax
jne 0x14007cdab
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x14007cdcc
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsi + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140060520
lea r11, [rsp + 0x70]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14007ffa0
Capabilities:
Get socket status

Disassembly:
push rdi
sub rsp, 0x30
mov r11, qword [rsp + 0x60]
mov r10, rdx
mov rdi, rcx
test rdx, rdx
je 0x14007ffbb
cmp dword [rdx], 0
jne 0x14007ffd9
test r8, r8
je 0x14007ffc6
cmp dword [r8], 0
jne 0x14007ffd9
test r9, r9
je 0x140080081
cmp dword [r9], 0
je 0x140080081
mov qword [rsp + 0x40], rbx
lea rbx, [rsp + 0x48]
test r11, r11
jns 0x14007ffec
xor ebx, ebx
jmp 0x14008003b
jle 0x140080032
mov rcx, r11
movabs rax, 0x624dd2f1a9fbe77
mul r11
sub rcx, rdx
shr rcx, 1
add rcx, rdx
mov edx, 0x7fffffff
shr rcx, 9
imul rax, rcx, 0x3e8
sub r11, rax
imul rax, r11, 0x3e8
cmp rcx, rdx
mov dword [rsp + 0x4c], eax
cmovg rcx, rdx
mov dword [rsp + 0x48], ecx
jmp 0x14008003b
mov qword [rsp + 0x48], 0
test r9, r9
je 0x140080046
cmp dword [r9], 0
jne 0x140080049
xor r9d, r9d
test r8, r8
je 0x140080054
cmp dword [r8], 0
jne 0x140080057
xor r8d, r8d
test r10, r10
je 0x140080062
cmp dword [r10], 0
jne 0x140080065
xor r10d, r10d
lea ecx, [rdi + 1]
mov qword [rsp + 0x20], rbx
mov rdx, r10
call qword [sym.imp.WS2_32.dll_select]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, r11
call fcn.14007ff50
add rsp, 0x30
pop rdi
ret
Function at 0x140084750
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movaps xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x30]
mov rdi, rdx
call fcn.1400766f0
mov rcx, rbx
movups xmm6, xmmword [rax]
call fcn.140083620
mov rcx, rdi
mov rsi, rax
call fcn.140083620
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x140084800
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.1400766f0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.140076780
cmp rax, 0x3e8
ja 0x140084831
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1400847b0
test rsi, rsi
je 0x14008480d
mov rcx, rsi
call fcn.1400afdbc
test rbx, rbx
je 0x14008481a
mov rcx, rbx
call fcn.1400afdbc
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
test rsi, rsi
je 0x14008483e
mov rcx, rsi
call fcn.1400afdbc
test rbx, rbx
je 0x14008484b
mov rcx, rbx
call fcn.1400afdbc
mov eax, 1
jmp 0x14008481c
Function at 0x140084890
Capabilities:
Resolve dns

Disassembly:
push rbp
push r12
push r13
push r15
sub rsp, 0x28
mov r13, r9
xor ebp, ebp
mov qword [r9], rbp
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x140084a19
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x1400849fe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x1400848fe
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400848f0
inc rbx
jmp 0x140084900
xor ebx, ebx
mov eax, dword [rdi + 4]
cmp eax, 2
jne 0x14008490e
lea r14d, [rax + 0xe]
jmp 0x14008491b
cmp eax, 0x17
jne 0x1400849b4
lea r14d, [rax + 5]
cmp qword [rdi + 0x20], 0
je 0x1400849b4
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x1400849b4
cmp rax, r14
jb 0x1400849b4
lea rcx, [rbx + 0x30]
add rcx, r14
call qword [fcn.1400b5dec]
mov rsi, rax
test rax, rax
je 0x1400849c3
mov ecx, dword [rdi]
mov r8, r14
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], r14d
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.1400a58c0
test rbx, rbx
je 0x1400849a1
mov rcx, qword [rsi + 0x20]
mov r8, rbx
add rcx, r14
mov qword [rsi + 0x18], rcx
mov rdx, qword [rdi + 0x18]
call fcn.1400a58c0
test rbp, rbp
cmove rbp, rsi
test r15, r15
je 0x1400849b1
mov qword [r15 + 0x28], rsi
mov r15, rsi
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x1400848e0
jmp 0x1400849c9
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400849e8
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x1400849f9
mov rcx, rbp
call fcn.140084860
xor ebp, ebp
jmp 0x140084a0d
test rbp, rbp
jne 0x140084a0d
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov eax, r12d
mov qword [r13], rbp
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
ret
Function at 0x14008ae00
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, 0xc0
mov rax, qword [0x140112070]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, qword [rcx + 0x18]
lea r8, [rsp + 0x20]
mov rdi, rcx
lea rdx, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
mov rbp, qword [rsi + 0x1f8]
mov rcx, rbp
mov dword [rsp + 0x20], pe_nt_image_headers64
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14008ae7b
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], pe_nt_image_headers64
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
mov r8, rbp
mov rdx, rsi
mov rcx, rdi
call fcn.140072ee0
mov rcx, rdi
cmp rbx, 0xffffffffffffffff
jne 0x14008aea3
lea rdx, str.Error_accept__ing_server_connect
call fcn.140072470
lea eax, [rbx + 0x1f]
jmp 0x14008af1f
lea rdx, str.Connection_accepted_from_server_n
call fcn.140072560
mov edx, 1
mov byte [rsi + 0x37a], 0
mov rcx, rbx
mov qword [rsi + 0x1f8], rbx
call fcn.14007ec60
mov byte [rsi + 0x38d], 1
cmp qword [rdi + 0x298], 0
je 0x14008af1d
mov dl, 1
mov rcx, rdi
call fcn.140065190
mov rcx, qword [rdi + 0x2a0]
mov r8d, 1
mov rdx, rbx
call qword [rdi + 0x298]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.140065190
test ebx, ebx
je 0x14008af1d
mov rdx, rsi
mov rcx, rdi
call fcn.14008b3d0
mov eax, Ordinal_46
jmp 0x14008af1f
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140060520
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov r8, rdx
mov rbx, rcx
add rdx, 0x470
cmp byte [rdx + 0xa6], 0
jne 0x14008c01d
xor r10d, r10d
mov dword [rdx + 0xc8], r10d
mov eax, r10d
cmp dword [rcx + 0x73c], 2
sete al
mov dword [rdx + 0xcc], eax
cmp byte [r8 + 0x372], r10b
je 0x14008bfd6
mov r9, qword [rdx + 0x88]
test r9, r9
je 0x14008bfd6
cmp dword [rdx + 0xa0], r10d
je 0x14008bfca
mov rax, qword [rdx + 0x98]
mov rcx, qword [rax]
cmp byte [rcx], 0x2f
je 0x14008bfd6
mov dword [rdx + 0xa8], r10d
mov rcx, rbx
jmp 0x14008bff6
mov rcx, rbx
cmp dword [rdx + 0xa0], r10d
je 0x14008c01d
mov r9, qword [rdx + 0x98]
mov dword [rdx + 0xa8], 1
mov r9, qword [r9]
lea r8, str.CWD__s
call fcn.1400a0810
mov r8d, eax
test eax, eax
jne 0x14008c027
lea edx, [rax + 0x10]
mov rcx, rbx
call fcn.14008b3c0
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.14008c400
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, qword [rcx + 0x18]
mov rbx, rcx
add rdx, 0x470
cmp byte [rcx + 0xad9], 0
jne 0x14008c426
cmp dword [rcx + 0x560], 0
je 0x14008c459
mov r9, qword [rdx + 0x90]
test r9, r9
je 0x14008c459
lea r8, str.MDTM__s
call fcn.1400a0810
mov r8d, eax
test eax, eax
jne 0x14008c463
lea edx, [rax + 0x12]
mov rcx, rbx
call fcn.14008b3c0
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.14008d550
add rsp, 0x20
pop rbx
ret
Function at 0x14008cc20
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 0x14008cc9f
mov qword [rsp + 0x30], rsi
mov rsi, qword [rcx + 0x18]
mov qword [rsp + 0x38], rdi
mov eax, dword [rsi + 0x534]
lea edi, [rax + 1]
test eax, eax
jne 0x14008cc7b
lea rdx, str.disabling_EPRT_usage_n
call fcn.140072560
mov byte [rsi + 0x380], 0
mov edx, edi
mov rcx, rbx
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
jmp 0x14008d930
cmp edi, 2
jne 0x14008cc62
lea rdx, str.Failed_to_do_PORT
call fcn.140072470
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_n
call fcn.140072560
xor edx, edx
mov rcx, rbx
call fcn.14008b3c0
add rsp, 0x20
pop rbx
jmp fcn.14008b570
Function at 0x14008cfa0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1b8]
add rdx, 0x470
mov rbx, rcx
cmp dword [rax + 0x10], 0
je 0x14008cff1
cmp qword [rdx + 0x90], 0
je 0x14008cff1
xor r9d, r9d
lea r8, str.REST__d
call fcn.1400a0810
mov r8d, eax
test eax, eax
jne 0x14008cffb
lea edx, [rax + 0x1a]
mov rcx, rbx
call fcn.14008b3c0
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.14008ccc0
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1b8]
mov rbx, rcx
cmp dword [rax + 0x10], 1
jne 0x14008d2f0
mov r9, qword [rdx + 0x500]
test r9, r9
je 0x14008d2f0
lea r8, str.SIZE__s
add rdx, 0x470
call fcn.1400a0810
mov r8d, eax
test eax, eax
jne 0x14008d2fa
lea edx, [rax + 0x17]
mov rcx, rbx
call fcn.14008b3c0
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.14008cfa0
add rsp, 0x20
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0xaec], 0
mov r10, rcx
mov r11, qword [rcx + 0x18]
je 0x14008d5ac
cmp qword [r11 + 0x500], 0
je 0x14008d5ac
movzx edx, byte [rcx + 0xadb]
mov rcx, r11
call fcn.14008b7d0
test eax, eax
je 0x14008d5ac
mov rax, qword [r10 + 0x1b8]
mov r9d, reloc.WS2_32.dll_send
mov rdx, r11
mov rcx, r10
mov dword [rax + 0x10], 1
movzx r8d, byte [r10 + 0xadb]
add rsp, 0x28
jmp fcn.14008b730
mov rdx, r11
mov rcx, r10
add rsp, 0x28
jmp fcn.14008d2a0

Function at 0x14008d5c0
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 + 0x18]
lea eax, [rdx - 0xc8]
xor edi, edi
mov esi, r8d
mov rbx, rcx
cmp eax, 0x64
jb 0x14008d5fc
lea rdx, str.Couldnt_set_desired_mode
call fcn.140072470
lea eax, [rdi + 0x11]
jmp 0x14008d654
cmp edx, 0xc8
je 0x14008d613
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.140072560
cmp esi, 0x13
jne 0x14008d625
mov rdx, rbp
mov rcx, rbx
call fcn.14008d2a0
jmp 0x14008d650
cmp esi, 0x14
jne 0x14008d634
mov rcx, rbx
call fcn.14008c260
jmp 0x14008d650
cmp esi, 0x15
jne 0x14008d643
mov rcx, rbx
call fcn.14008d290
jmp 0x14008d650
cmp esi, 0x16
jne 0x14008d652
mov rcx, rbx
call fcn.14008d4a0
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