joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002580
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x1400025a2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14000261c
mov rdi, r14
mov rcx, rbx
call fcn.1400039f0
test rax, rax
jle 0x1400025f4
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.14007c950
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000260c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
cmp eax, 0xffffffff
je 0x140002614
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1400025b6
sub r14, rdi
jmp 0x1400026ff
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140002633
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002635
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002667
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.14007c950
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400026fc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400026a2
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x1400026dd
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140056fd8
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1400026fc
cmp rbp, rax
ja 0x1400026b0
test rbp, rbp
je 0x1400026fc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140056fd8
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x14000e0f0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rsi, [rcx + rdx]
mov rbx, rcx
mov edi, 0x1505
cmp rcx, rsi
jae 0x14000de3b
movzx ecx, byte [rbx]
call fcn.14001b890
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x14000de20
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
movzx eax, dil
add rsp, 0x20
pop rdi
ret
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14000e126
call fcn.14000e470
test al, al
jne 0x14000e126
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14000e3c0
mov rdx, qword [rsp + 0x30]
mov rcx, rax
add rsp, 0x20
pop rbx
jmp 0x14000de00
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140018480
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 0x1400184bb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov edx, 0x51
cmp eax, 0x2733
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0xb0
mov rax, qword [0x1400a2180]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r14, qword [rsp + 0x100]
mov rsi, r9
movsxd rax, edx
mov rdi, r8
mov r15, rcx
mov rbx, qword [rcx + rax*8 + 0x258]
call fcn.140018bf0
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
movsxd rdi, eax
mov dword [r14], 0
cmp rdi, 0xffffffffffffffff
jne 0x140018692
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x14001865e
mov dword [r14], 0x51
xor eax, eax
jmp 0x140018695
mov r8d, Ordinal_133
lea rdx, [rsp + 0x20]
mov ecx, ebx
call fcn.140041490
mov rcx, qword [r15]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.1400181d0
mov rcx, qword [r15]
mov dword [rcx + 0x1140], ebx
mov dword [r14], gethostname
mov rax, rdi
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14004eb80
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
movsxd rcx, edx
mov rax, qword [rsi + 0x430]
lea rbx, [rcx + 0x15]
shl rbx, 5
add rbx, rsi
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x7c], 3
je 0x140018ce4
lea rax, [0x140018500]
cmp qword [rsi + rcx*8 + 0x280], rax
jne 0x140018ce4
cmp qword [rbx], 0
je 0x140018c4d
test rdi, rdi
je 0x140018ce4
mov rdx, 0xffffffffffffffff
mov qword [rsp + 0x30], rbp
mov rbp, qword [rsi + rcx*8 + 0x258]
xor r9d, r9d
mov rcx, rbp
mov r8, rdx
call fcn.14001b4d0
cmp eax, 0xffffffff
je 0x140018cdf
test al, 1
je 0x140018cdf
mov rax, qword [rbx]
test rax, rax
jne 0x140018cb4
mov rax, qword [rsi]
mov ecx, dword [rax + 0xb68]
add ecx, ecx
movsxd rcx, ecx
mov qword [rbx + 8], rcx
call qword [fcn.14005a818]
mov rdi, qword [rbx + 8]
mov qword [rbx], rax
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
test rax, rax
je 0x140018cd7
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rax
mov r8d, edi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x140018cdf
add qword [rbx + 0x10], rcx
jmp 0x140018cdf
mov qword [rbx + 8], 0
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140018ea0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x2f0], 0
je 0x140018ebd
call fcn.1400128f0
test eax, eax
jne 0x140018ee3
xor al, al
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x258]
cmp rcx, 0xffffffffffffffff
je 0x140018eb6
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x140018eb6
mov al, 1
add rsp, 0x28
ret
Function at 0x1400198f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x1c0
mov rax, qword [0x1400a2180]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
cmp dword [rcx + 0xbc], 3
mov rdi, rdx
mov rbx, rcx
jne 0x140019b2f
cmp byte [rcx + 0x3ed], 0
mov qword [rsp + 0x1e0], rsi
jne 0x140019b1f
cmp byte [rcx + 0x408], 0
jne 0x140019b1f
mov rsi, qword [rcx]
lea r8, [rsp + 0x20]
mov rcx, rdi
mov dword [rsp + 0x20], Ordinal_133
lea rdx, [rsp + 0xb0]
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x1400199a0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, Ordinal_133
lea rdx, [rsp + 0x130]
mov ecx, eax
mov ebx, eax
call fcn.140041490
mov r9, rax
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1400181d0
jmp 0x140019b27
xorps xmm0, xmm0
mov dword [rsp + 0x24], Ordinal_133
lea r8, [rsp + 0x24]
mov rcx, rdi
lea rdx, [rsp + 0x30]
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 0x140019a2a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, Ordinal_133
lea rdx, [rsp + 0x130]
mov ecx, eax
mov ebx, eax
call fcn.140041490
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1400181d0
jmp 0x140019b27
mov edx, dword [rsp + 0x20]
lea rdi, [rbx + 0x18e]
mov r8, rdi
lea r9, [rbx + 0x1bc]
lea rcx, [rsp + 0xb0]
call fcn.140018d00
test al, al
jne 0x140019a8e
call fcn.14005b688
mov ebx, dword [rax]
call fcn.14005b688
mov r8d, Ordinal_133
lea rdx, [rsp + 0x130]
mov ecx, ebx
mov rdi, rax
call fcn.140041490
mov r8d, dword [rdi]
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.1400181d0
jmp 0x140019b27
movups xmm0, xmmword [rdi]
mov eax, dword [rdi + 0x28]
lea r9, [rbx + 0x1f0]
movups xmm1, xmmword [rdi + 0x10]
mov edx, dword [rsp + 0x24]
lea r8, [rbx + 0x1c0]
movups xmmword [rbx + 0x88], xmm0
lea rcx, [rsp + 0x30]
movsd xmm0, qword [rdi + 0x20]
movups xmmword [rbx + 0x98], xmm1
movsd qword [rbx + 0xa8], xmm0
mov dword [rbx + 0xb0], eax
movzx eax, word [rdi + 0x2c]
mov word [rbx + 0xb4], ax
call fcn.140018d00
test al, al
jne 0x140019b1f
call fcn.14005b688
mov ebx, dword [rax]
call fcn.14005b688
mov r8d, Ordinal_133
lea rdx, [rsp + 0x130]
mov ecx, ebx
mov rdi, rax
call fcn.140041490
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.1400181d0
jmp 0x140019b27
mov rcx, rbx
call fcn.140019510
mov rsi, qword [rsp + 0x1e0]
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14004eb80
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1c0
pop rdi
ret
Function at 0x14001a4f0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400a2180]
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 + 0xebc], 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 0x14001a55f
mov r8, rdi
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov rcx, rbx
call fcn.1400182e0
jmp 0x14001a5ee
mov ecx, dword [rbx + 0xe1c]
mov dword [rsp + 0x58], 1
call fcn.14001a890
imul ecx, eax, 0x3e8
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rbx + 0xe20]
call fcn.14001a890
imul ecx, eax, 0x3e8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], rsi
mov r9d, recvfrom
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 0x14001a5ee
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.1400182e0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14004eb80
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14001a610
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0xd0
mov rax, qword [0x1400a2180]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx]
lea r9, [rsp + 0x30]
mov rax, rdx
mov dword [rsp + 0x30], 1
mov edx, 6
mov dword [rsp + 0x20], 4
mov rcx, rax
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x14001a688
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, Ordinal_133
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.140041490
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
call fcn.1400182e0
jmp 0x14001a697
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.1400182e0
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14004eb80
add rsp, 0xd0
pop rbx
ret
Function at 0x140022570
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 [0x1400a2180]
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 0x1400225c5
jmp 0x140022774
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 0x14002274b
lea r8d, [rbx + 0x10]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x14002274b
lea r8, [rsp + 0x34]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x14002274b
lea edx, [rbx + 1]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x14002274b
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 0x14002274b
lea r8d, [rbx + 0x10]
mov rcx, rax
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14002274b
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 0x14002274b
mov r9, rsi
lea r8, [0x140080a30]
lea edx, [rbx + 0xc]
lea rcx, [rsp + 0x48]
call fcn.1400264d0
lea rax, [rsp + 0x48]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400226e5
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 0x14002274b
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 0x14002274b
mov r8, rbx
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0x48]
call fcn.14007d430
test eax, eax
jne 0x14002274b
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x14002276c
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.14004eb80
lea r11, [rsp + 0x70]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140028580
Capabilities:
Resolve dns

