Function at 0x180006710
Capabilities:
Encode data using xor
Get hostname
Initialize winsock library
Resolve dns
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x340]
sub rsp, 0x440
mov rax, qword [0x1800f0040]
xor rax, rsp
mov qword [rbp + 0x330], rax
xor edi, edi
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x10]
call sub.VCRUNTIME140.dll_memset
movdqa xmm0, xmmword [0x1800e8ff0]
movdqu xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x1800e8ee0]
movdqu xmmword [rsp + 0x48], xmm1
mov dword [rsp + 0x58], 0xd8cea8d6
mov dword [rsp + 0x5c], 0x95c8d7c9
mov dword [rsp + 0x60], 0xcff2cff7
mov word [rsp + 0x64], 0x100
mov ecx, edi
nop dword [rax]
lea eax, [rcx + 0x7a]
xor byte [rsp + rcx + 0x38], al
inc rcx
cmp rcx, 0x2c
jb 0x1800067a0
mov byte [rsp + 0x65], dil
lea r8, [rsp + 0x64]
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x70]
call fcn.1800113a0
nop
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x70]
call fcn.180003330
nop
cmp qword [rax + 0x18], 0xf
jbe 0x1800067e2
mov rax, qword [rax]
mov r8d, 1
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.18000fb90
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x10], rax
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0xc], edx
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x180006859
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180006854
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180006854
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800145b0
movdqa xmm0, xmmword [0x1800e8d40]
movdqu xmmword [rbp - 0x80], xmm0
mov byte [rsp + 0x70], 0
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x1800068a9
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800068a4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800068a4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800145b0
xorps xmm0, xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x50], xmm1
mov qword [rbp - 0x40], rdi
movups xmmword [rbp - 0x38], xmm0
movdqa xmm1, xmmword [0x1800e8d40]
movdqu xmmword [rbp - 0x28], xmm1
mov byte [rbp - 0x38], 0
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x10]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 0x10]
call fcn.180012980
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
je 0x180006979
nop dword [rax]
mov rax, qword [rbp - 0x48]
cmp rax, qword [rbp - 0x40]
je 0x18000692d
lea rdx, [rbp - 0x38]
mov rcx, rax
call fcn.1800106d0
add qword [rbp - 0x48], 0x20
jmp 0x18000693d
lea r8, [rbp - 0x38]
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.180012f70
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x10]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 0x10]
call fcn.180012980
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
jne 0x180006910
mov ecx, 0x202
lea rdx, [rbp + 0x120]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x180006a5f
mov rdx, qword [rbp - 0x20]
cmp rdx, 0xf
jbe 0x1800069cf
inc rdx
mov rcx, qword [rbp - 0x38]
cmp rdx, 0x1000
mov rax, rcx
jb 0x1800069c9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180006cb0
call fcn.1800145b0
nop
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x180006a26
mov rdx, qword [rbp - 0x48]
call fcn.1800121a0
mov rdx, qword [rbp - 0x40]
mov rcx, qword [rbp - 0x50]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x180006a15
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180006d0b
call fcn.1800145b0
xorps xmm0, xmm0
mov qword [rbp - 0x40], rdi
movdqu xmmword [rbp - 0x50], xmm0
lea rcx, [rbp + 0x10]
call fcn.180006e20
mov rcx, qword [rbp + 0x330]
xor rcx, rsp
call fcn.180014590
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov edx, 0x64
lea rcx, [rbp + 0x2c0]
call qword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x180006a81
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x180006993
lea rcx, [rbp + 0x2c0]
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x180006a76
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov ecx, dword [rcx]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
mov qword [rbp - 8], rdi
mov qword [rbp], rdi
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x180006ac0
mov rdx, rax
lea rcx, [rbp - 0x18]
call fcn.180003220
mov rbx, qword [rbp - 0x50]
mov r15, qword [rbp]
mov rsi, qword [rbp - 0x18]
mov r14, qword [rbp - 0x48]
cmp rbx, r14
je 0x180006b24
mov r12, qword [rbp - 8]
nop
lea rdx, [rbp - 0x18]
cmp r15, 0xf
cmova rdx, rsi
mov r8, qword [rbx + 0x10]
mov rcx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x180006b0d
mov rcx, qword [rbx]
cmp r8, r12
jne 0x180006b1b
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x180006b68
add rbx, 0x20
cmp rbx, r14
jne 0x180006af0
call qword [sym.imp.WS2_32.dll_WSACleanup]
cmp r15, 0xf
jbe 0x180006c7e
lea rdx, [r15 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x180006c75
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180006c75
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rbx, r14
je 0x180006b24
lea rdx, [rsp + 0x68]
call fcn.180003fa0
mov r10, rax
cmp byte [rax + 3], 0
je 0x180006c3d
cmp dword [0x1800f0088], 2
jl 0x180006c09
movdqa xmm3, xmmword [0x1800e8d50]
movdqa xmm2, xmm3
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x1800e8dc0]
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x1800e8dc0]
shufps xmm2, xmm0, 0xdd
psrad xmm2, 4
movdqa xmm0, xmm2
psrld xmm0, 0x1f
paddd xmm0, xmm2
pmulld xmm0, xmmword [0x1800e8d70]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1800e8da0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.2222222222222222]
movd xmm0, dword [rax]
xorps xmm2, xmm0
movd dword [rax], xmm2
jmp 0x180006c3d
mov r8, r10
nop dword [rax]
mov eax, 0x4d4873ed
imul edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x35
movzx eax, dil
sub al, cl
add al, 0x32
xor byte [r8], al
inc edi
lea r8, [r8 + 1]
cmp edi, 4
jl 0x180006c10
lea rdx, [rsp + 0x30]
call fcn.180006d20
movzx ecx, byte [rax + 1]
test cl, cl
je 0x180006c58
xor byte [rax], 0x32
xor cl, 0x33
mov byte [rax + 1], cl
mov r9d, 0x10
mov r8, r10
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, rsi
call fcn.1800145b0
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 0xf
jbe 0x180006cbd
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180006cb7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180006cb7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800145b0
nop
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x180006a26
mov rdx, qword [rbp - 0x48]
call fcn.1800121a0
mov rdx, qword [rbp - 0x40]
mov rcx, qword [rbp - 0x50]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x180006a15
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180006a15
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3