joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401a1da0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, qword [rsp + 0x50]
xor eax, eax
mov qword [r9], rax
mov rsi, r9
mov rbx, r8
mov rdi, rdx
mov qword [r14], rax
test r8, r8
jne 0x1401a1de8
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rdx + rbx], al
jne 0x1401a1de0
lea rcx, [rbx + 2]
movabs rbp, 0xaaaaaaaaaaaaaaab
mov rax, rbp
mul rcx
shr rdx, 1
lea rcx, [rdx*4 + 1]
call qword [fcn.14022b0a0]
mov rcx, rax
mov r9, rax
test rax, rax
jne 0x1401a1e21
lea eax, [r9 + 0x1b]
jmp 0x1401a1f12
lea r10, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
cmp rbx, 3
jb 0x1401a1ea7
mov rax, rbp
mul rbx
mov r8, rdx
shr r8, 1
imul rax, r8, 0xfffffffffffffffd
add rbx, rax
movzx eax, byte [rdi]
shr rax, 2
movzx eax, byte [rax + r10]
mov byte [rcx], al
movzx edx, byte [rdi]
movzx eax, byte [rdi + 1]
and edx, 3
shr rax, 4
shl rdx, 4
or rdx, rax
movzx eax, byte [rdx + r10]
mov byte [rcx + 1], al
movzx edx, byte [rdi + 1]
movzx eax, byte [rdi + 2]
and edx, 0xf
shr rax, 6
shl rdx, 2
or rdx, rax
movzx eax, byte [rdx + r10]
mov byte [rcx + 2], al
movzx eax, byte [rdi + 2]
add rdi, 3
and eax, 0x3f
movzx eax, byte [rax + r10]
mov byte [rcx + 3], al
add rcx, 4
sub r8, 1
jne 0x1401a1e41
test rbx, rbx
je 0x1401a1f04
movzx eax, byte [rdi]
shr rax, 2
movzx eax, byte [rax + r10]
mov byte [rcx], al
movzx edx, byte [rdi]
and edx, 3
shl rdx, 4
cmp rbx, 1
jne 0x1401a1eda
movzx eax, byte [rdx + r10]
mov byte [rcx + 1], al
mov word [rcx + 2], 0x3d3d
jmp 0x1401a1f00
movzx eax, byte [rdi + 1]
shr rax, 4
or rax, rdx
movzx eax, byte [rax + r10]
mov byte [rcx + 1], al
movzx eax, byte [rdi + 1]
and eax, 0xf
movzx eax, byte [r10 + rax*4]
mov byte [rcx + 2], al
mov byte [rcx + 3], 0x3d
add rcx, 4
mov byte [rcx], 0
sub rcx, r9
mov qword [r14], rcx
xor eax, eax
mov qword [rsi], r9
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1401b45a0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x14033654c]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x1401b4600
xor r8d, r8d
mov dword [rsp + 0x20], 3
xor edx, edx
lea ecx, [rax + 6]
call fcn.1401a2140
test al, al
je 0x1401b45f4
mov dword [0x14033654c], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x14033654c], 1
jmp 0x1401b4605
cmp eax, 2
je 0x1401b4657
lea rax, [rsp + 0x58]
mov edx, 0xffff
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1401b4636
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x1401b4657
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret
Function at 0x1401b4df0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x148
mov rax, qword [0x14032f0c0]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rax, qword [rcx]
mov rdi, rcx
mov rsi, r9
mov rbp, r8
mov rcx, qword [rax + 0x10]
mov dword [r9], 0
xor r9d, r9d
mov rcx, qword [rcx + 0x98]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
jne 0x1401b4e8b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x1401b4e55
mov dword [rsi], 0x51
jmp 0x1401b4e84
lea rdx, [rsp + 0x30]
mov ecx, ebx
call fcn.1401b9030
mov rcx, qword [rdi + 8]
lea rdx, str.Recv_failure:__s
mov r8, rax
call fcn.14019b0a0
mov rax, qword [rdi + 8]
mov dword [rax + 0xd64], ebx
mov dword [rsi], gethostname
mov rbx, 0xffffffffffffffff
mov edx, dword [rsi]
lea r8, str.nw_in_read_len_zu______d__err_d
mov rcx, qword [rdi + 8]
mov r9, rbp
mov dword [rsp + 0x28], edx
mov rdx, qword [rdi]
mov dword [rsp + 0x20], ebx
call fcn.14019b2c0
mov rax, rbx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1401f4d70
add rsp, 0x148
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1401b51c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x1c0
mov rax, qword [0x14032f0c0]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rax, qword [rdx + 0x20]
mov rsi, rdx
mov rbx, qword [rcx + 0x10]
mov rcx, qword [rax + 0x2c8]
test dword [rcx + 0x84], 0x800
jne 0x1401b53a4
mov rcx, qword [rbx + 0x98]
lea r8, [rsp + 0x20]
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
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 0x1401b5293
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rsp + 0xb0]
mov ebx, eax
call fcn.1401b9030
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.14019b0a0
mov eax, 2
jmp 0x1401b53a6
movzx ecx, word [rsp + 0x30]
mov edx, ecx
sub edx, 1
je 0x1401b536d
sub edx, 1
je 0x1401b52e1
cmp edx, 0x15
jne 0x1401b5317
lea r9d, [rdx + 0x19]
lea rdx, [rsp + 0x38]
lea r8, [rbx + 0x114]
call qword [sym.imp.WS2_32.dll_inet_ntop]
test rax, rax
je 0x1401b5317
movzx ecx, word [rsp + 0x32]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rbx + 0x144], eax
jmp 0x1401b53a4
mov r9d, 0x2e
lea r8, [rbx + 0x114]
lea rdx, [rsp + 0x34]
call qword [sym.imp.WS2_32.dll_inet_ntop]
test rax, rax
je 0x1401b5317
movzx ecx, word [rsp + 0x32]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rbx + 0x144], eax
jmp 0x1401b53a4
mov byte [rbx + 0x114], 0
mov dword [rbx + 0x144], 0
call fcn.1402277f0
mov dword [rax], 0x273f
call fcn.1402277f0
mov ebx, dword [rax]
call fcn.1402277f0
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.1401b9030
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.14019b0a0
mov eax, 2
jmp 0x1401b53a6
cmp dword [rsp + 0x20], 2
jle 0x1401b5393
lea r9, [rsp + 0x32]
mov edx, 0x2e
lea r8, [0x1402e4364]
lea rcx, [rbx + 0x114]
call fcn.1401842a0
jmp 0x1401b539a
mov byte [rbx + 0x114], 0
mov dword [rbx + 0x144], 0
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1401f4d70
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1401b9cf0
Capabilities:
Check for time delay via gettickcount
Check for time delay via queryperformancecounter
Move file

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
cmp byte [0x140336ac1], 0
mov rbx, rdx
mov rdi, rcx
je 0x1401b9d45
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r9, qword [0x140336ab8]
mov rax, qword [rsp + 0x50]
cqo
idiv r9
mov rsi, rax
mov rax, qword [rsp + 0x50]
cqo
idiv r9
imul rax, rdx, 0xf4240
cqo
idiv r9
mov rbp, rax
jmp 0x1401b9d6b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0x10624dd3
mul r8d
shr edx, 6
imul ecx, edx, 0x3e8
mov esi, edx
sub r8d, ecx
imul ebp, r8d, 0x3e8
mov qword [rsp + 0x40], r14
mov rcx, rdi
mov qword [rsp + 0x48], r15
call case.0x140194a27.0
mov rcx, rbx
mov rdi, rax
call case.0x140194a27.0
mov r8d, 1
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x1401b9e81
movabs r14, 0x20c49ba5e353f6
movabs r15, 0x4189374bc6a7ec
nop dword [rax]
cmp byte [0x140336ac1], 0
je 0x1401b9dfa
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x50]
cqo
idiv qword [0x140336ab8]
mov r9, rax
imul rax, rdx, 0xf4240
cqo
idiv qword [0x140336ab8]
mov rcx, rax
jmp 0x1401b9e21
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0x10624dd3
mul r8d
shr edx, 6
imul ecx, edx, 0x3e8
mov r9d, edx
sub r8d, ecx
imul ecx, r8d, 0x3e8
sub r9, rsi
lea rax, [r9 + r14]
cmp rax, r15
ja 0x1401b9eb4
sub ecx, ebp
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul rax, r9, 0x3e8
movsxd rcx, edx
add rcx, rax
js 0x1401b9eb4
cmp rcx, 0x3e8
jg 0x1401b9eb4
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x1401b9dc0
test rdi, rdi
je 0x1401b9e8e
mov rcx, rdi
call fcn.140229280
test rbx, rbx
je 0x1401b9e9b
mov rcx, rbx
call fcn.140229280
xor eax, eax
mov r15, qword [rsp + 0x48]
mov r14, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
test rdi, rdi
je 0x1401b9ec1
mov rcx, rdi
call fcn.140229280
test rbx, rbx
je 0x1401b9ece
mov rcx, rbx
call fcn.140229280
mov eax, 1
jmp 0x1401b9e9d

