joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001bad0
Capabilities:
Resolve dns

Disassembly:
push rbx
push r13
push r14
push r15
sub rsp, 0x28
mov r15, r9
xor ebx, ebx
xor r13d, r13d
mov qword [r9], rbx
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x14001bc5f
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x14001bc40
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x20], r12
nop
mov rdi, qword [rsi + 0x18]
test rdi, rdi
je 0x14001bb39
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
not rcx
mov r12, rcx
jmp 0x14001bb3c
xor r12d, r12d
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x14001bb49
lea ebp, [rax + 0xe]
jmp 0x14001bb55
cmp eax, 0x17
jne 0x14001bbe7
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], 0
je 0x14001bbe7
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x14001bbe7
cmp rax, rbp
jb 0x14001bbe7
lea rcx, [r12 + rbp + 0x30]
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x14001bbf6
mov ecx, dword [rsi]
mov r8, rbp
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0x10], ebp
mov dword [rax + 0xc], ecx
xor eax, eax
lea rcx, [rdi + 0x30]
mov qword [rdi + 0x20], rcx
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x28], rax
mov rdx, qword [rsi + 0x20]
call fcn.1401756a0
test r12, r12
je 0x14001bbd4
mov rcx, qword [rdi + 0x20]
mov r8, r12
add rcx, rbp
mov qword [rdi + 0x18], rcx
mov rdx, qword [rsi + 0x18]
call fcn.1401756a0
test rbx, rbx
cmove rbx, rdi
test r13, r13
je 0x14001bbe4
mov qword [r13 + 0x28], rdi
mov r13, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x14001bb20
jmp 0x14001bbfc
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov r12, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x14001bc16
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r14d, r14d
je 0x14001bc3b
test rbx, rbx
je 0x14001bc35
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [fcn.14017eed8]
mov rbx, rdi
test rdi, rdi
jne 0x14001bc20
xor eax, eax
mov ebx, eax
jmp 0x14001bc4f
test rbx, rbx
jne 0x14001bc4f
mov r14d, 0x2af9
mov ecx, r14d
call qword [sym.imp.WSOCK32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov qword [r15], rbx
mov eax, r14d
add rsp, 0x28
pop r15
pop r14
pop r13
pop rbx
ret
Function at 0x14001c0e0
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 + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov edx, 1
mov edi, 2
mov rsi, r9
lea r8d, [rdx + 5]
mov ecx, edi
mov dword [rsp + 0x34], reloc.WSOCK32.dll_recv
mov dword [rsp + 0x30], 1
call qword [sym.imp.WSOCK32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001c2d4
xor eax, eax
mov ecx, 0x7f000001
mov qword [rsp + 0x38], rax
mov word [rsp + 0x38], di
mov qword [rsp + 0x40], rax
call qword [sym.imp.WSOCK32.dll_htonl]
lea r9, [rsp + 0x30]
lea r8d, [rdi + 2]
mov dword [rsp + 0x3c], eax
xor eax, eax
mov edx, 0xffff
mov rcx, rbx
mov qword [rsi + 8], 0xffffffffffffffff
mov qword [rsi], 0xffffffffffffffff
mov word [rsp + 0x3a], ax
mov dword [rsp + 0x20], 4
call qword [sym.imp.WSOCK32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14001c2b8
lea r8d, [rdi + 0xe]
lea rdx, [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.WSOCK32.dll_bind]
cmp eax, 0xffffffff
je 0x14001c2b8
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.WSOCK32.dll_getsockname]
cmp eax, 0xffffffff
je 0x14001c2b8
lea edx, [rdi - 1]
mov rcx, rbx
call qword [sym.imp.WSOCK32.dll_listen]
cmp eax, 0xffffffff
je 0x14001c2b8
lea edx, [rdi - 1]
xor r8d, r8d
mov ecx, edi
call qword [sym.imp.WSOCK32.dll_socket]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
je 0x14001c2b8
lea r8d, [rdi + 0xe]
lea rdx, [rsp + 0x38]
mov rcx, rax
call qword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
je 0x14001c2b8
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WSOCK32.dll_accept]
mov qword [rsi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x14001c2b8
lea r8, [0x1401b14dc]
lea edx, [rdi + 0xa]
lea rcx, [rsp + 0x48]
mov r9, rsi
call fcn.14001ae60
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x48]
lea rdx, [rsp + 0x48]
xor r9d, r9d
repne scasb al, byte [rdi]
not rcx
lea rdi, [rcx - 1]
lea r8d, [rcx - 1]
mov rcx, qword [rsi]
call qword [sym.imp.WSOCK32.dll_send]
movsxd rdx, eax
cmp rdx, rdi
jne 0x14001c2b8
mov rcx, qword [rsi + 8]
xor r9d, r9d
lea rdx, [rsp + 0x54]
lea r8d, [r9 + 0xc]
call qword [sym.imp.WSOCK32.dll_recv]
movsxd rcx, eax
cmp rcx, rdi
jne 0x14001c2b8
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0x48]
mov r8, rdi
call fcn.140175d80
test eax, eax
jne 0x14001c2b8
mov rcx, rbx
call qword [sym.imp.WSOCK32.dll_closesocket]
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.WSOCK32.dll_closesocket]
mov rcx, qword [rsi]
call qword [sym.imp.WSOCK32.dll_closesocket]
mov rcx, qword [rsi + 8]
call qword [sym.imp.WSOCK32.dll_closesocket]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
or eax, 0xffffffff
add rsp, 0x60
pop rdi
ret

