joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140140b60
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 0x140140ba5
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 0x140140cd0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x130
mov rax, qword [0x1403a0088]
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.1401411c0
test eax, eax
je 0x140140d25
mov dword [rbx], reloc.WLDAP32.dll_Ordinal_27
or rax, 0xffffffffffffffff
jmp 0x140140d92
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 0x140140d8f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp eax, 0x2733
jne 0x140140d5f
xor edi, edi
mov dword [rbx], 0x51
jmp 0x140140d8f
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, esi
call fcn.14012a9c0
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, rbp
call fcn.140140960
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.140125a70
add rsp, 0x130
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1401411c0
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 0x14014129f
lea rax, [0x140140bf0]
cmp qword [rdx + r9*8 + 0x210], rax
jne 0x14014129f
cmp qword [rbx], 0
je 0x14014122b
test rdi, rdi
je 0x14014129f
or r8, 0xffffffffffffffff
xor r9d, r9d
or rdx, r8
mov rcx, rsi
call fcn.1401415f0
cmp eax, 0xffffffff
je 0x14014129f
test al, 1
je 0x14014129f
cmp qword [rbx], 0
jne 0x14014127e
mov eax, dword [rbp + 0x734]
add eax, eax
movsxd rcx, eax
mov qword [rbx + 8], rcx
call qword [fcn.14027bdf8]
mov qword [rbx], rax
test rax, rax
jne 0x140141270
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1401412a1
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 0x14014129f
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 0x140141780
Capabilities:
Get socket status

Disassembly:
push rbx
sub rsp, 0x30
mov r10, rdx
mov rbx, rcx
test rdx, rdx
je 0x140141796
cmp dword [rdx], 0
jne 0x1401417b4
test r8, r8
je 0x1401417a1
cmp dword [r8], 0
jne 0x1401417b4
test r9, r9
je 0x140141856
cmp dword [r9], 0
je 0x140141856
mov rcx, qword [rsp + 0x60]
lea r11, [rsp + 0x48]
test rcx, rcx
jns 0x1401417c8
xor r11d, r11d
jmp 0x140141815
jle 0x14014180c
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 0x140141815
mov qword [rsp + 0x48], 0
test r9, r9
je 0x140141820
cmp dword [r9], 0
jne 0x140141823
xor r9d, r9d
test r8, r8
je 0x14014182e
cmp dword [r8], 0
jne 0x140141831
xor r8d, r8d
test r10, r10
je 0x14014183c
cmp dword [r10], 0
jne 0x14014183f
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.140141740
add rsp, 0x30
pop rbx
ret