Disassembly:
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov r12, r9
mov qword [r9], r13
mov esi, r13d
lea r9, [rsp + 0x68]
mov r15d, r13d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x14002871e
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x140028703
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov eax, dword [rdi + 4]
cmp eax, 2
jne 0x1400285dd
lea ebp, [rax + 0xe]
jmp 0x1400285e9
cmp eax, 0x17
jne 0x140028691
lea ebp, [rax + 5]
cmp qword [rdi + 0x20], r13
je 0x140028691
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x140028691
cmp rax, rbp
jb 0x140028691
mov ecx, 0x30
call qword [fcn.14005a818]
mov rbx, rax
test rax, rax
je 0x1400286cc
mov eax, dword [rdi]
mov rcx, rbp
mov dword [rbx], eax
mov eax, dword [rdi + 4]
mov dword [rbx + 4], eax
mov eax, dword [rdi + 8]
mov dword [rbx + 8], eax
mov eax, dword [rdi + 0xc]
mov dword [rbx + 0xc], eax
mov dword [rbx + 0x10], ebp
mov qword [rbx + 0x20], r13
mov qword [rbx + 0x18], r13
mov qword [rbx + 0x28], r13
call qword [fcn.14005a818]
mov qword [rbx + 0x20], rax
test rax, rax
je 0x1400286bb
mov rdx, qword [rdi + 0x20]
mov r8, rbp
mov rcx, rax
call fcn.14007c950
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x14002867e
call qword [case.0x14000e729.0]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x1400286a0
test rsi, rsi
cmove rsi, rbx
test r15, r15
je 0x14002868e
mov qword [r15 + 0x28], rbx
mov r15, rbx
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x1400285d0
jmp 0x1400286d2
mov rcx, qword [rbx + 0x20]
mov r14d, 8
call qword [fcn.140056bb4]
mov rcx, rbx
call qword [fcn.140056bb4]
jmp 0x1400286d2
mov rcx, rbx
mov r14d, 8
call qword [fcn.140056bb4]
jmp 0x1400286d2
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400286ec
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r14d, r14d
je 0x1400286fe
mov rcx, rsi
call fcn.140028530
mov rsi, r13
jmp 0x140028712
test rsi, rsi
jne 0x140028712
mov r14d, 0x2af9
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov eax, r14d
mov qword [r12], rsi
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rsi
ret