Function at 0x14001c3c0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call fcn.14017a9c4
test rax, rax
je 0x14001c3e9
cmp rax, 0xffffffffffffffff
jne 0x14001c3eb
xor eax, eax
add rsp, 0x38
ret
Function at 0x14001f2a0
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x50
mov rdi, r8
xor r12d, r12d
mov rbx, r9
mov rsi, rdx
mov rbp, rcx
mov r8, r9
mov rcx, rdi
xor edx, edx
mov qword [rax - 0x28], r12
mov qword [rax - 0x30], r12
mov dword [rax + 0x20], r12d
mov dword [rax - 0x38], 4
mov dword [rax - 0x34], ebx
call fcn.140175ab0
mov r9d, dword [rsp + 0x90]
lea rcx, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0xf0000040
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14001f3bc
mov edx, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14001f39a
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14001f39a
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x88]
lea edx, [r12 + 4]
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x14001f39a
mov eax, dword [rsp + 0x88]
cmp rbx, rax
jb 0x14001f39a
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x34]
lea edx, [r12 + 2]
mov r8, rdi
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14001f3aa
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14001f3bc
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r12
pop rdi
pop rsi
ret

Function at 0x140021430
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov r12, rcx
mov ebx, 1
xor ecx, ecx
mov edx, ebx
xor ebp, ebp
call qword [fcn.140186fa0]
mov rdi, rax
test rax, rax
je 0x1400214ad
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r12
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x1400214d8
cmp ebx, esi
je 0x1400214d8
cmp ebx, 0x8000
ja 0x1400214d8
cmp ebx, esi
jb 0x1400214d3
mov edx, ebx
mov rcx, rdi
call qword [fcn.140186fa0]
mov rdi, rax
test rax, rax
jne 0x140021470
mov rcx, rbp
call qword [fcn.14017eed8]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
mov rax, rdi
jmp 0x1400214b8
mov rcx, rdi
jmp 0x1400214b0
jmp 0x140021430
Function at 0x1400214e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov r12, rcx
mov ebx, 1
xor ecx, ecx
mov edx, ebx
xor ebp, ebp
call qword [fcn.140186fa0]
mov rdi, rax
test rax, rax
je 0x1400214ad
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r12
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x1400214d8
cmp ebx, esi
je 0x1400214d8
cmp ebx, 0x8000
ja 0x1400214d8
cmp ebx, esi
jb 0x1400214d3
mov edx, ebx
mov rcx, rdi
call qword [fcn.140186fa0]
mov rdi, rax
test rax, rax
jne 0x140021470
mov rcx, rbp
call qword [fcn.14017eed8]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
mov rax, rdi
jmp 0x1400214b8
mov rcx, rdi
jmp 0x1400214b0
jmp 0x140021430
Function at 0x140027470
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov rax, rsp
push rbx
push rdi
push r12
sub rsp, 0xb0
mov rbx, qword [rcx + 0xa80]
mov rdi, qword [rcx]
mov dword [rax + 8], 0x80
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
lea rax, [rax + 8]
mov qword [rsp + 0x28], rax
mov r12, rcx
mov rcx, qword [rbx + 0x18]
lea rax, [rsp + 0x30]
add r8d, 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WSOCK32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1400274fb
movsxd r8, dword [rsp + 0xd0]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x30]
call fcn.1401756a0
mov r11d, dword [rsp + 0xd0]
mov dword [rbx + 0x150], r11d
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xd8], rbp
mov qword [rsp + 0xe0], rsi
cmp r8d, 4
jge 0x14002754c
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.14000ffd0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0xe0]
mov rbp, qword [rsp + 0xd8]
add rsp, 0xb0
pop r12
pop rdi
pop rbx
ret
mov rcx, qword [rbx + 0x168]
movzx eax, byte [rcx]
shl ax, 8
movzx edx, ax
movzx eax, byte [rcx + 1]
or edx, eax
mov dword [rbx + 0xc], edx
sub edx, 3
je 0x140027621
dec edx
je 0x14002769f
dec edx
je 0x1400275be
dec edx
je 0x14002759a
lea r8, str.Internal_error:_Unexpected_packet
lea rdx, [0x1401b3564]
mov rcx, rdi
call fcn.14000ffd0
jmp 0x14002769f
mov rdx, qword [rbx + 0x168]
add r8d, 0xfffffffe
mov rcx, rbx
add rdx, 2
call fcn.140026060
test eax, eax
je 0x14002769f
jmp 0x140027530
mov rdx, qword [rbx + 0x168]
mov rsi, qword [rbx + 0x168]
lea eax, [r8 - 4]
movsxd rbp, eax
movzx eax, byte [rdx + 2]
add rsi, 4
shl ax, 8
mov r8, rbp
movzx ecx, ax
movzx eax, byte [rdx + 3]
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call fcn.140176060
test rax, rax
je 0x14002769f
sub rax, rsi
cmp rax, rbp
jae 0x14002769f
lea rdx, str.TFTP_error:__s_n
mov r8, rsi
mov rcx, rdi
call fcn.14000fe70
jmp 0x14002769f
cmp r8d, 4
jle 0x14002769f
mov rcx, qword [rbx + 0x168]
movzx eax, byte [rcx + 2]
shl ax, 8
movzx edx, ax
movzx eax, byte [rcx + 3]
or edx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, edx
jne 0x14002769f
lea eax, [r8 - 4]
lea r8, [rcx + 4]
mov edx, 1
movsxd r9, eax
mov rcx, r12
call fcn.1400103e0
mov esi, eax
test eax, eax
je 0x14002767e
mov edx, 5
mov rcx, rbx
call fcn.1400273f0
mov eax, esi
jmp 0x140027530
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140020270
mov rcx, r12
call fcn.1400209b0
test eax, eax
je 0x14002752e
mov edx, 5
mov rcx, rbx
call fcn.1400273f0
mov eax, Ordinal_46
jmp 0x140027530
Function at 0x1400279d0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp dword [rcx + 0x1030], 0
movsxd r10, r9d
mov r11, rcx
je 0x140027afd
cmp r8d, 0xff
jne 0x140027a34
lea eax, [r10 - 0xec]
mov r8, rdx
cmp eax, 0x13
ja 0x140027a21
lea rcx, [0x140000000]
lea rdx, str._s_IAC__s_n
mov r9, qword [rcx + r10*8 + 0x1b3850]
mov rcx, r11
add rsp, 0x38
jmp fcn.14000fe70
lea rdx, str._s_IAC__d_n
mov r9d, r10d
add rsp, 0x38
jmp fcn.14000fe70
cmp r8d, 0xfb
jne 0x140027a46
lea r9, str.WILL
jmp 0x140027a84
cmp r8d, 0xfc
jne 0x140027a58
lea r9, str.WONT
jmp 0x140027a84
cmp r8d, 0xfd
jne 0x140027a6a
lea r9, [0x1401b3c3c]
jmp 0x140027a84
xor r9d, r9d
cmp r8d, 0xfe
lea rax, str.DONT
cmove r9, rax
test r9, r9
je 0x140027ae6
cmp r10d, 0x27
jg 0x140027aba
lea rcx, [0x140000000]
mov rcx, qword [rcx + r10*8 + 0x1b3e70]
test rcx, rcx
jne 0x140027aca
mov r8, rdx
lea rdx, str._s__s__d_n
mov rcx, r11
mov dword [rsp + 0x20], r10d
call fcn.14000fe70
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x140027a9e
lea rcx, str.EXOPL
mov r8, rdx
mov qword [rsp + 0x20], rcx
lea rdx, str._s__s__s_n
mov rcx, r11
call fcn.14000fe70
add rsp, 0x38
ret
mov r9d, r8d
mov r8, rdx
lea rdx, [0x1401b40d8]
mov dword [rsp + 0x20], r10d
call fcn.14000fe70
add rsp, 0x38
ret

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
xor r9d, r9d
mov rbx, rcx
mov rcx, qword [rcx + 0x4c0]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x11], dl
mov byte [rax + 0x12], r8b
lea r8d, [r9 + 3]
lea rdx, [rax + 0x10]
mov byte [rax + 0x10], 0xff
call qword [sym.imp.WSOCK32.dll_send]
test eax, eax
jns 0x140027b6e
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14000ffd0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.1400279d0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
movsxd r9, edx
mov r11, rcx
mov r8, qword [rax + 0x1b0]
mov r10d, dword [r8 + r9*4 + 0xc08]
test r10d, r10d
je 0x140027c54
sub r10d, 2
je 0x140027c0a
dec r10d
jne 0x140027c3e
mov ecx, dword [r8 + r9*4 + 0x1008]
test ecx, ecx
je 0x140027bf9
dec ecx
jne 0x140027c3e
mov dword [r8 + r9*4 + 0xc08], 1
mov dword [r8 + r9*4 + 0x1008], ecx
add rsp, 0x28
ret
mov dword [r8 + r9*4 + 0xc08], 0
add rsp, 0x28
ret
mov ecx, dword [r8 + r9*4 + 0x1008]
test ecx, ecx
je 0x140027c43
dec ecx
jne 0x140027c3e
mov dword [r8 + r9*4 + 0x1008], ecx
mov dword [r8 + r9*4 + 0xc08], 3
mov rcx, r11
mov r8d, edx
mov edx, 0xfe
call fcn.140027b10
add rsp, 0x28
ret
mov dword [r8 + r9*4 + 0xc08], 1
add rsp, 0x28
ret
cmp dword [r8 + r9*4 + 0x1408], 1
jne 0x140027c31
mov dword [r8 + r9*4 + 0xc08], 1
mov r8d, edx
mov edx, 0xfd
add rsp, 0x28
jmp fcn.140027b10
Function at 0x140027c80
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
movsxd r9, edx
mov r11, rcx
mov r8, qword [rax + 0x1b0]
mov r10d, dword [r8 + r9*4 + 0xc08]
dec r10d
je 0x140027d1f
dec r10d
je 0x140027cf8
dec r10d
jne 0x140027d36
mov ecx, dword [r8 + r9*4 + 0x1008]
test ecx, ecx
je 0x140027ce9
dec ecx
jne 0x140027d36
xor eax, eax
mov dword [r8 + r9*4 + 0xc08], 2
mov rcx, r11
mov dword [r8 + r9*4 + 0x1008], eax
mov r8d, edx
mov edx, 0xfd
add rsp, 0x28
jmp fcn.140027b10
xor eax, eax
mov dword [r8 + r9*4 + 0xc08], eax
add rsp, 0x28
ret
mov ecx, dword [r8 + r9*4 + 0x1008]
test ecx, ecx
je 0x140027ce9
dec ecx
jne 0x140027d36
xor eax, eax
mov dword [r8 + r9*4 + 0xc08], eax
mov dword [r8 + r9*4 + 0x1008], eax
add rsp, 0x28
ret
xor eax, eax
mov dword [r8 + r9*4 + 0xc08], eax
mov r8d, edx
mov edx, 0xfe
call fcn.140027b10
add rsp, 0x28
ret

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

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
movsxd r9, edx
mov r11, rcx
mov r8, qword [rax + 0x1b0]
mov r10d, dword [r8 + r9*4 + 8]
dec r10d
je 0x140027dcf
dec r10d
je 0x140027dab
dec r10d
jne 0x140027de3
mov ecx, dword [r8 + r9*4 + 0x408]
test ecx, ecx
je 0x140027d9f
dec ecx
jne 0x140027de3
xor eax, eax
mov dword [r8 + r9*4 + 8], 2
mov rcx, r11
mov dword [r8 + r9*4 + 0x408], eax
mov r8d, edx
mov edx, 0xfb
add rsp, 0x28
jmp fcn.140027b10
xor eax, eax
mov dword [r8 + r9*4 + 8], eax
add rsp, 0x28
ret
mov ecx, dword [r8 + r9*4 + 0x408]
test ecx, ecx
je 0x140027d9f
dec ecx
jne 0x140027de3
xor eax, eax
mov dword [r8 + r9*4 + 8], eax
mov dword [r8 + r9*4 + 0x408], eax
add rsp, 0x28
ret
xor eax, eax
mov dword [r8 + r9*4 + 8], eax
mov r8d, edx
mov edx, 0xfc
call fcn.140027b10
add rsp, 0x28
ret
Function at 0x140028a50
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x140028bfe
push rbp
push rdi
push r13
sub rsp, 0x30
mov rbp, qword [rcx]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x28], rsi
mov rdi, qword [rbp + 0x1b0]
mov r13, rcx
mov qword [rsp + 0x20], r12
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x140028a99
mov byte [rsi], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140028aa7
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140028ab5
mov byte [rax], Ordinal_33
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WSOCK32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r12d, ax
mov word [rsp + 0x58], ax
call qword [sym.imp.WSOCK32.dll_htons]
mov rcx, qword [rbx]
movzx r11d, ax
mov word [rsp + 0x50], ax
cmp rcx, rbx
jae 0x140028aef
mov byte [rcx], r12b
inc qword [rbx]
mov rdx, qword [rbx]
mov r12, qword [rsp + 0x20]
cmp rdx, rbx
jae 0x140028b06
movzx ecx, byte [rsp + 0x59]
mov byte [rdx], cl
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140028b14
mov byte [rax], r11b
inc qword [rbx]
mov rcx, qword [rbx]
cmp rcx, rbx
jae 0x140028b26
movzx eax, byte [rsp + 0x51]
mov byte [rcx], al
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140028b34
mov byte [rax], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140028b42
mov byte [rax], 0xf0
inc qword [rbx]
mov rax, qword [rbx]
lea r8, [rdi + 0x1cba]
mov edx, 0x3e
mov r9, rax
mov rcx, rbp
mov qword [rbx], rsi
sub r9, rsi
mov qword [rdi + 0x1ec0], rax
sub r9, 2
call fcn.140027df0
mov rcx, qword [r13 + 0x4c0]
xor r9d, r9d
lea r8d, [r9 + 3]
mov rdx, rsi
call qword [sym.imp.WSOCK32.dll_send]
mov rsi, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x60]
test eax, eax
jns 0x140028baa
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14000ffd0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r13
call fcn.140028750
mov rcx, qword [r13 + 0x4c0]
xor r9d, r9d
lea r8d, [r9 + 2]
lea rdx, [rdi + 0x1cbf]
call qword [sym.imp.WSOCK32.dll_send]
test eax, eax
jns 0x140028bf6
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14000ffd0
add rsp, 0x30
pop r13
pop rdi
pop rbp
repz ret
Function at 0x14002ec00
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0xa0
mov rbp, qword [rcx + 0x4c8]
mov rsi, qword [rcx]
mov rdi, rcx
lea r8, [rax + 8]
lea rdx, [rsp + 0x20]
mov rcx, rbp
or rbx, 0xffffffffffffffff
mov dword [rax + 8], 0x80
call qword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
jne 0x14002ec69
lea r8, [rsp + 0xb0]
lea rdx, [rsp + 0x20]
mov rcx, rbp
mov dword [rsp + 0xb0], 0x80
call qword [sym.imp.WSOCK32.dll_accept]
mov rbx, rax
mov rdx, rbp
mov rcx, rdi
call fcn.140018440
mov rcx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x14002ec91
lea rdx, str.Error_accept__ing_server_connect
call fcn.14000ffd0
lea eax, [rbx + 0x1f]
jmp 0x14002ed13
lea rdx, str.Connection_accepted_from_server_n
call fcn.14000fe70
mov edx, 1
mov rcx, rbx
mov dword [rdi + 0x6c8], 0
mov qword [rdi + 0x4c8], rbx
call fcn.1400402f0
mov dword [rdi + 0x714], 1
cmp qword [rsi + 0x730], 0
je 0x14002ed11
mov edx, 1
mov rcx, rsi
call fcn.14000d940
mov rcx, qword [rsi + 0x738]
mov r8d, 1
mov rdx, rbx
call qword [rsi + 0x730]
xor edx, edx
mov rcx, rsi
mov ebx, eax
call fcn.14000d940
test ebx, ebx
je 0x14002ed11
mov rcx, rdi
call fcn.14002eaf0
mov eax, Ordinal_46
jmp 0x14002ed13
xor eax, eax
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140032b50
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, 0x51eb851f
mov edi, r8d
mov r8d, edx
xor ebx, ebx
mov rsi, rcx
mov rcx, qword [rcx]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
je 0x140032ba2
lea rdx, str.Couldnt_set_desired_mode
call fcn.14000ffd0
lea eax, [rbx + 0x11]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp r8d, 0xc8
je 0x140032bb7
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.14000fe70
cmp edi, 0x13
jne 0x140032bc6
mov rcx, rsi
call fcn.140032ac0
jmp 0x140032bf6
cmp edi, 0x14
jne 0x140032bd5
mov rcx, rsi
call fcn.14002f900
jmp 0x140032bf6
cmp edi, 0x15
jne 0x140032be0
lea r8d, [rdi - 8]
jmp 0x140032be9
cmp edi, 0x16
jne 0x140032bf8
lea r8d, [rdi - 8]
mov edx, 1
mov rcx, rsi
call fcn.140031cf0
mov ebx, eax
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
add rcx, 0xa80
cmp r8d, 0x1b
je 0x140032e21
cmp edx, 0x15e
jne 0x140032e14
mov rax, qword [str.Accept_ranges:_bytes_r_n]
lea r8, [rsp + 0x20]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov rax, qword [0x1401b5070]
mov rcx, rbx
mov qword [rsp + 0x28], rax
mov eax, dword [0x1401b5078]
mov dword [rsp + 0x30], eax
movzx eax, word [0x1401b507c]
mov word [rsp + 0x34], ax
movzx eax, byte [0x1401b507e]
mov byte [rsp + 0x36], al
xor eax, eax
lea edx, [rax + 3]
mov byte [rsp + 0x37], al
call fcn.1400103e0
test eax, eax
jne 0x140032e64
mov rcx, rbx
add rsp, 0x40
pop rbx
jmp fcn.140032990
cmp edx, 0x15e
je 0x140032e43
mov rcx, qword [rbx]
lea rdx, str.Couldnt_use_REST
call fcn.14000ffd0
mov eax, Ordinal_33
add rsp, 0x40
pop rbx
ret
mov r8, qword [rcx + 0xa8]
lea rdx, str.RETR__s
call fcn.1400477a0
test eax, eax
jne 0x140032e64
mov dword [rbx + 0xb60], 0x20
add rsp, 0x40
pop rbx
ret
Function at 0x1400333a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, qword [rcx]
mov ebx, dword [rcx + 0xb54]
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov rdi, rcx
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
je 0x14003342c
test ebx, ebx
jne 0x1400333ea
lea rdx, str.disabling_EPRT_usage_n
mov rcx, rsi
call fcn.14000fe70
mov dword [rdi + 0x6e0], ebx
inc ebx
cmp ebx, 2
jne 0x140033413
lea rdx, str.Failed_to_do_PORT
mov rcx, rsi
call fcn.14000ffd0
lea eax, [rbx + 0x1c]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov edx, ebx
mov rcx, rdi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp 0x14002efc0
lea rdx, str.Connect_data_stream_actively_n
mov rcx, rsi
call fcn.14000fe70
mov dword [rdi + 0xb60], 0
mov rcx, qword [rdi]
mov rax, qword [rcx + 0x1b0]
cmp dword [rax + 0x10], 0
je 0x14003346e
or r8, 0xffffffffffffffff
xor r9d, r9d
mov dword [rsp + 0x20], 0xffffffff
or edx, r8d
call fcn.14003edd0
jmp 0x140033478
mov dword [rdi + 0x6c8], 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov dword [rdi + 0xb34], 1
xor eax, eax
add rsp, 0x30
pop rdi
ret