Function at 0x140141870
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.1401cd710
mov r8d, eax
mov rdx, rbx
mov ecx, edi
call fcn.14029bd80
mov rbx, qword [rsp + 0x30]
cdqe
add rsp, 0x20
pop rdi
ret
Function at 0x1401480f0
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 0x14014817a
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.14014cf20
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 0x14014811c
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 0x140148536
call fcn.14012fd10
test al, al
jne 0x140148536
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1401487d0
mov rdx, qword [rsp + 0x30]
mov rcx, rax
add rsp, 0x20
pop rbx
jmp 0x1401480f0
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140148500
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 0x14014817a
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.14014cf20
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 0x14014811c
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 0x140148536
call fcn.14012fd10
test al, al
jne 0x140148536
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1401487d0
mov rdx, qword [rsp + 0x30]
mov rcx, rax
add rsp, 0x20
pop rbx
jmp 0x1401480f0
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14014b3e0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
test cl, 2
je 0x14014b446
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14014b429
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x14014b423
shr ax, 8
cmp al, 2
je 0x14014b446
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140125a70
add rsp, 0x1d8
ret
lea rcx, str.iphlpapi.dll
call fcn.14014b1f0
mov qword [0x140450c08], rax
test rax, rax
je 0x14014b483
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140450c00]
test rax, rax
cmovne rcx, rax
mov qword [0x140450c00], rcx
xor edx, edx
lea r9d, [rdx + 3]
lea r8d, [rdx + 2]
lea ecx, [rdx + 6]
call fcn.140169e80
test al, al
lea rcx, [0x140459f58]
setne byte [0x140459f54]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140125a70
add rsp, 0x1d8
ret
Function at 0x14014d850
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 0x14014d9d7
mov qword [rsp + 0x20], rdi
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x14014d9bc
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x14014d8be
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x14014d8b0
inc rbx
jmp 0x14014d8c0
xor ebx, ebx
mov eax, dword [rdi + 4]
cmp eax, 2
jne 0x14014d8cd
lea ebp, [rax + 0xe]
jmp 0x14014d8d9
cmp eax, 0x17
jne 0x14014d971
lea ebp, [rax + 5]
cmp qword [rdi + 0x20], 0
je 0x14014d971
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x14014d971
cmp rax, rbp
jb 0x14014d971
lea rcx, [rbp + 0x30]
add rcx, rbx
call qword [fcn.14027bdf8]
mov rsi, rax
test rax, rax
je 0x14014d980
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.1402743b0
test rbx, rbx
je 0x14014d95e
mov rcx, qword [rsi + 0x20]
mov r8, rbx
add rcx, rbp
mov qword [rsi + 0x18], rcx
mov rdx, qword [rdi + 0x18]
call fcn.1402743b0
test r14, r14
cmove r14, rsi
test r15, r15
je 0x14014d96e
mov qword [r15 + 0x28], rsi
mov r15, rsi
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x14014d8a0
jmp 0x14014d986
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 0x14014d9a5
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x14014d9b7
mov rcx, r14
call fcn.14014d820
xor r14d, r14d
jmp 0x14014d9cb
test r14, r14
jne 0x14014d9cb
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 0x14015db20
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 [0x1403a0088]
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 0x14015db98
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.14013dd30
mov rcx, rdi
cmp rbx, 0xffffffffffffffff
jne 0x14015dbc0
lea rdx, str.Error_accept__ing_server_connect
call fcn.140140960
lea eax, [rbx + 0x1f]
jmp 0x14015dc3c
lea rdx, str.Connection_accepted_from_server
call fcn.140140a40
mov edx, 1
mov byte [rsi + 0x3da], 0
mov rcx, rbx
mov qword [rsi + 0x1f0], rbx
call fcn.140169e50
mov byte [rsi + 0x3ed], 1
cmp qword [rdi + 0x288], 0
je 0x14015dc3a
mov dl, 1
mov rcx, rdi
call fcn.140127560
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.140127560
test ebx, ebx
je 0x14015dc3a
mov rdx, rsi
mov rcx, rdi
call fcn.14015e0e0
mov eax, Ordinal_46
jmp 0x14015dc3c
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140125a70
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 0x14015ec90
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 0x14015ed3a
xor r8d, r8d
mov dword [rdx + 0xc8], r8d
cmp byte [rax + 0x3d2], r8b
je 0x14015ecf3
mov r9, qword [rdx + 0x88]
test r9, r9
je 0x14015ecf3
cmp dword [rdx + 0xa0], r8d
je 0x14015ece7
mov rax, qword [rdx + 0x98]
mov rcx, qword [rax]
cmp byte [rcx], 0x2f
je 0x14015ecf3
mov dword [rdx + 0xa8], r8d
mov rcx, rbx
jmp 0x14015ed13
mov rcx, rbx
cmp dword [rdx + 0xa0], r8d
je 0x14015ed3a
mov r9, qword [rdx + 0x98]
mov dword [rdx + 0xa8], 1
mov r9, qword [r9]
lea r8, str.CWD__s
call fcn.140171480
mov r8d, eax
test eax, eax
jne 0x14015ed44
lea edx, [rax + 0x10]
mov rcx, rbx
call fcn.14015e0d0
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.14015f100
add rsp, 0x20
pop rbx
ret

Function at 0x14015f100
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 0x14015f126
cmp dword [rcx + 0x580], 0
je 0x14015f159
mov r9, qword [rdx + 0x90]
test r9, r9
je 0x14015f159
lea r8, str.MDTM__s
call fcn.140171480
mov r8d, eax
test eax, eax
jne 0x14015f163
lea edx, [rax + 0x12]
mov rcx, rbx
call fcn.14015e0d0
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.140160300
add rsp, 0x20
pop rbx
ret
Function at 0x14015f950
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 0x14015f9cc
test ebx, ebx
jne 0x14015f98d
lea rdx, str.disabling_EPRT_usage
call fcn.140140a40
mov byte [rsi + 0x3e0], bl
inc ebx
mov rcx, rdi
cmp ebx, 2
jne 0x14015f9b6
lea rdx, str.Failed_to_do_PORT
call fcn.140140960
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 0x1401606d0
lea rdx, str.Connect_data_stream_actively
call fcn.140140a40
xor edx, edx
mov rcx, rdi
call fcn.14015e0d0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14015e280
Function at 0x14015fd00
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 0x14015fd51
cmp qword [rdx + 0x90], 0
je 0x14015fd51
xor r9d, r9d
lea r8, str.REST__d
call fcn.140171480
mov r8d, eax
test eax, eax
jne 0x14015fd5b
lea edx, [rax + 0x1a]
mov rcx, rbx
call fcn.14015e0d0
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.14015fa00
add rsp, 0x20
pop rbx
ret

