joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140143eb0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1403a8088]
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 + 0xb43], 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 0x140143f1f
mov r8, rdi
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d
mov rcx, rbx
call fcn.140145270
jmp 0x140143fae
mov ecx, dword [rbx + 0xaa4]
mov dword [rsp + 0x58], 1
call fcn.140146100
imul ecx, eax, 0x3e8
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rbx + 0xaa8]
call fcn.140146100
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 0x140143fae
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.140145270
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14012a2b0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140143fd0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x1403a8088]
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 0x140144046
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.14012f220
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s
mov rcx, rbx
call fcn.140145270
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0x150
pop rbx
ret

Function at 0x1401450d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp byte [rcx + 0xb36], 0
mov rsi, r9
mov rbp, r8
movsxd rbx, edx
mov rdi, rcx
je 0x140145177
cmp qword [rcx + 0x278], 0
je 0x140145137
mov dl, 1
call fcn.14012bdc0
mov rax, qword [rdi + 0x1d8]
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov edx, ebx
mov rcx, rdi
call qword [rdi + 0x278]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.14012bdc0
mov eax, ebx
jmp 0x140145179
cmp ebx, 2
ja 0x140145177
mov r9, qword [rdi + 0x1d0]
lea rdx, [0x1402bc3d0]
lea rcx, [rbx + rbx*2]
add rcx, rdx
mov edx, 2
lea r8d, [rdx - 1]
call fcn.14028b0fc
mov r9, qword [rdi + 0x1d0]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call fcn.14028b0fc
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140145390
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 0x1401453d5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, 0x51
mov qword [rbx], 0
cmp eax, 0x2733
mov eax, gethostname
sete cl
test cl, cl
cmovne eax, edx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x130
mov rax, qword [0x1403a8088]
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 + 0x1e8]
call fcn.1401459f0
test eax, eax
je 0x140145555
mov dword [rbx], reloc.WLDAP32.dll_Ordinal_27
or rax, 0xffffffffffffffff
jmp 0x1401455c2
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 0x1401455bf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp eax, 0x2733
jne 0x14014558f
xor edi, edi
mov dword [rbx], 0x51
jmp 0x1401455bf
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, esi
call fcn.14012f220
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, rbp
call fcn.140145190
mov dword [rbp + 0xdec], esi
mov dword [rbx], reloc.WS2_32.dll_getservbyname
mov rax, rdi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0x130
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1401459f0
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 + 0x230]
mov rax, r9
mov rbp, rcx
shl rax, 5
add rbx, rax
mov rax, qword [rdx + 0x418]
mov rsi, qword [rdx + r9*8 + 0x1e8]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x84], 3
je 0x140145acf
lea rax, [0x140145420]
cmp qword [rdx + r9*8 + 0x210], rax
jne 0x140145acf
cmp qword [rbx], 0
je 0x140145a5b
test rdi, rdi
je 0x140145acf
or r8, 0xffffffffffffffff
xor r9d, r9d
or rdx, r8
mov rcx, rsi
call fcn.140145e20
cmp eax, 0xffffffff
je 0x140145acf
test al, 1
je 0x140145acf
cmp qword [rbx], 0
jne 0x140145aae
mov eax, dword [rbp + 0x734]
add eax, eax
movsxd rcx, eax
mov qword [rbx + 8], rcx
call qword [fcn.140280918]
mov qword [rbx], rax
test rax, rax
jne 0x140145aa0
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x140145ad1
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 0x140145acf
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 0x140145fb0
Capabilities:
Get socket status

Disassembly:
push rbx
sub rsp, 0x30
mov r10, rdx
mov rbx, rcx
test rdx, rdx
je 0x140145fc6
cmp dword [rdx], 0
jne 0x140145fe4
test r8, r8
je 0x140145fd1
cmp dword [r8], 0
jne 0x140145fe4
test r9, r9
je 0x140146086
cmp dword [r9], 0
je 0x140146086
mov rcx, qword [rsp + 0x60]
lea r11, [rsp + 0x48]
test rcx, rcx
jns 0x140145ff8
xor r11d, r11d
jmp 0x140146045
jle 0x14014603c
movabs rax, 0x20c49ba5e353f7cf
imul rcx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rax, rdx, 0x3e8
sub rcx, rax
imul rax, rcx, 0x3e8
mov ecx, 0x7fffffff
cmp rdx, rcx
mov dword [rsp + 0x4c], eax
cmovg rdx, rcx
mov dword [rsp + 0x48], edx
jmp 0x140146045
mov qword [rsp + 0x48], 0
test r9, r9
je 0x140146050
cmp dword [r9], 0
jne 0x140146053
xor r9d, r9d
test r8, r8
je 0x14014605e
cmp dword [r8], 0
jne 0x140146061
xor r8d, r8d
test r10, r10
je 0x14014606c
cmp dword [r10], 0
jne 0x14014606f
xor r10d, r10d
lea ecx, [rbx + 1]
mov qword [rsp + 0x20], r11
mov rdx, r10
call qword [sym.imp.WS2_32.dll_select]
add rsp, 0x30
pop rbx
ret
mov rcx, qword [rsp + 0x60]
call fcn.140145f70
add rsp, 0x30
pop rbx
ret

