Function at 0x14006c650
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x2d0
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
movaps xmmword [rax - 0x38], xmm8
mov rax, qword [0x14014af58]
xor rax, rsp
mov qword [rsp + 0x290], rax
xor ebx, ebx
mov dword [rsp + 0x30], ebx
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x120], xmm1
lea ecx, [rbx + 0x60]
call fcn.1400f9754
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rsp + 0x120], rax
lea rax, str.User_Agent
mov qword [rsp + 0x40], rax
lea rax, str.UbiServices_SDK_2019.Release.27_PC64_unicode_static
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x120]
call fcn.140017290
lea rax, str.Host
mov qword [rsp + 0x40], rax
lea rax, str.www.growtopia1.com
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x120]
call fcn.140017290
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movups xmmword [rsp + 0x130], xmm1
mov qword [rsp + 0x140], rbx
mov qword [rsp + 0x148], reloc.WS2_32.dll_ntohs
lea edx, [rbx + 0x20]
lea rcx, [rsp + 0x130]
call fcn.140006950
mov rdx, rax
mov qword [rsp + 0x130], rax
mov qword [rsp + 0x140], reloc.WS2_32.dll_shutdown
mov r15d, Ordinal_33
mov qword [rsp + 0x148], r15
movups xmm0, xmmword [0x140115d60]
movups xmmword [rax], xmm0
mov ecx, dword [0x140115d70]
mov dword [rax + 0x10], ecx
movzx eax, word [0x140115d74]
mov word [rdx + 0x14], ax
mov byte [rdx + 0x16], bl
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movdqa xmm1, xmmword [0x14010ba90]
movdqu xmmword [rsp + 0x80], xmm1
mov byte [rsp + 0x70], bl
movups xmmword [rsp + 0x40], xmm0
movdqu xmmword [rsp + 0x50], xmm1
mov byte [rsp + 0x40], bl
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x60]
call fcn.140019bc0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x14006c821
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006c81c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, r15
jbe 0x14006c81c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400f9790
movdqa xmm0, xmmword [0x14010ba90]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov rdx, qword [rsp + 0x88]
cmp rdx, 0x10
jb 0x14006c878
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006c872
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006c872
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400f9790
nop
mov rdx, qword [rsp + 0x148]
cmp rdx, 0x10
jb 0x14006c8be
inc rdx
mov rcx, qword [rsp + 0x130]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006c8b9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006c8b9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400f9790
mov qword [rsp + 0x140], rbx
mov qword [rsp + 0x148], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x130], 0
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov ecx, 0x60
call fcn.1400f9754
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rsp + 0x30], rax
mov r8, rax
mov rdx, qword [rsp + 0x120]
mov rdx, qword [rdx + 8]
lea rcx, [rsp + 0x30]
call fcn.1400119c0
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x38], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [r8 + 8]
cmp byte [rdx + 0x19], 0
jne 0x14006c9a3
mov rcx, qword [rdx]
cmp byte [rcx + 0x19], 0
jne 0x14006c96f
nop
mov rdx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x14006c960
mov qword [r8], rdx
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rdx + 8]
mov rax, qword [rcx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x14006c99d
nop word [rax + rax]
mov rcx, rax
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
je 0x14006c990
mov qword [rdx + 0x10], rcx
jmp 0x14006c9af
mov qword [r8], r8
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x10], rax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.14004cba0
mov rax, qword [rsp + 0x60]
mov byte [rax + 0x3c8], 0
mov rax, qword [rsp + 0x60]
mov qword [rax + 0x170], 2
mov qword [rax + 0x178], rbx
xorps xmm0, xmm0
movups xmmword [rsp + 0x150], xmm0
movups xmmword [rsp + 0x160], xmm0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0xd8], rbx
movdqu xmmword [rsp + 0x40], xmm0
mov ecx, 0x60
call fcn.1400f9754
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
lea r8, str._system_growtopiaapi_CanAccessBeta1
lea rdx, [rsp + 0x150]
mov rcx, rdi
call fcn.140061240
nop
mov rcx, qword [rsp + 0x40]
mov rsi, qword [rcx + 8]
cmp byte [rsi + 0x19], 0
jne 0x14006caaa
nop dword [rax]
mov r8, qword [rsi + 0x10]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.140012ca0
mov rdi, rsi
mov rsi, qword [rsi]
lea rcx, [rdi + 0x20]
call fcn.14001ca20
mov edx, 0x60
mov rcx, rdi
call fcn.1400f9790
cmp byte [rsi + 0x19], 0
je 0x14006ca70
mov rcx, qword [rsp + 0x40]
mov edx, 0x60
call fcn.1400f9790
mov edi, 6
cmp dword [rsp + 0x158], 0
jne 0x14006cc4b
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x130], xmm0
mov qword [rsp + 0x140], rax
mov rdx, qword [rsp + 0x150]
add rdx, 0x58
lea rcx, [rsp + 0x70]
call fcn.140019420
mov rdx, rax
lea rcx, [rsp + 0x130]
call fcn.140045b40
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov r14d, 4
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x88], reloc.WS2_32.dll_ntohs
mov dword [rsp + 0x70], 0x74726f70
mov byte [rsp + 0x74], 0
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x130]
call fcn.140031a90
test rax, rax
je 0x14006cba4
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov dword [rsp + 0x40], 0x74726f70
mov byte [rsp + 0x44], 0
mov edi, 7
mov dword [rsp + 0x30], edi
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x130]
call fcn.140031a90
lea rcx, [rax + 0x38]
cmp qword [rcx + 0x18], 0x10
jb 0x14006cb95
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov rcx, qword [0x140177368]
jmp 0x14006cbae
mov rcx, qword [0x140177368]
mov eax, dword [rcx + 0x50]
mov dword [rcx + 0x50], eax
test dil, 1
je 0x14006cbf8
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x14006cbf8
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006cbf2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006cbf2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400f9790
nop
mov rdx, qword [rsp + 0x88]
cmp rdx, 0x10
jb 0x14006cc3c
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006cc36
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006cc36
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400f9790
nop
lea rcx, [rsp + 0x130]
call fcn.14002a400
jmp 0x14006cc51
mov r14d, 4
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x160]
call fcn.140012a70
mov rdi, qword [rsp + 0x150]
test rdi, rdi
je 0x14006cc89
mov rcx, rdi
call fcn.14001dca0
mov edx, pe_nt_image_headers64
mov rcx, rdi
call fcn.1400f9790
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14006cc9e
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
nop
mov rcx, qword [rsp + 0x120]
mov rsi, qword [rcx + 8]
cmp byte [rsi + 0x19], 0
jne 0x14006ccf3
mov r8, qword [rsi + 0x10]
lea rdx, [rsp + 0x120]
lea rcx, [rsp + 0x120]
call fcn.140012ca0
mov rdi, rsi
mov rsi, qword [rsi]
lea rcx, [rdi + 0x20]
call fcn.14001ca20
mov edx, 0x60
mov rcx, rdi
call fcn.1400f9790
cmp byte [rsi + 0x19], 0
je 0x14006ccb0
mov rcx, qword [rsp + 0x120]
mov edx, 0x60
call fcn.1400f9790
nop
jmp 0x14006cd0a
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x180]
call sub.VCRUNTIME140.dll_memset
movups xmm0, xmmword [0x140115cb0]
movups xmmword [rsp + 0x150], xmm0
movups xmm1, xmmword [0x140115cc0]
movups xmmword [rsp + 0x160], xmm1
mov eax, dword [0x140115cd0]
mov dword [rsp + 0x170], eax
movzx eax, word [0x140115cd4]
mov word [rsp + 0x174], ax
mov r8d, ebx
mov edi, dword [reloc.WS2_32.dll_accept]
cmp edi, 2
jl 0x14006ceb3
movdqa xmm5, xmmword [0x140113d00]
movdqa xmm4, xmmword [0x140116800]
movd xmm6, r14d
movdqa xmm7, xmmword [0x1401167e0]
movd xmm8, r15d
movdqa xmm0, xmmword [0x1401167f0]
movdqa xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x154]
mov edx, dword [rsp + 0x60]
nop word [rax + rax]
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140113d20]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140113d20]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x20
jl 0x14006cdb0
cmp r8d, 0x26
jge 0x14006cf00
movsxd rax, r8d
lea r9, [rsp + 0x150]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x51eb851f
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, r8b
sub al, cl
add al, 0x38
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x26
jl 0x14006ced0
mov dword [rsp + 0x20], 1
mov r9d, 0x40
lea r8d, [r9 - 0x3e]
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x180]
call fcn.140059e60
nop
cmp qword [rsp + 0x208], 0
je 0x14006d191
movups xmm0, xmmword [0x140115ce0]
movups xmmword [rsp + 0xa0], xmm0
movups xmm1, xmmword [0x140115cf0]
movups xmmword [rsp + 0xb0], xmm1
movups xmm0, xmmword [0x140115d00]
movups xmmword [rsp + 0xc0], xmm0
movups xmm1, xmmword [0x140115d10]
movups xmmword [rsp + 0xd0], xmm1
movups xmm0, xmmword [0x140115d20]
movups xmmword [rsp + 0xe0], xmm0
movups xmm1, xmmword [0x140115d30]
movups xmmword [rsp + 0xf0], xmm1
movups xmm0, xmmword [0x140115d40]
movups xmmword [rsp + 0x100], xmm0
movups xmm1, xmmword [0x140115d50]
movups xmmword [rsp + 0x110], xmm1
cmp edi, 2
jl 0x14006d0fe
movdqa xmm5, xmmword [0x140113d00]
movdqa xmm4, xmmword [0x140116800]
movd xmm6, r14d
movdqa xmm7, xmmword [0x1401167e0]
movd xmm8, r15d
movdqa xmm0, xmmword [0x1401167f0]
movdqa xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0xa4]
mov edx, dword [rsp + 0x60]
nop dword [rax]
nop dword [rax + rax]
movd xmm2, ebx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140113d20]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [rbx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140113d20]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add ebx, 8
lea rcx, [rcx + 8]
cmp ebx, 0x80
jl 0x14006d000
jmp 0x14006d13f
lea r8, [rsp + 0xa0]
nop word [rax + rax]
mov eax, 0x51eb851f
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, bl
sub al, cl
add al, 0x38
xor byte [r8], al
inc ebx
lea r8, [r8 + 1]
cmp ebx, 0x80
jl 0x14006d110
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x180]
call fcn.140010460
lea rcx, [rsp + 0x188]
call fcn.14002c340
test rax, rax
jne 0x14006d18a
mov rax, qword [rsp + 0x180]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x180]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov byte [0x140176fe0], 1
mov rax, qword [rsp + 0x180]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x180], rax
mov rax, qword [rsp + 0x180]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x17c], edx
lea rcx, [rsp + 0x188]
call fcn.14001c760
lea rcx, [rsp + 0x190]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0x228]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1400f98b0
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
ret