joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180028820
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 0x18002885b
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 0x180028920
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
movsxd rax, edx
mov r10, r9
mov r11, r8
mov rdi, rcx
xor r9d, r9d
mov r8d, r10d
mov rdx, r11
mov rcx, qword [rcx + rax*8 + 0x1a8]
call qword [sym.imp.WS2_32.dll_send]
mov r14, qword [rsp + 0x50]
movsxd rsi, eax
mov dword [r14], 0
cmp rsi, 0xffffffffffffffff
jne 0x1800289cc
mov qword [rsp + 0x30], rbx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x18002899b
mov dword [r14], 0x51
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov edx, eax
mov rcx, rdi
call fcn.18001ad30
mov rcx, qword [rdi]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.180028550
mov rcx, qword [rdi]
mov rax, rsi
mov dword [rcx + 0x882c], ebx
mov dword [r14], gethostname
jmp 0x180028985
mov rdi, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret

Function at 0x180028c40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r10, qword [rcx + 0x258]
mov rdi, r9
mov rsi, r8
mov rbx, rcx
test r10, r10
je 0x180028c83
mov rax, qword [rcx + 0x1a8]
mov qword [rsp + 0x20], rax
call r10
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp edx, 2
ja 0x180028cc6
mov r9, qword [rbx + 0x1a0]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x1800c74f0]
add rcx, rax
lea r8d, [rdx - 1]
call fcn.18009da5c
mov r9, qword [rbx + 0x1a0]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call fcn.18009da5c
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x180028e80
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, qword [rcx + 0x7c0]
mov rsi, rdx
mov rdi, rcx
test rbx, rbx
je 0x180028ef0
mov rcx, qword [rcx + 0x80]
test rcx, rcx
jne 0x180028eb3
cmp qword [rdi + 0x78], rcx
je 0x180028ef0
mov qword [rsp + 0x20], rbx
mov byte [rsp + 0x28], 0
test rcx, rcx
jne 0x180028ec6
mov rcx, qword [rdi + 0x78]
add rcx, 0xc0
lea r8, [0x180029da0]
lea rdx, [rsp + 0x20]
call fcn.180030ac0
cmp byte [rsp + 0x28], 0
jne 0x180028f04
mov qword [rdi + 0x7c0], 0
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rsi, rsi
je 0x180028f0c
mov qword [rsi], rbx
cmp byte [rbx + 0x1f0], 0
mov rdi, qword [rbx + 0x1a8]
je 0x180028f2a
mov rcx, rbx
call fcn.180003f00
test eax, eax
jne 0x180028f4c
jmp 0x180028ef0
cmp rdi, 0xffffffffffffffff
je 0x180028f4c
mov r9d, 2
lea rdx, [rsp + 0x40]
mov rcx, rdi
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x180028ef0
mov rbx, qword [rsp + 0x48]
mov rax, rdi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1800293e0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0xf0
mov rax, qword [0x1800ff278]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov eax, dword [0x1804718c0]
mov rbx, rcx
mov dword [rsp + 0x34], 0x4020
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x38], 4
test eax, eax
jne 0x1800294b8
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x9c
call fcn.180098a80
mov r8b, 3
mov dword [rsp + 0x40], 0x9c
mov edx, 2
mov dword [rsp + 0x44], 6
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, reloc.WLDAP32.dll_Ordinal_32
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, reloc.WS2_32.dll_recv
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov edx, 0x33
lea rcx, [rsp + 0x40]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x1800294ac
mov dword [0x1804718c0], 2
jmp 0x18002950f
mov dword [0x1804718c0], 1
jmp 0x1800294bd
cmp eax, 2
je 0x18002950f
lea rax, [rsp + 0x38]
mov edx, 0xffff
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1800294ee
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x30], eax
jg 0x18002950f
lea r9, [rsp + 0x34]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.180077fb0
add rsp, 0xf0
pop rbx
ret
Function at 0x180029600
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [rcx]
lea r9, [rsp + 0x40]
mov rax, rdx
mov dword [rsp + 0x40], 1
mov edx, 6
mov dword [rsp + 0x20], 4
mov rdi, rcx
mov rcx, rax
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x18002966b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
call fcn.18001ad30
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
call fcn.180028610
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.180028610
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x1800ff278]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp dword [rcx + 0xa4], 2
mov rbx, rdx
mov rsi, qword [rcx]
mov rdi, rcx
je 0x180029930
cmp byte [rcx + 0x34a], 0
jne 0x180029928
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0xb0]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x180029805
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.18001ad30
mov r9, rax
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.180028550
jmp 0x180029930
xor edx, edx
mov dword [rsp + 0x20], 0x80
mov r8d, 0x80
lea rcx, [rsp + 0x30]
call fcn.180098a80
lea r8, [rsp + 0x20]
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x180029862
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.18001ad30
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.180028550
jmp 0x180029930
lea rbx, [rdi + 0xf0]
mov rdx, rbx
lea r8, [rdi + 0x120]
lea rcx, [rsp + 0xb0]
call fcn.180029dc0
test al, al
jne 0x1800298b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.18001ad30
mov r9, rax
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.180028550
jmp 0x180029930
movups xmm0, xmmword [rbx]
mov eax, dword [rbx + 0x28]
lea r8, [rdi + 0x154]
movups xmm1, xmmword [rbx + 0x10]
lea rdx, [rdi + 0x124]
movups xmmword [rdi + 0x70], xmm0
lea rcx, [rsp + 0x30]
movsd xmm0, qword [rbx + 0x20]
movups xmmword [rdi + 0x80], xmm1
movsd qword [rdi + 0x90], xmm0
mov dword [rdi + 0x98], eax
movzx eax, word [rbx + 0x2c]
mov word [rdi + 0x9c], ax
call fcn.180029dc0
test al, al
jne 0x180029928
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.18001ad30
mov r9, rax
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.180028550
jmp 0x180029930
mov rcx, rdi
call fcn.180029320
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.180077fb0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180029e40
Capabilities:
Connect socket