Function at 0x140160050
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 0x1401600a0
mov r9, qword [rdx + 0x560]
test r9, r9
je 0x1401600a0
lea r8, str.SIZE__s
add rdx, 0x4d0
call fcn.140171480
mov r8d, eax
test eax, eax
jne 0x1401600aa
lea edx, [rax + 0x17]
mov rcx, rbx
call fcn.14015e0d0
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.14015fd00
add rsp, 0x20
pop rbx
ret

Function at 0x140160300
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 0x14016035c
cmp qword [r11 + 0x560], 0
je 0x14016035c
movzx edx, byte [rcx + 0x1330]
mov rcx, r11
call fcn.14015e4e0
test eax, eax
je 0x14016035c
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.14015e440
mov rdx, r11
mov rcx, r10
add rsp, 0x28
jmp fcn.140160050

Function at 0x140160370
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 0x1401603ac
lea rdx, str.Couldnt_set_desired_mode
call fcn.140140960
lea eax, [rdi + 0x11]
jmp 0x140160404
cmp edx, 0xc8
je 0x1401603c3
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.140140a40
cmp esi, 0x13
jne 0x1401603d5
mov rdx, rbp
mov rcx, rbx
call fcn.140160050
jmp 0x140160400
cmp esi, 0x14
jne 0x1401603e4
mov rcx, rbx
call fcn.14015ef60
jmp 0x140160400
cmp esi, 0x15
jne 0x1401603f3
mov rcx, rbx
call fcn.140160040
jmp 0x140160400
cmp esi, 0x16
jne 0x140160402
mov rcx, rbx
call fcn.140160250
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 0x140165dc0
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 0x140165e41
sub r8d, 1
je 0x140165e18
cmp r8d, 1
jne 0x140165e55
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x140165e39
cmp ecx, r8d
jne 0x140165e55
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.140165fe0
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x140165e39
cmp ecx, 1
jne 0x140165e55
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.140165fe0
ret

Function at 0x140165e60
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 0x140165f04
sub r8d, 2
je 0x140165ebd
cmp r8d, 1
jne 0x140165ef6
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x140165eb0
cmp ecx, r8d
jne 0x140165ef6
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 0x140165ef7
cmp ecx, 1
jne 0x140165ef6
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.140165fe0
ret
mov dword [r9 + r10*4 + 0xc08], 1
ret
cmp dword [r9 + r10*4 + 0x1408], 1
jne 0x140165ee9
mov r8d, edx
mov dword [r9 + r10*4 + 0xc08], 1
mov edx, 0xfd
jmp fcn.140165fe0