Function at 0x1401bbb60
Capabilities:
Convert ip address from string

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r8
mov rax, rdx
test r8, r8
jne 0x1401bbb7b
lea eax, [r8 + 0xe]
add rsp, 0x20
pop rbx
ret
cmp byte [rdx], 0x5b
jne 0x1401bbb8a
add rsp, 0x20
pop rbx
jmp fcn.1401bb9a0
lea rdx, str.__r_n_t_:_______________
mov rcx, rax
call fcn.140237030
xor ecx, ecx
mov edx, reloc.WS2_32.dll_setsockopt
cmp rbx, rax
cmovne ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
Function at 0x1401c6150
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x14032f0c0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx + 0x20]
mov rbp, rcx
xor r9d, r9d
xor esi, esi
mov rdi, qword [rax + 0x590]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x80
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8d, dword [rdi + 0x144]
mov rdx, qword [rdi + 0x150]
add r8d, 4
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_recvfrom]
mov dword [rdi + 0x13c], eax
cmp dword [rdi + 0x138], esi
jne 0x1401c61e6
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xb8]
lea rdx, [rsp + 0x40]
call fcn.140276ca0
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x138], eax
mov r8d, dword [rdi + 0x13c]
mov qword [rsp + 0x100], r14
cmp r8d, 4
jge 0x1401c6236
lea rdx, str.Received_too_short_packet
mov rcx, rbp
call fcn.14019b0a0
mov dword [rdi + 0xc], 7
mov eax, esi
mov r14, qword [rsp + 0x100]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1401f4d70
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret
mov rdx, qword [rdi + 0x150]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rdi + 0xc], ecx
dec ecx
cmp ecx, 5
ja case.0x1401c626c.1
movsxd rax, ecx
lea r9, [0x140000000]
mov ecx, dword [r9 + rax*4 + 0x1c6374]
add rcx, r9
jmp rcx
cmp r8d, 4
jle case.0x1401c626c.4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rdi + 0x14c]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x1401c626c.4
lea eax, [r8 - 4]
mov rcx, rbp
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14018be10
mov esi, eax
test eax, eax
je case.0x1401c626c.4
mov edx, 5
mov rcx, rdi
call fcn.1401c5e30
jmp 0x1401c6211
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
shl ecx, 8
lea r14, [rdx + 4]
mov qword [rsp + 0xf8], rbx
movsxd rbx, eax
movzx eax, byte [rdx + 3]
mov rdx, rbx
or ecx, eax
mov dword [rdi + 8], ecx
mov rcx, r14
call fcn.1401c4b90
cmp rax, rbx
mov rbx, qword [rsp + 0xf8]
jae case.0x1401c626c.4
mov r8, r14
lea rdx, str.TFTP_error:__s
mov rcx, rbp
call fcn.14019b1d0
jmp case.0x1401c626c.4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rdi
call fcn.1401c4bd0
mov esi, eax
test eax, eax
je case.0x1401c626c.4
jmp 0x1401c6213
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rbp
lea rdx, [0x1402e4364]
call fcn.14019b0a0
mov rcx, rbp
call fcn.1401a8230
test eax, eax
je 0x1401c6211
mov edx, 5
mov rcx, rdi
call fcn.1401c5e30
mov eax, 0x2a
jmp 0x1401c6213
Function at 0x1401c8f30
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x14032f0c0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, qword [rcx + 0x20]
lea r8, [rsp + 0x20]
mov rbx, rcx
lea rdx, [rsp + 0x30]
mov rdi, qword [rsi + 0x190]
mov rcx, rdi
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1401c907f
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsp + 0x28], rax
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1401c907f
lea rdx, str.Connection_accepted_from_server
mov rcx, rbx
call fcn.14019b1d0
lea r8, [rsp + 0x24]
mov byte [rsi + 0x2b5], 0
mov edx, 0x8004667e
mov dword [rsp + 0x24], 1
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
lea r9, [rsp + 0x28]
mov rdx, rsi
mov rcx, rbx
call fcn.1401b6990
test eax, eax
jne 0x1401c9093
cmp qword [rbx + 0x268], 0
je 0x1401c907b
mov rax, qword [rbx + 0xe0]
lea rdi, [rbx + 0xd8]
test rax, rax
jne 0x1401c9020
mov rax, qword [rdi]
test rax, rax
je 0x1401c9027
mov byte [rax + 0x1ab], 1
mov rdx, qword [rsp + 0x28]
mov r8d, 1
mov rcx, qword [rbx + 0x270]
call qword [rbx + 0x268]
mov rcx, qword [rbx + 0xe0]
mov edx, eax
test rcx, rcx
je 0x1401c9056
mov byte [rcx + 0x1ab], 0
jmp 0x1401c9065
mov rax, qword [rdi]
test rax, rax
je 0x1401c9065
mov byte [rax + 0x1ab], 0
test edx, edx
je 0x1401c907b
mov rdx, rsi
mov rcx, rbx
call fcn.1401c8e20
mov eax, 0x2a
jmp 0x1401c9093
xor eax, eax
jmp 0x1401c9093
lea rdx, str.Error_accept__ing_server_connect
mov rcx, rbx
call fcn.14019b0a0
mov eax, 0x1e
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1401f4d70
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1401ca610
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x198]
mov rbx, rcx
mov rdx, qword [rcx + 0x20]
cmp dword [rax + 0x10], 0
je 0x1401ca640
mov byte [rdx + 0x69e], 0xd
mov r8b, reloc.WS2_32.dll_listen
mov dl, 1
add rsp, 0x20
pop rbx
jmp fcn.1401cae00
cmp byte [rcx + 0xa7f], 0
je 0x1401ca655
xor edx, edx
add rsp, 0x20
pop rbx
jmp fcn.1401c9af0
cmp byte [rcx + 0xa82], 0
je 0x1401ca6d3
mov r9, qword [rdx + 0x648]
test r9, r9
jne 0x1401ca698
mov r9, qword [rcx + 0x730]
test r9, r9
jne 0x1401ca68f
cmp byte [rbx + 0x136b], 0
lea rcx, str.NLST
lea r9, str.LIST
cmovne r9, rcx
lea r8, str.PRET__s
jmp 0x1401ca6af
cmp byte [rcx + 0x1370], 0
lea r8, str.PRET_STOR__s
jne 0x1401ca6af
lea r8, str.PRET_RETR__s
add rdx, 0x590
mov rcx, rbx
call fcn.1401e6a80
test eax, eax
jne 0x1401ca6dd
mov rcx, qword [rbx + 0x20]
mov byte [rcx + 0x69e], 0x1d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1401ca560
add rsp, 0x20
pop rbx
ret