Function at 0x1401460a0
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.1401d2010
mov r8d, eax
mov rdx, rbx
mov ecx, edi
call fcn.1402a08a0
mov rbx, qword [rsp + 0x30]
cdqe
add rsp, 0x20
pop rdi
ret
Function at 0x14014c920
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 0x14014c9aa
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.140151760
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 0x14014c94c
xor edx, edx
mov rax, qword [rsp + 0x28]
mov ecx, 0x100
div rcx
mov rax, rdx
add rsp, 0x48
ret
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14014cd66
call fcn.140134570
test al, al
jne 0x14014cd66
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14014d000
mov rdx, qword [rsp + 0x30]
mov rcx, rax
add rsp, 0x20
pop rbx
jmp 0x14014c920
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x14014cd30
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 0x14014c9aa
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.140151760
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 0x14014c94c
xor edx, edx
mov rax, qword [rsp + 0x28]
mov ecx, 0x100
div rcx
mov rax, rdx
add rsp, 0x48
ret
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14014cd66
call fcn.140134570
test al, al
jne 0x14014cd66
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14014d000
mov rdx, qword [rsp + 0x30]
mov rcx, rax
add rsp, 0x20
pop rbx
jmp 0x14014c920
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14014fc20
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
test cl, 2
je 0x14014fc86
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14014fc69
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x14014fc63
shr ax, 8
cmp al, 2
je 0x14014fc86
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0x1d8
ret
lea rcx, str.iphlpapi.dll
call fcn.14014fa30
mov qword [0x140458d48], rax
test rax, rax
je 0x14014fcc3
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140458d40]
test rax, rax
cmovne rcx, rax
mov qword [0x140458d40], rcx
xor edx, edx
lea r9d, [rdx + 3]
lea r8d, [rdx + 2]
lea ecx, [rdx + 6]
call fcn.14016e700
test al, al
lea rcx, [0x140462388]
setne byte [0x140462384]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0x1d8
ret
Function at 0x140152090
Capabilities:
Resolve dns