Function at 0x140165f30
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 0x140165fbd
sub r8d, 1
je 0x140165f8e
cmp r8d, 1
jne 0x140165fd4
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x140165fb2
cmp ecx, r8d
jne 0x140165fd4
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.140165fe0
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x140165fb2
cmp ecx, 1
jne 0x140165fd4
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.140165fe0
ret
Function at 0x140165fe0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov byte [rsp + 0x38], 0xff
mov rcx, qword [rcx + 0x18]
mov edi, r8d
mov esi, edx
mov byte [rsp + 0x3a], dil
xor r9d, r9d
mov byte [rsp + 0x39], sil
lea rdx, [rsp + 0x38]
mov rcx, qword [rcx + 0x1e8]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14016603f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbx
mov r8d, eax
call fcn.140140960
mov r9d, edi
lea rdx, str.SENT
mov r8d, esi
mov rcx, rbx
call fcn.140165800
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
cmp edx, 0x1f
jne 0x14016638f
push rsi
push rdi
push r15
sub rsp, 0x30
mov rdi, qword [rcx + 0x1b0]
mov rsi, rcx
mov r15, qword [rcx + 0x18]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x28], rbp
lea rbx, [rdi + 0x1eb8]
mov qword [rsp + 0x20], r14
lea r14, [rdi + 0x1cb8]
mov qword [rbx], r14
cmp r14, rbx
jae 0x14016622b
mov byte [r14], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140166239
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140166247
mov byte [rax], 0x1f
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx ebp, ax
mov word [rsp + 0x58], ax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rbx]
movzx r8d, ax
mov word [rsp + 0x50], ax
cmp rcx, rbx
jae 0x140166280
mov byte [rcx], bpl
inc qword [rbx]
mov rdx, qword [rbx]
mov rbp, qword [rsp + 0x28]
cmp rdx, rbx
jae 0x140166297
movzx ecx, byte [rsp + 0x59]
mov byte [rdx], cl
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1401662a5
mov byte [rax], r8b
inc qword [rbx]
mov rcx, qword [rbx]
cmp rcx, rbx
jae 0x1401662b7
movzx eax, byte [rsp + 0x51]
mov byte [rcx], al
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1401662c5
mov byte [rax], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1401662d3
mov byte [rax], 0xf0
inc qword [rbx]
mov rax, qword [rbx]
lea r8, [rdi + 0x1cba]
mov r9, rax
mov qword [rdi + 0x1ec0], rax
sub r9, r14
mov qword [rbx], r14
sub r9, 2
mov edx, 0x3e
mov rcx, rsi
call fcn.140165940
mov rcx, qword [r15 + 0x1e8]
xor r9d, r9d
mov rdx, r14
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov r14, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x60]
test eax, eax
jns 0x14016633b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.140140960
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, rsi
call fcn.140166070
mov rcx, qword [r15 + 0x1e8]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140166387
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.140140960
add rsp, 0x30
pop r15
pop rdi
pop rsi
ret
Function at 0x140166390
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
mov r9, qword [rcx + 0x1b0]
mov rbx, rcx
movsxd r11, edx
cmp r8d, 1
jne 0x1401663eb
mov r8d, dword [r9 + r11*4 + 8]
test r8d, r8d
je 0x1401663d4
sub r8d, 2
je 0x1401663ff
cmp r8d, 1
jne 0x140166432
cmp dword [r9 + r11*4 + 0x408], 0
jne 0x140166432
mov dword [r9 + r11*4 + 0x408], 1
pop rbx
ret
mov edx, 0xfb
mov dword [r9 + r11*4 + 8], 2
mov r8d, r11d
pop rbx
jmp fcn.140165fe0
mov ecx, dword [r9 + r11*4 + 8]
sub ecx, 1
je 0x140166418
sub ecx, 1
je 0x1401663bb
cmp ecx, 1
jne 0x140166432
cmp dword [r9 + r11*4 + 0x408], 1
jne 0x140166432
mov dword [r9 + r11*4 + 0x408], 0
pop rbx
ret
mov edx, 0xfc
mov dword [r9 + r11*4 + 8], 3
mov rcx, rbx
mov r8d, r11d
pop rbx
jmp fcn.140165fe0
pop rbx
ret

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

Disassembly:
push rbx
mov r9, qword [rcx + 0x1b0]
mov rbx, rcx
movsxd r11, edx
cmp r8d, 1
jne 0x1401664a5
mov r8d, dword [r9 + r11*4 + 0xc08]
test r8d, r8d
je 0x14016648b
sub r8d, 2
je 0x1401664bc
cmp r8d, 1
jne 0x1401664f2
cmp dword [r9 + r11*4 + 0x1008], 0
jne 0x1401664f2
mov dword [r9 + r11*4 + 0x1008], 1
pop rbx
ret
mov edx, 0xfd
mov dword [r9 + r11*4 + 0xc08], 2
mov r8d, r11d
pop rbx
jmp fcn.140165fe0
mov ecx, dword [r9 + r11*4 + 0xc08]
sub ecx, 1
je 0x1401664d5
sub ecx, 1
je 0x140166472
cmp ecx, 1
jne 0x1401664f2
cmp dword [r9 + r11*4 + 0x1008], 1
jne 0x1401664f2
mov dword [r9 + r11*4 + 0x1008], 0
pop rbx
ret
mov edx, 0xfe
mov dword [r9 + r11*4 + 0xc08], 3
mov rcx, rbx
mov r8d, r11d
pop rbx
jmp fcn.140165fe0
pop rbx
ret