Function at 0x1800a1880
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 rbp
lea rbp, [rax - 0x28]
sub rsp, 0x120
movaps xmmword [rax - 0x18], xmm6
mov rax, qword [0x180127040]
xor rax, rsp
mov qword [rbp], rax
movsd xmm0, qword [0x180128c98]
movsd xmm1, qword [0x1801109b8]
comisd xmm0, xmm1
mov eax, dword [0x180128da4]
jb 0x1800a1bfc
cmp eax, 0x13
jge 0x1800a1bfc
movups xmm0, xmmword [0x18010a600]
xor r8d, r8d
cmp dword [0x180127018], 2
movups xmm1, xmmword [0x18010a610]
movzx eax, word [0x18010a698]
movups xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [0x18010a620]
movups xmmword [rbp - 0x80], xmm0
movups xmm0, xmmword [0x18010a640]
movups xmmword [rbp - 0x60], xmm0
movups xmm0, xmmword [0x18010a660]
movups xmmword [rsp + 0x70], xmm1
movups xmm1, xmmword [0x18010a630]
movups xmmword [rbp - 0x40], xmm0
movups xmm0, xmmword [0x18010a680]
movups xmmword [rbp - 0x70], xmm1
movups xmm1, xmmword [0x18010a650]
movups xmmword [rbp - 0x20], xmm0
movsd xmm0, qword [0x18010a690]
movups xmmword [rbp - 0x50], xmm1
movups xmm1, xmmword [0x18010a670]
mov word [rbp - 8], ax
movzx eax, byte [0x18010a69a]
movsd qword [rbp - 0x10], xmm0
movups xmmword [rbp - 0x30], xmm1
mov byte [rbp - 6], al
jl 0x1800a1ab5
movdqa xmm0, xmmword [0x180110f70]
lea rcx, [rsp + 0x64]
movdqa xmm5, xmmword [0x180110e60]
movdqa xmm4, xmmword [0x180111070]
movdqa xmm6, xmmword [0x180110e90]
movdqa xmmword [rsp + 0x20], xmm0
mov edx, dword [rsp + 0x20]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add r8d, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x180110f50]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180110f50]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x98
jl 0x1800a19a0
cmp r8d, 0x9b
jge 0x1800a1af7
movsxd rax, r8d
lea r9, [rsp + 0x60]
add r9, rax
mov eax, 0x8fb823ef
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x39
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x33
xor byte [r9 - 1], al
cmp r8d, 0x9b
jl 0x1800a1ac0
mov rcx, qword [0x180128be8]
xor esi, esi
xor r14d, r14d
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, qword [0x180128be8]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [rsp + 0x60]
movsxd rcx, dword [rax + 0x3c]
mov ebx, dword [rcx + rbx + 0x50]
lea rcx, [rsp + 0x20]
call fcn.180021880
mov rcx, qword [0x180128be8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r10, qword [rsp + 0x28]
xor r9d, r9d
mov r11, qword [rsp + 0x20]
mov rdi, rax
sub r10, r11
sar r10, 2
sub rbx, r10
je 0x1800a1ba9
nop dword [rax]
xor edx, edx
test r10, r10
je 0x1800a1b90
xor eax, eax
nop dword [rax]
mov r8d, dword [r11 + rax*4]
lea eax, [rdx + r9]
movzx eax, byte [rax + rdi]
cmp eax, r8d
je 0x1800a1b87
cmp r8d, 0xffffffff
jne 0x1800a1b96
inc edx
mov eax, edx
cmp rax, r10
jb 0x1800a1b70
test esi, esi
jle 0x1800a1ba3
dec esi
inc r9d
mov eax, r9d
cmp rax, rbx
jb 0x1800a1b60
jmp 0x1800a1ba9
mov r14d, r9d
add r14, rdi
test r11, r11
je 0x1800a1bea
mov rdx, qword [rsp + 0x30]
mov rax, r11
sub rdx, r11
and rdx, 0xfffffffffffffffc
cmp rdx, 0x1000
jb 0x1800a1be2
mov r11, qword [r11 - 8]
add rdx, 0x27
sub rax, r11
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800a1be2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r11
call fcn.1800d3c10
mov eax, dword [0x180128da4]
mov qword [0x180129720], r14
jmp 0x1800a1f25
cmp eax, 0x10
jl 0x1800a2000
comisd xmm1, xmm0
jbe 0x1800a1f1e
movups xmm0, xmmword [0x18010a560]
xor r8d, r8d
cmp dword [0x180127018], 2
movups xmm1, xmmword [0x18010a570]
mov eax, dword [0x18010a5f0]
movups xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [0x18010a580]
movups xmmword [rbp - 0x80], xmm0
movups xmm0, xmmword [0x18010a5a0]
movups xmmword [rsp + 0x70], xmm1
movups xmm1, xmmword [0x18010a590]
movups xmmword [rbp - 0x60], xmm0
movups xmm0, xmmword [0x18010a5c0]
movups xmmword [rbp - 0x70], xmm1
movups xmm1, xmmword [0x18010a5b0]
movups xmmword [rbp - 0x40], xmm0
movups xmm0, xmmword [0x18010a5e0]
movups xmmword [rbp - 0x50], xmm1
movups xmm1, xmmword [0x18010a5d0]
mov dword [rbp - 0x10], eax
movzx eax, word [0x18010a5f4]
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x30], xmm1
mov word [rbp - 0xc], ax
jl 0x1800a1de5
movdqa xmm0, xmmword [0x180110f70]
lea rcx, [rsp + 0x64]
movdqa xmm5, xmmword [0x180110e60]
movdqa xmm4, xmmword [0x180111070]
movdqa xmm6, xmmword [0x180110e90]
movdqa xmmword [rsp + 0x20], xmm0
mov edx, dword [rsp + 0x20]
nop word [rax + rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add r8d, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x180110f50]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180110f50]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x90
jl 0x1800a1cd0
cmp r8d, 0x96
jge 0x1800a1e27
movsxd rax, r8d
lea r9, [rsp + 0x60]
add r9, rax
mov eax, 0x8fb823ef
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x39
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x33
xor byte [r9 - 1], al
cmp r8d, 0x96
jl 0x1800a1df0
mov rcx, qword [0x180128be8]
xor esi, esi
xor r14d, r14d
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, qword [0x180128be8]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [rsp + 0x60]
movsxd rcx, dword [rax + 0x3c]
mov ebx, dword [rcx + rbx + 0x50]
lea rcx, [rsp + 0x20]
call fcn.180021880
mov rcx, qword [0x180128be8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r10, qword [rsp + 0x28]
xor r9d, r9d
mov r11, qword [rsp + 0x20]
mov rdi, rax
sub r10, r11
sar r10, 2
sub rbx, r10
je 0x1800a1ed9
nop dword [rax]
xor edx, edx
test r10, r10
je 0x1800a1ec0
xor eax, eax
nop dword [rax]
mov r8d, dword [r11 + rax*4]
lea eax, [rdx + r9]
movzx eax, byte [rax + rdi]
cmp eax, r8d
je 0x1800a1eb7
cmp r8d, 0xffffffff
jne 0x1800a1ec6
inc edx
mov eax, edx
cmp rax, r10
jb 0x1800a1ea0
test esi, esi
jle 0x1800a1ed3
dec esi
inc r9d
mov eax, r9d
cmp rax, rbx
jb 0x1800a1e90
jmp 0x1800a1ed9
mov r14d, r9d
add r14, rdi
test r11, r11
je 0x1800a1bea
mov rdx, qword [rsp + 0x30]
mov rax, r11
sub rdx, r11
and rdx, 0xfffffffffffffffc
cmp rdx, 0x1000
jb 0x1800a1be2
mov r11, qword [r11 - 8]
add rdx, 0x27
sub rax, r11
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800a1be2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov r14, qword [0x180129720]
add eax, 0xfffffff0
cmp eax, 2
ja 0x1800a2000
mov qword [rsp + 0x50], 0
xorps xmm0, xmm0
mov qword [rsp + 0x58], socket
movups xmmword [rsp + 0x40], xmm0
test r14, r14
jne 0x1800a1fc7
lea ecx, [r14 + 0x50]
call fcn.1800d3c20
movups xmm0, xmmword [str.Couldnt_find_UnsafeEnv__Game_will_close_out_when_entering_In_Game_]
mov rcx, rax
mov qword [rsp + 0x40], rax
xor edx, edx
mov qword [rsp + 0x50], 0x43
mov qword [rsp + 0x58], 0x4f
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x18010a250]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x18010a260]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [0x18010a270]
movups xmmword [rax + 0x30], xmm1
movzx eax, word [0x18010a280]
mov word [rcx + 0x40], ax
movzx eax, byte [0x18010a282]
mov byte [rcx + 0x42], al
mov byte [rcx + 0x43], r14b
lea rcx, [rsp + 0x40]
call fcn.180098640
xor al, al
jmp 0x1800a2002
mov ecx, 0x20
call fcn.1800d3c20
movups xmm0, xmmword [str.Found_UnsafeEnv_]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x50], socket
mov qword [rsp + 0x58], 0x1f
movups xmmword [rax], xmm0
mov byte [rax + 0x10], 0
call fcn.180098340
mov al, 1
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1800d3880
lea r11, [rsp + 0x120]
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]
mov rsp, r11
pop rbp
ret