Disassembly:
push r12
push r13
push r14
push r15
sub rsp, 0x28
mov r13, r9
xor r14d, r14d
mov qword [r9], r14
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x140152217
mov qword [rsp + 0x20], rdi
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x1401521fc
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x1401520fe
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1401520f0
inc rbx
jmp 0x140152100
xor ebx, ebx
mov eax, dword [rdi + 4]
cmp eax, 2
jne 0x14015210d
lea ebp, [rax + 0xe]
jmp 0x140152119
cmp eax, 0x17
jne 0x1401521b1
lea ebp, [rax + 5]
cmp qword [rdi + 0x20], 0
je 0x1401521b1
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x1401521b1
cmp rax, rbp
jb 0x1401521b1
lea rcx, [rbp + 0x30]
add rcx, rbx
call qword [fcn.140280918]
mov rsi, rax
test rax, rax
je 0x1401521c0
mov ecx, dword [rdi]
mov r8, rbp
mov dword [rax], ecx
mov ecx, dword [rdi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rdi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rdi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [rsi + 0x30]
mov dword [rax + 0x10], ebp
xor eax, eax
mov qword [rsi + 0x18], rax
mov qword [rsi + 0x28], rax
mov qword [rsi + 0x20], rcx
mov rdx, qword [rdi + 0x20]
call fcn.140278ed0
test rbx, rbx
je 0x14015219e
mov rcx, qword [rsi + 0x20]
mov r8, rbx
add rcx, rbp
mov qword [rsi + 0x18], rcx
mov rdx, qword [rdi + 0x18]
call fcn.140278ed0
test r14, r14
cmove r14, rsi
test r15, r15
je 0x1401521ae
mov qword [r15 + 0x28], rsi
mov r15, rsi
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x1401520e0
jmp 0x1401521c6
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
test rcx, rcx
je 0x1401521e5
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x1401521f7
mov rcx, r14
call fcn.140152060
xor r14d, r14d
jmp 0x14015220b
test r14, r14
jne 0x14015220b
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x20]
mov eax, r12d
mov qword [r13], r14
add rsp, 0x28
pop r15
pop r14
pop r13
pop r12
ret
Function at 0x1401623a0
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 [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, qword [rcx + 0x18]
lea r8, [rsp + 0x20]
mov rdi, rcx
lea rdx, [rsp + 0x30]
or rbx, 0xffffffffffffffff
mov rbp, qword [rsi + 0x1f0]
mov rcx, rbp
mov dword [rsp + 0x20], Ordinal_133
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140162418
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_133
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.140142560
mov rcx, rdi
cmp rbx, 0xffffffffffffffff
jne 0x140162440
lea rdx, str.Error_accept__ing_server_connect
call fcn.140145190
lea eax, [rbx + 0x1f]
jmp 0x1401624bc
lea rdx, str.Connection_accepted_from_server
call fcn.140145270
mov edx, 1
mov byte [rsi + 0x3da], 0
mov rcx, rbx
mov qword [rsi + 0x1f0], rbx
call fcn.14016e6d0
mov byte [rsi + 0x3ed], 1
cmp qword [rdi + 0x288], 0
je 0x1401624ba
mov dl, 1
mov rcx, rdi
call fcn.14012bdc0
mov rcx, qword [rdi + 0x290]
mov r8d, 1
mov rdx, rbx
call qword [rdi + 0x288]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.14012bdc0
test ebx, ebx
je 0x1401624ba
mov rdx, rsi
mov rcx, rdi
call fcn.140162960
mov eax, Ordinal_46
jmp 0x1401624bc
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14012a2b0
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 0x140163510
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, rdx
mov rbx, rcx
add rdx, 0x4d0
cmp byte [rdx + 0xa6], 0
jne 0x1401635ba
xor r8d, r8d
mov dword [rdx + 0xc8], r8d
cmp byte [rax + 0x3d2], r8b
je 0x140163573
mov r9, qword [rdx + 0x88]
test r9, r9
je 0x140163573
cmp dword [rdx + 0xa0], r8d
je 0x140163567
mov rax, qword [rdx + 0x98]
mov rcx, qword [rax]
cmp byte [rcx], 0x2f
je 0x140163573
mov dword [rdx + 0xa8], r8d
mov rcx, rbx
jmp 0x140163593
mov rcx, rbx
cmp dword [rdx + 0xa0], r8d
je 0x1401635ba
mov r9, qword [rdx + 0x98]
mov dword [rdx + 0xa8], 1
mov r9, qword [r9]
lea r8, str.CWD__s
call fcn.140175ce0
mov r8d, eax
test eax, eax
jne 0x1401635c4
lea edx, [rax + 0x10]
mov rcx, rbx
call fcn.140162950
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.140163980
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, qword [rcx + 0x18]
mov rbx, rcx
add rdx, 0x4d0
cmp byte [rcx + 0xb21], 0
jne 0x1401639a6
cmp dword [rcx + 0x580], 0
je 0x1401639d9
mov r9, qword [rdx + 0x90]
test r9, r9
je 0x1401639d9
lea r8, str.MDTM__s
call fcn.140175ce0
mov r8d, eax
test eax, eax
jne 0x1401639e3
lea edx, [rax + 0x12]
mov rcx, rbx
call fcn.140162950
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.140164b80
add rsp, 0x20
pop rbx
ret
Function at 0x1401641d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, qword [rcx + 0x18]
lea eax, [rdx - 0xc8]
mov rdi, rcx
mov ebx, dword [rsi + 0x594]
cmp eax, 0x64
jb 0x14016424c
test ebx, ebx
jne 0x14016420d
lea rdx, str.disabling_EPRT_usage
call fcn.140145270
mov byte [rsi + 0x3e0], bl
inc ebx
mov rcx, rdi
cmp ebx, 2
jne 0x140164236
lea rdx, str.Failed_to_do_PORT
call fcn.140145190
lea eax, [rbx + 0x1c]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov edx, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x140164f50
lea rdx, str.Connect_data_stream_actively
call fcn.140145270
xor edx, edx
mov rcx, rdi
call fcn.140162950
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140162b00
Function at 0x140164580
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1b0]
add rdx, 0x4d0
mov rbx, rcx
cmp dword [rax + 0x10], 0
je 0x1401645d1
cmp qword [rdx + 0x90], 0
je 0x1401645d1
xor r9d, r9d
lea r8, str.REST__d
call fcn.140175ce0
mov r8d, eax
test eax, eax
jne 0x1401645db
lea edx, [rax + 0x1a]
mov rcx, rbx
call fcn.140162950
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.140164280
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1b0]
mov rbx, rcx
cmp dword [rax + 0x10], 1
jne 0x140164920
mov r9, qword [rdx + 0x560]
test r9, r9
je 0x140164920
lea r8, str.SIZE__s
add rdx, 0x4d0
call fcn.140175ce0
mov r8d, eax
test eax, eax
jne 0x14016492a
lea edx, [rax + 0x17]
mov rcx, rbx
call fcn.140162950
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.140164580
add rsp, 0x20
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0xb34], 0
mov r10, rcx
mov r11, qword [rcx + 0x18]
je 0x140164bdc
cmp qword [r11 + 0x560], 0
je 0x140164bdc
movzx edx, byte [rcx + 0x1330]
mov rcx, r11
call fcn.140162d60
test eax, eax
je 0x140164bdc
mov rax, qword [r10 + 0x1b0]
mov r9d, reloc.WS2_32.dll_send
mov rdx, r11
mov rcx, r10
mov dword [rax + 0x10], 1
movzx r8d, byte [r10 + 0x1330]
add rsp, 0x28
jmp fcn.140162cc0
mov rdx, r11
mov rcx, r10
add rsp, 0x28
jmp fcn.1401648d0

