Function at 0x1801566a0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0xf8]
sub rsp, 0x1d0
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
movaps xmmword [rax - 0x78], xmm10
movaps xmmword [rax - 0x88], xmm11
movaps xmmword [rax - 0x98], xmm12
mov rax, qword [0x1803d9938]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov rdi, rdx
mov r14, rcx
mov qword [rbp - 0x40], rdx
mov r10, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x18015670d
mov r10, qword [rdx]
mov r11, qword [rdx + 0x10]
xor r12d, r12d
mov r9d, r12d
add r11, r10
cmp r10, r11
je 0x180156756
nop
movzx r8d, byte [r10]
lea edx, [r8 - 0x41]
movzx eax, r8b
or al, 0x20
movzx ecx, al
cmp dl, 0x19
cmova ecx, r8d
movsx eax, cl
add eax, r9d
imul r9d, eax, 0x401
mov eax, r9d
shr eax, 6
xor r9d, eax
inc r10
cmp r10, r11
jne 0x180156720
lea ecx, [r9 + r9*8]
mov eax, ecx
shr eax, 0xb
xor ecx, eax
imul esi, ecx, 0x8001
mov ecx, esi
call fcn.180156c90
test al, al
je 0x180156a13
call fcn.1801789f0
movss xmm0, dword [r14 + 0x98]
cvtps2pd xmm0, xmm0
movsd xmm11, qword [0x1802aeaf8]
subsd xmm0, xmm11
cvtpd2ps xmm3, xmm0
movss xmm2, dword [r14 + 0xb0]
addss xmm2, dword [0x1802a1310]
movss xmm1, dword [r14 + 0xac]
movss xmm12, dword [0x1802aeae0]
addss xmm1, xmm12
movups xmm0, xmmword [r14 + 0x298]
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x40], 0xf0
movss xmm10, dword [0x1802aeb08]
movss dword [rsp + 0x38], xmm10
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
movss xmm0, dword [0x1802aeae8]
movss dword [rsp + 0x20], xmm0
mov rcx, r14
call fcn.1801522b0
call fcn.1801789f0
mov rbx, rax
movups xmm7, xmmword [r14 + 0x2d8]
movss xmm0, dword [r14 + 0x98]
cvtps2pd xmm0, xmm0
subsd xmm0, qword [0x1802aeb00]
cvtpd2ps xmm8, xmm0
movss xmm9, dword [r14 + 0xb0]
addss xmm9, dword [0x1802a1310]
movss xmm6, dword [r14 + 0xac]
addss xmm6, xmm12
lea r15, [rbp - 0x60]
mov qword [rsp + 0x70], r15
mov edx, esi
lea rcx, [rbp + 0x10]
call fcn.180156ab0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], r12
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rbp - 0x50], xmm1
mov qword [rax + 0x30], r12
mov qword [rax + 0x38], 0xf
mov byte [rax + 0x20], 0
mov edx, esi
lea rcx, [rbp - 0x30]
call fcn.180156ab0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x68], r12
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x70], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
movaps xmmword [rsp + 0x60], xmm7
mov dword [rsp + 0x58], 0xf0
movss dword [rsp + 0x50], xmm10
mov qword [rsp + 0x48], rbx
xorps xmm0, xmm0
movss dword [rsp + 0x40], xmm0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
movss xmm0, dword [0x1802aeae4]
movss dword [rsp + 0x30], xmm0
movss dword [rsp + 0x28], xmm8
movss dword [rsp + 0x20], xmm9
movaps xmm3, xmm6
mov r8, r15
lea rdx, [rbp - 0x80]
mov rcx, r14
call fcn.1801526e0
nop
lea rcx, [rbp - 0x30]
call fcn.1800ffed0
nop
lea rcx, [rbp + 0x10]
call fcn.1800ffed0
call fcn.1801789f0
mov r8, rax
mov edx, dword [r14 + 0x130]
movss xmm0, dword [r14 + 0x98]
cvtps2pd xmm0, xmm0
subsd xmm0, xmm11
cvtpd2ps xmm3, xmm0
movss xmm2, dword [r14 + 0xb0]
addss xmm2, dword [0x1802aead8]
subss xmm2, dword [0x1802aead8]
cvtps2pd xmm0, xmm2
addsd xmm0, qword [0x1802aeaf0]
cvtpd2ps xmm2, xmm0
movss xmm1, dword [r14 + 0xac]
addss xmm1, xmm12
mov eax, dword [r14 + 0x581]
mov dword [rsp + 0x60], eax
mov eax, dword [r14 + 0x585]
mov dword [rsp + 0x64], eax
mov eax, dword [r14 + 0x589]
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x6c], edx
mov eax, dword [r14 + 0x571]
mov dword [rsp + 0x70], eax
mov eax, dword [r14 + 0x575]
mov dword [rsp + 0x74], eax
mov eax, dword [r14 + 0x579]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x7c], edx
mov qword [rsp + 0x38], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
movss xmm0, dword [0x1802aeadc]
movss dword [rsp + 0x20], xmm0
mov rcx, r14
call fcn.180151bd0
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x180156a49
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x180156a44
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180156aa3
mov rcx, r8
call fcn.18026980c
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.180269d00
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
movaps xmm12, xmmword [r11 - 0x70]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3