Function at 0x14002bf30
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1038
call fcn.14004f1d0
sub rsp, rax
mov rax, qword [0x1400a2180]
xor rax, rsp
mov qword [rsp + 0x1020], rax
call fcn.1400650d0
mov byte [rsp + 0x20], 0
test rax, rax
je 0x14002bf9c
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x14002bf9c
lea rcx, [rsp + 0x20]
call qword [case.0x14000e729.0]
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14004eb80
add rsp, 0x1038
ret
xor eax, eax
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14004eb80
add rsp, 0x1038
ret
jmp 0x14002bf30
Function at 0x14002bfc0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1038
call fcn.14004f1d0
sub rsp, rax
mov rax, qword [0x1400a2180]
xor rax, rsp
mov qword [rsp + 0x1020], rax
call fcn.1400650d0
mov byte [rsp + 0x20], 0
test rax, rax
je 0x14002bf9c
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x14002bf9c
lea rcx, [rsp + 0x20]
call qword [case.0x14000e729.0]
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14004eb80
add rsp, 0x1038
ret
xor eax, eax
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14004eb80
add rsp, 0x1038
ret
jmp 0x14002bf30

Function at 0x1400321b0
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 [0x1400a2180]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbp, qword [rcx + 0x260]
lea r8, [rsp + 0x20]
mov rsi, qword [rcx]
lea rdx, [rsp + 0x30]
mov rdi, rcx
mov dword [rsp + 0x20], Ordinal_133
mov rcx, rbp
mov rbx, 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14003222a
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 rdx, rbp
mov rcx, rdi
call fcn.140018da0
mov rcx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x14003224f
lea rdx, str.Error_accept__ing_server_connect
call fcn.1400181d0
lea eax, [rbx + 0x1f]
jmp 0x1400322c8
lea rdx, str.Connection_accepted_from_server_n
call fcn.1400182e0
mov edx, 1
mov byte [rdi + 0x3f8], 0
mov rcx, rbx
mov qword [rdi + 0x260], rbx
call fcn.1400245f0
mov byte [rdi + 0x279], 1
cmp qword [rsi + 0x728], 0
je 0x1400322c6
mov dl, 1
mov rcx, rsi
call fcn.14000a2a0
mov rcx, qword [rsi + 0x730]
mov r8d, 1
mov rdx, rbx
call qword [rsi + 0x728]
xor edx, edx
mov rcx, rsi
mov ebx, eax
call fcn.14000a2a0
test ebx, ebx
je 0x1400322c6
mov rcx, rdi
call fcn.1400327d0
mov eax, Ordinal_46
jmp 0x1400322c8
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14004eb80
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 0x140033310
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rcx + 0x82a], 0
mov rbx, rcx
jne 0x1400333c3
xor r10d, r10d
mov dword [rcx + 0x848], r10d
mov rax, qword [rcx]
mov ecx, r10d
cmp dword [rax + 0xba4], 2
sete cl
mov dword [rbx + 0x84c], ecx
cmp byte [rbx + 0x3ed], r10b
je 0x14003337c
mov r8, qword [rbx + 0x808]
test r8, r8
je 0x14003337c
cmp dword [rbx + 0x818], r10d
je 0x140033373
mov rax, qword [rbx + 0x810]
mov rdx, qword [rax]
cmp byte [rdx], 0x2f
je 0x14003337c
mov dword [rbx + 0x82c], r10d
jmp 0x140033399
cmp dword [rbx + 0x818], r10d
je 0x1400333c0
mov r8, qword [rbx + 0x810]
mov dword [rbx + 0x82c], 1
mov r8, qword [r8]
lea rdx, str.CWD__s
lea rcx, [rbx + 0x798]
call fcn.140049870
test eax, eax
jne 0x1400333cd
lea edx, [rax + 0x10]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400327c0
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140033780
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
add rcx, 0x798
cmp byte [rax + 0xe99], 0
jne 0x1400337a5
cmp dword [rax + 0x9f0], 0
je 0x1400337d1
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x1400337d1
lea rdx, str.MDTM__s
call fcn.140049870
test eax, eax
jne 0x1400337de
lea edx, [rax + 0x12]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400327c0
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140034870
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, qword [rcx]
lea eax, [rdx - 0xc8]
mov rdi, rcx
cmp eax, 0x64
jb 0x140033fa1
mov qword [rsp + 0x30], rbx
mov ebx, dword [rcx + 0x844]
test ebx, ebx
jne 0x140033f5f
lea rdx, str.disabling_EPRT_usage_n
mov rcx, rsi
call fcn.1400182e0
mov byte [rdi + 0x3ff], bl
inc ebx
cmp ebx, 2
jne 0x140033f88
lea rdx, str.Failed_to_do_PORT
mov rcx, rsi
call fcn.1400181d0
lea eax, [rbx + 0x1c]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov edx, ebx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x140034c20
lea rdx, str.Connect_data_stream_actively_n
mov rcx, rsi
call fcn.1400182e0
xor edx, edx
mov rcx, rdi
call fcn.1400327c0
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140032940
Function at 0x1400342e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
mov rdx, qword [rax + 0x1e0]
cmp dword [rdx + 0x20], 0
je 0x14003432d
cmp qword [rcx + 0x820], 0
je 0x14003432d
add rcx, 0x798
lea rdx, str.REST__d
xor r8d, r8d
call fcn.140049870
test eax, eax
jne 0x140034337
lea edx, [rax + 0x1a]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400327c0
add rsp, 0x20
pop rbx
jmp fcn.140033fd0
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x798
mov rax, qword [rbx]
mov rdx, qword [rax + 0x1e0]
cmp dword [rdx + 0x20], 1
jne 0x14003461c
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x14003461c
lea rdx, str.SIZE__s
call fcn.140049870
test eax, eax
jne 0x140034629
lea edx, [rax + 0x17]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400327c0
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400342e0
add rsp, 0x20
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
mov r10, qword [rcx]
mov r9, rcx
cmp byte [r10 + 0xeac], 0
je 0x1400348c7
cmp qword [rcx + 0x820], 0
je 0x1400348c7
movzx edx, byte [r10 + 0xe9b]
call fcn.140032b90
test eax, eax
je 0x1400348c7
mov rax, qword [r10 + 0x1e0]
mov r8d, reloc.WS2_32.dll_send
mov rcx, r9
mov dword [rax + 0x20], 1
movzx edx, byte [r10 + 0xe9b]
add rsp, 0x28
jmp fcn.140032b00
mov rcx, r9
add rsp, 0x28
jmp fcn.1400345d0
Function at 0x140039d40
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1d0
mov rax, qword [0x1400a2180]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140039d86
mov r8d, eax
lea rdx, str.WSAStartup_failed___d_
mov rcx, rbx
call fcn.1400181d0
jmp 0x140039db0
call qword [sym.imp.WS2_32.dll_WSACleanup]
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x140039da1
shr ax, 8
test al, al
jne 0x140039da1
xor eax, eax
jmp 0x140039db5
lea rdx, str.insufficient_winsock_version_to_support_telnet
mov rcx, rbx
call fcn.1400181d0
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14004eb80
add rsp, 0x1d0
pop rbx
ret