Disassembly:
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x110
mov rax, qword [0x1800ff278]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rbp, qword [rcx]
lea r9, [rsp + 0x20]
mov qword [r8], 0xffffffffffffffff
mov r15, r8
lea r8, [rsp + 0x30]
mov rdi, rcx
xor r12b, r12b
call fcn.180029530
mov esi, eax
test eax, eax
je 0x180029e90
xor eax, eax
jmp 0x18002a0c7
lea r8, [rsp + 0x28]
mov qword [rsp + 0x108], rbx
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x40]
call fcn.180029dc0
test al, al
jne 0x180029eec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.18001ad30
mov r9, rax
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rbp
call fcn.180028550
mov rdx, qword [rsp + 0x20]
mov rcx, rdi
call fcn.180028ce0
jmp 0x18002a0bd
lea r8, [rsp + 0xc0]
mov qword [rsp + 0x100], r14
lea rdx, str.__Trying__s..._n
mov rcx, rbp
call fcn.180028610
cmp dword [rsp + 0x30], 2
jne 0x180029f20
cmp dword [rsp + 0x34], 1
jne 0x180029f20
mov eax, 1
jmp 0x180029f22
xor eax, eax
mov rbx, qword [rsp + 0x20]
test eax, eax
setne r14b
test r14b, r14b
je 0x180029f46
cmp byte [rbp + 0x45e], 0
je 0x180029f46
mov rdx, rbx
mov rcx, rdi
call fcn.180029600
mov rcx, rbx
call fcn.1800293e0
test r14b, r14b
mov r14, qword [rsp + 0x100]
je 0x180029f6f
cmp byte [rbp + 0x634], 0
je 0x180029f6f
mov rdx, rbx
mov rcx, rbp
call fcn.18002a0f0
mov rax, qword [rbp + 0x268]
test rax, rax
je 0x180029f92
mov rcx, qword [rbp + 0x270]
xor r8d, r8d
mov rdx, rbx
call rax
cmp eax, 2
jne 0x180029fd9
mov r12b, 1
cmp dword [rsp + 0x30], 2
jne 0x180029ff2
lea rcx, [rsp + 0x40]
call fcn.180003d00
mov r8d, dword [rsp + 0x30]
mov r9d, eax
mov rdx, rbx
mov rcx, rdi
call fcn.180029960
mov esi, eax
test eax, eax
je 0x180029ff2
mov rdx, rbx
mov rcx, rdi
call fcn.180028ce0
mov eax, 7
cmp esi, 1
cmove esi, eax
mov eax, esi
jmp 0x18002a0bf
test eax, eax
je 0x180029f92
mov rdx, rbx
mov rcx, rdi
call fcn.180028ce0
mov eax, Ordinal_46
jmp 0x18002a0bf
mov edx, 1
mov rcx, rbx
call fcn.18004ab60
call fcn.18001f9d0
cmp dword [rdi + 0x36c], 1
mov qword [rdi + 0x364], rax
jle 0x18002a022
mov edx, dword [rdi + 0x370]
mov rcx, rbp
call fcn.18001b940
test r12b, r12b
jne 0x18002a0ba
cmp dword [rdi + 0xa4], 1
jne 0x18002a0ba
mov r8d, dword [rsp + 0x3c]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x18002a0af
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp eax, 0xb
je 0x18002a0a6
lea ecx, [rax - 0x2733]
cmp ecx, 1
jbe 0x18002a0a6
mov edx, eax
mov rcx, rdi
call fcn.18001ad30
mov r9, rax
lea r8, [rsp + 0xc0]
lea rdx, str.Immediate_connect_fail_for__s:__s_n
mov rcx, rbp
call fcn.180028610
mov rdx, rbx
mov dword [rbp + 0x882c], esi
mov rcx, rdi
call fcn.180028ce0
mov esi, 7
mov eax, esi
jmp 0x18002a0bf
xor esi, esi
mov qword [r15], rbx
mov eax, esi
jmp 0x18002a0bf
test esi, esi
jne 0x18002a0b6
mov qword [r15], rbx
mov eax, esi
jmp 0x18002a0bf
mov qword [r15], rbx
xor eax, eax
mov rbx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.180077fb0
add rsp, 0x110
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18002a0f0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1800ff278]
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 + 0x634], 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 0x18002a15f
mov r8, rdi
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov rcx, rbx
call fcn.180028610
jmp 0x18002a1ee
mov ecx, dword [rbx + 0x638]
mov dword [rsp + 0x58], 1
call fcn.180033610
imul ecx, eax, 0x3e8
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rbx + 0x63c]
call fcn.180033610
imul ecx, eax, 0x3e8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], rsi
mov r9d, recv
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 0x18002a1ee
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.180028610
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180077fb0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1800335d0
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.180033650
mov r8d, eax
mov rdx, rbx
mov ecx, edi
call fcn.1800ac8d8
mov rbx, qword [rsp + 0x30]
cdqe
add rsp, 0x20
pop rdi
ret