Function at 0x1401ca6f0
Capabilities:
Convert ip address from string
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x198]
add rdx, 0x590
mov rbx, rcx
cmp dword [rax + 0x10], 0
je 0x1401ca73b
cmp qword [rdx + 0xb8], 0
je 0x1401ca73b
xor r9d, r9d
lea r8, str.REST__d
call fcn.1401e6a80
test eax, eax
jne 0x1401ca745
mov rcx, qword [rbx + 0x20]
mov byte [rcx + 0x69e], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1401ca610
add rsp, 0x20
pop rbx
ret

Function at 0x1401cbc40
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 + 0x20]
lea eax, [rdx - 0xc8]
xor edi, edi
movzx esi, r8b
mov rbx, rcx
cmp eax, 0x64
jb 0x1401cbc7d
lea rdx, str.Couldnt_set_desired_mode
call fcn.14019b0a0
lea eax, [rdi + 0x11]
jmp 0x1401cbcd9
cmp edx, 0xc8
je 0x1401cbc94
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.14019b1d0
cmp sil, 0x13
jne 0x1401cbca7
mov rdx, rbp
mov rcx, rbx
call fcn.1401ca750
jmp 0x1401cbcd5
cmp sil, 0x14
jne 0x1401cbcb7
mov rcx, rbx
call fcn.1401ca7f0
jmp 0x1401cbcd5
cmp sil, 0x15
jne 0x1401cbcc2
mov r8b, reloc.WS2_32.dll_listen
jmp 0x1401cbccb
cmp sil, 0x16
jne 0x1401cbcd7
mov r8b, recv
mov dl, 1
mov rcx, rbx
call fcn.1401cae00
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 0x1401cf2f0
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 + 0x20]
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 + 0x188]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1401cf34f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbx
mov r8d, eax
call fcn.14019b0a0
mov r9d, edi
lea rdx, str.SENT
mov r8d, esi
mov rcx, rbx
call fcn.1401cf1c0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401d0000
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1401d01b6
push rbp
push rdi
push r13
sub rsp, 0x20
mov rbp, qword [rcx + 0x198]
mov rdi, rcx
mov r13, qword [rcx + 0x20]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
lea rsi, [rbp + 0x1cd8]
mov qword [rsp + 0x50], r14
lea rbx, [rbp + 0x1ed8]
mov qword [rsp + 0x58], r15
mov qword [rbx], rsi
mov rax, rsi
cmp rsi, rbx
jae 0x1401d0056
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x1401d006f
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1401d006f
mov byte [rax], 0x1f
inc qword [rbx]
movzx ecx, word [rbp + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rbp + 0x1caa]
movzx r14d, ax
shr r14w, 8
movzx r15d, ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
shr cx, 8
cmp r9, rbx
jae 0x1401d00ae
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x1401d00c1
mov byte [r9], r14b
inc qword [rbx]
mov r9, qword [rbx]
mov r14, qword [rsp + 0x50]
cmp r9, rbx
jae 0x1401d0100
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1401d0100
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1401d0100
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1401d0100
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rbp + 0x1ee0], r9
lea r8, [rbp + 0x1cda]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rdi
call fcn.1401cf380
mov rcx, qword [r13 + 0x188]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x1401d0162
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rdi
mov r8d, eax
call fcn.14019b0a0
lea rdx, [rbp + 0x1cdb]
mov r8d, 4
mov rcx, rdi
call fcn.1401d0ab0
mov rcx, qword [r13 + 0x188]
lea rdx, [rbp + 0x1cdf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1401d01ae
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rdi
mov r8d, eax
call fcn.14019b0a0
add rsp, 0x20
pop r13
pop rdi
pop rbp
ret
Function at 0x1401d1930
Capabilities:
Resolve dns

Disassembly:
push rdi
push r12
push r13
push r15
sub rsp, 0x28
mov r13, r9
xor edi, edi
mov qword [r9], rdi
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x1401d1ace
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rsi
mov rsi, qword [rsp + 0x68]
test rsi, rsi
je 0x1401d1aae
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x1401d199e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1401d1990
inc rbx
jmp 0x1401d19a0
xor ebx, ebx
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x1401d19ad
lea ebp, [rax + 0xe]
jmp 0x1401d19b9
cmp eax, 0x17
jne 0x1401d1a51
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], 0
je 0x1401d1a51
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1401d1a51
cmp rax, rbp
jb 0x1401d1a51
lea rcx, [rbp + 0x30]
add rcx, rbx
call qword [fcn.14022b0a0]
mov r14, rax
test rax, rax
je 0x1401d1a60
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 + 0xc], ecx
lea rcx, [r14 + 0x30]
mov dword [rax + 0x10], ebp
xor eax, eax
mov qword [r14 + 0x18], rax
mov qword [r14 + 0x28], rax
mov qword [r14 + 0x20], rcx
mov rdx, qword [rsi + 0x20]
call fcn.140276ca0
test rbx, rbx
je 0x1401d1a3e
mov rcx, qword [r14 + 0x20]
mov r8, rbx
add rcx, rbp
mov qword [r14 + 0x18], rcx
mov rdx, qword [rsi + 0x18]
call fcn.140276ca0
test rdi, rdi
cmove rdi, r14
test r15, r15
je 0x1401d1a4e
mov qword [r15 + 0x28], r14
mov r15, r14
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x1401d1980
jmp 0x1401d1a66
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x58]
test rcx, rcx
je 0x1401d1a80
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x1401d1aa9
test rdi, rdi
je 0x1401d1aa5
nop word [rax + rax]
mov rbx, qword [rdi + 0x28]
mov rcx, rdi
call qword [fcn.140229280]
mov rdi, rbx
test rbx, rbx
jne 0x1401d1a90
xor edi, edi
jmp 0x1401d1abd
test rdi, rdi
jne 0x1401d1abd
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rsi, qword [rsp + 0x60]
mov eax, r12d
mov rbx, qword [rsp + 0x50]
mov qword [r13], rdi
add rsp, 0x28
pop r15
pop r13
pop r12
pop rdi
ret
Function at 0x1401db2e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rdi
sub rsp, 0x40
mov rdi, rcx
cmp rdx, r8
jae 0x1401db440
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0x2710
call fcn.1401db230
mov ebx, eax
test eax, eax
jne 0x1401db419
mov rax, qword [str.1.2.840.10040.4.1]
lea r10, str.1.2.840.10040.4.1
mov r9, qword [rsp + 0x20]
mov qword [rsp + 0x58], rsi
test rax, rax
je 0x1401db409
lea rsi, [0x1402e0f40]
nop word [rax + rax]
mov r8, r9
sub r8, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1401db383
inc rax
test ecx, ecx
jne 0x1401db370
test edx, edx
je 0x1401db3d9
mov rax, qword [r10 + 8]
test rax, rax
je 0x1401db428
test r9, r9
je 0x1401db42d
cmp byte [rax], 0
mov r8, r9
je 0x1401db3c4
movzx ecx, byte [r8]
test cl, cl
je 0x1401db3c4
movzx edx, byte [rax]
movzx ecx, byte [rcx + rsi]
cmp byte [rdx + rsi], cl
jne 0x1401db424
inc rax
inc r8
cmp byte [rax], 0
jne 0x1401db3a5
xor ecx, ecx
cmp byte [rax], cl
sete cl
xor eax, eax
cmp byte [r8], al
setne al
xor ecx, eax
test ecx, ecx
je 0x1401db42d
test r10, r10
je 0x1401db409
mov rdx, qword [r10 + 8]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x1401db3f0
mov rcx, rdi
call fcn.140182ac0
mov r9, qword [rsp + 0x20]
mov ebx, eax
mov rcx, r9
call qword [fcn.140229280]
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
xor ecx, ecx
jmp 0x1401db3d5
test r9, r9
je 0x1401db3d9
mov rax, qword [r10 + 0x10]
add r10, 0x10
test rax, rax
jne 0x1401db360
jmp 0x1401db409
xor eax, eax
add rsp, 0x40
pop rdi
ret