Function at 0x140164bf0
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 0x140164c2c
lea rdx, str.Couldnt_set_desired_mode
call fcn.140145190
lea eax, [rdi + 0x11]
jmp 0x140164c84
cmp edx, 0xc8
je 0x140164c43
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.140145270
cmp esi, 0x13
jne 0x140164c55
mov rdx, rbp
mov rcx, rbx
call fcn.1401648d0
jmp 0x140164c80
cmp esi, 0x14
jne 0x140164c64
mov rcx, rbx
call fcn.1401637e0
jmp 0x140164c80
cmp esi, 0x15
jne 0x140164c73
mov rcx, rbx
call fcn.1401648c0
jmp 0x140164c80
cmp esi, 0x16
jne 0x140164c82
mov rcx, rbx
call fcn.140164ad0
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14016a650
Capabilities:
Send data
Send data on socket

Disassembly:
mov r9, qword [rcx + 0x1b0]
mov r11, rcx
movsxd r10, edx
mov r8d, dword [r9 + r10*4 + 8]
sub r8d, 1
je 0x14016a6d1
sub r8d, 1
je 0x14016a6a8
cmp r8d, 1
jne 0x14016a6e5
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x14016a6c9
cmp ecx, r8d
jne 0x14016a6e5
xor eax, eax
mov dword [r9 + r10*4 + 8], 2
mov r8d, edx
mov dword [r9 + r10*4 + 0x408], eax
mov edx, 0xfb
mov rcx, r11
jmp fcn.14016a870
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x14016a6c9
cmp ecx, 1
jne 0x14016a6e5
xor eax, eax
mov dword [r9 + r10*4 + 8], eax
mov dword [r9 + r10*4 + 0x408], eax
ret
xor eax, eax
mov dword [r9 + r10*4 + 8], eax
ret
xor eax, eax
mov r8d, edx
mov edx, 0xfc
mov dword [r9 + r10*4 + 8], eax
jmp fcn.14016a870
ret

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

Disassembly:
mov r9, qword [rcx + 0x1b0]
mov r11, rcx
movsxd r10, edx
mov r8d, dword [r9 + r10*4 + 0xc08]
test r8d, r8d
je 0x14016a794
sub r8d, 2
je 0x14016a74d
cmp r8d, 1
jne 0x14016a786
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x14016a740
cmp ecx, r8d
jne 0x14016a786
mov dword [r9 + r10*4 + 0xc08], r8d
mov dword [r9 + r10*4 + 0x1008], 0
ret
mov dword [r9 + r10*4 + 0xc08], 0
ret
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x14016a787
cmp ecx, 1
jne 0x14016a786
mov dword [r9 + r10*4 + 0xc08], 3
mov rcx, r11
mov dword [r9 + r10*4 + 0x1008], 0
mov r8d, edx
mov edx, 0xfe
jmp fcn.14016a870
ret
mov dword [r9 + r10*4 + 0xc08], 1
ret
cmp dword [r9 + r10*4 + 0x1408], 1
jne 0x14016a779
mov r8d, edx
mov dword [r9 + r10*4 + 0xc08], 1
mov edx, 0xfd
jmp fcn.14016a870

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

Disassembly:
mov r9, qword [rcx + 0x1b0]
mov r11, rcx
movsxd r10, edx
mov r8d, dword [r9 + r10*4 + 0xc08]
sub r8d, 1
je 0x14016a84d
sub r8d, 1
je 0x14016a81e
cmp r8d, 1
jne 0x14016a864
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x14016a842
cmp ecx, r8d
jne 0x14016a864
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], 2
mov r8d, edx
mov dword [r9 + r10*4 + 0x1008], eax
mov edx, 0xfd
mov rcx, r11
jmp fcn.14016a870
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x14016a842
cmp ecx, 1
jne 0x14016a864
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], eax
mov dword [r9 + r10*4 + 0x1008], eax
ret
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], eax
ret
xor eax, eax
mov r8d, edx
mov edx, 0xfe
mov dword [r9 + r10*4 + 0xc08], eax
jmp fcn.14016a870
ret