Function at 0x180034a40
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push r12
push r14
push r15
sub rsp, 0x20
xor r12d, r12d
mov r15, r9
mov qword [r9], r12
mov esi, r12d
lea r9, [rsp + 0x68]
mov r14d, r12d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebp, eax
test eax, eax
jne 0x180034bb8
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x180034ba1
mov qword [rsp + 0x58], rdi
nop dword [rax]
cmp dword [rbx + 4], 2
jne 0x180034b38
cmp qword [rbx + 0x20], r12
je 0x180034b38
cmp qword [rbx + 0x10], 0x10
jb 0x180034b38
mov ecx, Ordinal_50
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x180034b71
mov ecx, dword [rbx]
mov dword [rax], ecx
mov ecx, dword [rbx + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rbx + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rbx + 0xc]
mov dword [rax + 0xc], ecx
mov ecx, reloc.WS2_32.dll_recv
mov dword [rax + reloc.WS2_32.dll_recv], 0x10
mov qword [rax + 0x20], r12
mov qword [rax + 0x18], r12
mov qword [rax + 0x28], r12
call qword [section..data]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x180034b61
mov rcx, qword [rbx + 0x20]
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x180034b25
call qword [case.0x18001f516.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x180034b47
test rsi, rsi
cmove rsi, rdi
test r14, r14
je 0x180034b35
mov qword [r14 + 0x28], rdi
mov r14, rdi
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x180034a90
jmp 0x180034b76
mov rcx, qword [rdi + 0x20]
mov ebp, 8
call qword [fcn.18009ae1c]
mov rcx, rdi
call qword [fcn.18009ae1c]
jmp 0x180034b76
mov rcx, rdi
mov ebp, 8
call qword [fcn.18009ae1c]
jmp 0x180034b76
mov ebp, 8
mov rcx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x58]
test rcx, rcx
je 0x180034b8b
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x180034b9c
mov rcx, rsi
call fcn.1800349f0
mov rsi, r12
jmp 0x180034bae
test rsi, rsi
jne 0x180034bae
mov ebp, 0x2af9
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rbx, qword [rsp + 0x50]
mov eax, ebp
mov qword [r15], rsi
add rsp, 0x20
pop r15
pop r14
pop r12
pop rsi
pop rbp
ret
Function at 0x180034ed0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x28
mov rax, r8
mov r10, rdx
cmp ecx, 2
je 0x180034ef1
mov ecx, 0x273f
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x28
ret
mov r8, r9
mov rdx, rax
mov rcx, r10
add rsp, 0x28
jmp 0x180034f10
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1800ff278]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx eax, byte [rcx + 3]
mov rbx, rdx
movzx edx, byte [rcx + 2]
mov rdi, r8
movzx r10d, byte [rcx + 1]
lea r8, str._d._d._d._d
movzx r9d, byte [rcx]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], edx
mov edx, reloc.WS2_32.dll_recv
mov byte [rsp + 0x40], 0
mov dword [rsp + 0x20], r10d
call fcn.18002a640
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x180034f71
test rax, rax
je 0x180034fb4
cmp rax, rdi
jae 0x180034fb4
lea rax, [rsp + 0x40]
mov r8, rbx
sub r8, rax
lea rcx, [rsp + 0x40]
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [rcx]
mov byte [r8 + rcx], dl
lea rcx, [rcx + 1]
test dl, dl
jne 0x180034fa0
mov rax, rbx
jmp 0x180034fc1
mov ecx, Ordinal_30
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180077fb0
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x180035090
Capabilities:
Generate random numbers via winapi

