Function at 0x1800185e0
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rdi
push rbp
lea rbp, [r11 - 0x5f]
sub rsp, 0xe0
mov rax, qword [0x18001f010]
xor rax, rsp
mov qword [rbp + 7], rax
movups xmm0, xmmword [str.w_A___C_zVRYSJ]
xor edi, edi
cmp dword [0x18001f020], 2
mov r8d, edi
movups xmm1, xmmword [0x18001b8d0]
mov eax, dword [0x18001b900]
movups xmmword [rbp - 0x49], xmm0
movups xmm0, xmmword [str.__uph]
movups xmmword [rbp - 0x39], xmm1
movups xmm1, xmmword [0x18001b8f0]
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm1
mov dword [rbp - 9], eax
jl 0x1800187bb
movdqa xmm5, xmmword [0x18001bcb0]
lea rcx, [rbp - 0x49]
movdqa xmm4, xmmword [0x18001beb0]
mov eax, 5
movaps xmmword [r11 - 0x18], xmm6
movaps xmmword [r11 - 0x28], xmm7
movdqa xmm7, xmmword [0x18001bcd0]
movaps xmmword [r11 - 0x38], xmm8
movd xmm6, eax
mov eax, 0x1f
movaps xmmword [r11 - 0x48], xmm9
movdqa xmm9, xmmword [0x18001bce0]
movd xmm8, eax
nop dword [rax]
nop dword [rax + rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 0x10]
paddd xmm2, xmm5
add r8d, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm9
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
xorps xmm3, xmm0
movq qword [rcx - 0x10], xmm3
paddd xmm2, xmm5
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm9
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
xorps xmm3, xmm0
movq qword [rcx - 8], xmm3
cmp r8d, 0x20
jl 0x1800186a0
movaps xmm9, xmmword [rsp + 0xa0]
movaps xmm8, xmmword [rsp + 0xb0]
movaps xmm7, xmmword [rsp + 0xc0]
movaps xmm6, xmmword [rsp + 0xd0]
cmp r8d, 0x22
jge 0x180018808
movsxd rax, r8d
lea r9, [rbp - 0x49]
lea r9, [r9 + rax*2]
nop word [rax + rax]
mov eax, 0x92492493
lea r9, [r9 + 2]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x38
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x31
xor word [r9 - 2], ax
cmp r8d, 0x22
jl 0x1800187d0
mov rax, qword gs:[0x60]
test rax, rax
jne 0x180018822
mov qword [0x18001f900], rdi
jmp 0x180018a19
mov r11, qword [rax + 0x18]
add r11, 0x20
mov qword [rsp + 0xf0], rbx
mov r10, qword [r11]
cmp r10, r11
je 0x18001898e
movzx ebx, word [rbp - 0x49]
mov r8, qword [r10 + 0x50]
test r8, r8
je 0x180018982
mov ecx, edi
mov rax, r8
cmp word [r8], cx
je 0x18001886b
nop word [rax + rax]
inc ecx
lea rax, [rax + 2]
cmp word [rax], di
jne 0x180018860
lea rax, [rbp - 0x49]
mov edx, edi
test bx, bx
je 0x18001888b
nop word [rax + rax]
inc edx
lea rax, [rax + 2]
cmp word [rax], di
jne 0x180018880
cmp ecx, edx
jne 0x180018982
movsxd r9, ecx
mov rax, rdi
test ecx, ecx
je 0x1800188c3
nop dword [rax]
movzx edx, word [r8 + rax*2]
movzx ecx, word [rbp + rax*2 - 0x49]
or dx, 0x20
or cx, 0x20
cmp dx, cx
jne 0x180018982
inc rax
cmp rax, r9
jb 0x1800188a0
mov rax, qword [r10 + 0x20]
mov qword [0x18001f900], rax
test rax, rax
je 0x180018a11
mov qword [rsp + 0xf8], rsi
call fcn.180007d20
movzx eax, word [0x18001afe8]
lea r8, [rbp - 0x69]
movups xmm0, xmmword [str.w_ZASY9]
xor ax, 0x39
mov ecx, 0x46
mov word [rbp - 0x59], ax
mov rax, qword [0x18001f900]
movups xmmword [rbp - 0x69], xmm0
xor word [rbp - 0x67], 0x32
lea rdx, [rcx - 0x47]
xor word [rbp - 0x65], 0x33
add rax, 0x1216928
xor word [rbp - 0x63], 0x34
xor word [rbp - 0x61], 0x35
xor word [rbp - 0x5f], 0x36
xor word [rbp - 0x5d], 0x37
xor word [rbp - 0x5b], 0x38
mov word [rbp - 0x69], cx
xor ecx, ecx
call rax
mov rsi, rax
test rax, rax
je 0x180018a09
mov rdx, rax
mov qword [rsp + 0x100], r14
call fcn.180004f00
mov r14, rax
lea rbx, [rax + 0x38]
test rbx, rbx
je 0x180018997
mov edx, 8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x180018997
mov rbx, qword [rbx]
jmp 0x18001899a
mov r10, qword [r10]
cmp r10, r11
jne 0x180018842
mov qword [0x18001f900], rdi
jmp 0x180018a11
mov rbx, rdi
mov rbx, qword [rbx]
mov rdx, rsi
call fcn.180005180
add rbx, 0x78
je 0x1800189c2
mov edx, 8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x1800189c2
mov rsi, qword [rbx]
jmp 0x1800189c5
mov rsi, rdi
mov rdx, r14
call fcn.180005990
mov r14, qword [rsp + 0x100]
mov rbx, rax
add rbx, 0x70
je 0x1800189f3
mov edx, 8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x1800189f3
mov rdi, qword [rbx]
mov rcx, rsi
mov qword [0x18001f798], rdi
call fcn.180018cc0
mov qword [0x18001f7b0], rax
mov rsi, qword [rsp + 0xf8]
mov rbx, qword [rsp + 0xf0]
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.180018d90
mov rdi, qword [rsp + 0x108]
add rsp, 0xe0
pop rbp
ret