Disassembly:
mov rcx, rdx
mov rdx, r8
jmp 0x180035090
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov qword [rsp + 0x50], 0
mov rdi, rcx
mov dword [rsp + 0x20], 0xf0000040
xor edx, edx
lea rcx, [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1800350ec
mov rcx, qword [rsp + 0x50]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x50]
xor edx, edx
test eax, eax
jne 0x1800350fc
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x18003b570
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1d0
mov rax, qword [0x1800ff278]
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 0x18003b5b6
mov r8d, eax
lea rdx, str.WSAStartup_failed___d_
mov rcx, rbx
call fcn.180028550
jmp 0x18003b5e0
call qword [sym.imp.WS2_32.dll_WSACleanup]
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x18003b5d1
shr ax, 8
test al, al
jne 0x18003b5d1
xor eax, eax
jmp 0x18003b5e5
lea rdx, str.insufficient_winsock_version_to_support_telnet
mov rcx, rbx
call fcn.180028550
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.180077fb0
add rsp, 0x1d0
pop rbx
ret

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

Disassembly:
mov rax, qword [rcx]
mov r11, rcx
movsxd r10, edx
mov r9, qword [rax + 0x198]
mov r8d, dword [r9 + r10*4 + 8]
sub r8d, 1
je 0x18003bd64
sub r8d, 1
je 0x18003bd3b
cmp r8d, 1
jne 0x18003bd78
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x18003bd5c
cmp ecx, r8d
jne 0x18003bd78
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.18003bf00
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x18003bd5c
cmp ecx, 1
jne 0x18003bd78
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.18003bf00
ret

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

Disassembly:
mov rax, qword [rcx]
mov r11, rcx
movsxd r10, edx
mov r9, qword [rax + 0x198]
mov r8d, dword [r9 + r10*4 + 0xc08]
test r8d, r8d
je 0x18003be27
sub r8d, 2
je 0x18003bde0
cmp r8d, 1
jne 0x18003be19
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x18003bdd3
cmp ecx, r8d
jne 0x18003be19
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 0x18003be1a
cmp ecx, 1
jne 0x18003be19
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.18003bf00
ret
mov dword [r9 + r10*4 + 0xc08], 1
ret
cmp dword [r9 + r10*4 + 0x1408], 1
jne 0x18003be0c
mov r8d, edx
mov dword [r9 + r10*4 + 0xc08], 1
mov edx, 0xfd
jmp fcn.18003bf00
Function at 0x18003be50
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, qword [rcx]
mov r11, rcx
movsxd r10, edx
mov r9, qword [rax + 0x198]
mov r8d, dword [r9 + r10*4 + 0xc08]
sub r8d, 1
je 0x18003bee0
sub r8d, 1
je 0x18003beb1
cmp r8d, 1
jne 0x18003bef7
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x18003bed5
cmp ecx, r8d
jne 0x18003bef7
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.18003bf00
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x18003bed5
cmp ecx, 1
jne 0x18003bef7
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.18003bf00
ret

Function at 0x18003bf00
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]
mov edi, r8d
xor r9d, r9d
mov byte [rax + 0x11], dl
mov esi, edx
mov byte [rax + 0x10], 0xff
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x1a8]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x18003bf5e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.180028550
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.18003b710
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret