Function at 0x1800a85f0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov rsi, r9
mov rdi, r8
mov r12, rdx
mov rbx, rcx
cmp rdx, 0x21
jae 0x1800a8638
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x20], rax
mov rcx, rbx
mov rdx, r12
mov r8, rdi
mov r9, rsi
call fcn.1800c3d80
jmp 0x1800a8c30
mov r13, qword [rsp + 0x138]
mov ebp, dword [rsp + 0x130]
lea rax, [rdi - 0x30]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x58], rsi
mov r14, r12
mov qword [rsp + 0x40], r13
nop dword [rax]
sub ebp, 1
jb 0x1800a8c0d
mov r9, r14
shr r9, 3
lea rdx, [r9 + r9*2]
shl rdx, 6
add rdx, rbx
imul r8, r9, 0x150
add r8, rbx
cmp r14, 0x40
mov dword [rsp + 0x3c], ebp
jae 0x1800a86c0
mov r10, qword [rbx]
mov rcx, qword [rdx]
cmp r10, rcx
setb al
je 0x1800a86d0
mov r9, qword [r8]
cmp r10, r9
setb r10b
je 0x1800a86e7
mov r15, rbx
cmp al, r10b
je 0x1800a86fb
jmp 0x1800a8717
mov rcx, rbx
call fcn.1800a8d40
mov r15, rax
jmp 0x1800a8717
mov rax, qword [rbx + 0x18]
cmp rax, qword [rdx + 0x18]
setb al
mov r9, qword [r8]
cmp r10, r9
setb r10b
jne 0x1800a86a9
mov r10, qword [rbx + 0x18]
cmp r10, qword [r8 + 0x18]
setb r10b
mov r15, rbx
cmp al, r10b
jne 0x1800a8717
cmp rcx, r9
setb cl
jne 0x1800a870e
mov rcx, qword [rdx + 0x18]
cmp rcx, qword [r8 + 0x18]
setb cl
xor al, cl
cmovne rdx, r8
mov r15, rdx
mov rbp, r15
sub rbp, rbx
shr rbp, 4
movabs rax, 0xaaaaaaaaaaaaaaab
imul rbp, rax
movups xmm0, xmmword [r15]
movups xmm1, xmmword [r15 + 0x10]
movups xmm2, xmmword [r15 + 0x20]
movaps xmmword [rsp + 0xb0], xmm2
movaps xmmword [rsp + 0xa0], xmm1
movaps xmmword [rsp + 0x90], xmm0
test r13, r13
je 0x1800a878b
mov rcx, qword [r13]
xor eax, eax
cmp rcx, qword [r15]
setne al
mov ecx, 0xff
cmovb eax, ecx
cmp al, 0xff
je 0x1800a878b
movzx eax, al
test eax, eax
jne 0x1800a89d0
mov rax, qword [r13 + 0x18]
cmp rax, qword [r15 + 0x18]
jae 0x1800a89d0
cmp r14, rsi
ja 0x1800a8c45
lea rsi, [r14 + r14*2]
shl rsi, 4
lea r13, [rdi + rsi]
xor r12d, r12d
mov rax, rbx
mov rcx, r13
mov rdx, rbp
nop dword [rax]
lea r8, [rdx + rdx*2]
shl r8, 4
add r8, rbx
jmp 0x1800a87fd
add rcx, 0xffffffffffffffd0
test r9b, r9b
mov r10, rcx
cmovne r10, rdi
lea r11, [r12 + r12*2]
shl r11, 4
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmm2, xmmword [rax + 0x20]
movups xmmword [r10 + r11 + 0x20], xmm2
movups xmmword [r10 + r11 + 0x10], xmm1
movups xmmword [r10 + r11], xmm0
movzx r9d, r9b
add r12, r9
add rax, 0x30
cmp rax, r8
jae 0x1800a8820
mov r9, qword [rax]
cmp r9, qword [r15]
setb r9b
jne 0x1800a87c0
mov r9, qword [rax + 0x18]
cmp r9, qword [r15 + 0x18]
setb r9b
jmp 0x1800a87c0
cmp rdx, r14
je 0x1800a8860
lea rdx, [r12 + r12*2]
shl rdx, 4
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmm2, xmmword [rax + 0x20]
movups xmmword [rcx + rdx - 0x10], xmm2
movups xmmword [rcx + rdx - 0x20], xmm1
movups xmmword [rcx + rdx - 0x30], xmm0
add rcx, 0xffffffffffffffd0
add rax, 0x30
mov rdx, r14
jmp 0x1800a87b0
mov rax, r12
shl rax, 4
lea r8, [rax + rax*2]
mov rcx, rbx
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rdx, r14
sub rdx, r12
movabs r11, 0xffffffffffffffe
je 0x1800a8961
lea rax, [r12 + r12*2]
shl rax, 4
add rax, rbx
lea rcx, [r12 + 1]
cmp r14, rcx
jne 0x1800a88b0
xor r9d, r9d
jmp 0x1800a8929
mov rcx, rdx
and rcx, 0xfffffffffffffffe
add rsi, qword [rsp + 0x48]
mov r8, rax
xor r10d, r10d
nop word cs:[rax + rax]
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movups xmm2, xmmword [rsi + 0x20]
movups xmmword [r8 + 0x20], xmm2
movups xmmword [r8 + 0x10], xmm1
movups xmmword [r8], xmm0
lea r9, [r10 + 2]
xor r10, r11
lea r10, [r10 + r10*2]
shl r10, 4
movups xmm0, xmmword [r13 + r10]
movups xmm1, xmmword [r13 + r10 + 0x10]
movups xmm2, xmmword [r13 + r10 + 0x20]
movups xmmword [r8 + 0x30], xmm0
movups xmmword [r8 + 0x40], xmm1
movups xmmword [r8 + 0x50], xmm2
add r8, 0x60
add rsi, 0xffffffffffffffa0
mov r10, r9
cmp rcx, r9
jne 0x1800a88d0
test dl, 1
je 0x1800a8961
lea rcx, [r9 + r9*2]
not r9
lea r8, [r9 + r9*2]
shl r8, 4
shl rcx, 4
movups xmm0, xmmword [r13 + r8]
movups xmm1, xmmword [r13 + r8 + 0x10]
movups xmm2, xmmword [r13 + r8 + 0x20]
movups xmmword [rax + rcx + 0x20], xmm2
movups xmmword [rax + rcx + 0x10], xmm1
movups xmmword [rax + rcx], xmm0
test r12, r12
mov rsi, qword [rsp + 0x58]
mov r13, qword [rsp + 0x40]
je 0x1800a89d0
cmp r14, r12
jb 0x1800a8c47
lea rcx, [r12 + r12*2]
shl rcx, 4
add rcx, rbx
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov ebp, dword [rsp + 0x3c]
mov dword [rsp + 0x20], ebp
mov r8, rdi
mov r9, rsi
call fcn.1800a85f0
mov r14, r12
cmp r12, 0x21
jae 0x1800a8660
jmp 0x1800a8615
cmp r14, rsi
ja 0x1800a8c45
lea rax, [r14 + r14*2]
shl rax, 4
mov qword [rsp + 0x50], rax
lea rcx, [rdi + rax]
xor r13d, r13d
mov rax, rbx
mov qword [rsp + 0x40], rcx
mov r11d, 0xff
nop dword [rax + rax]
lea rdx, [rbp*2]
add rdx, rbp
shl rdx, 4
add rdx, rbx
jmp 0x1800a8a68
add rcx, 0xffffffffffffffd0
xor r9d, r9d
cmp r8b, 0xff
mov r8, rcx
cmovne r8, rdi
setne r9b
lea r10, [r13*2]
add r10, r13
shl r10, 4
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmm2, xmmword [rax + 0x20]
movups xmmword [r8 + r10 + 0x20], xmm2
movups xmmword [r8 + r10 + 0x10], xmm1
movups xmmword [r8 + r10], xmm0
add r13, r9
add rax, 0x30
cmp rax, rdx
jae 0x1800a8aa0
mov r9, qword [r15]
xor r8d, r8d
cmp r9, qword [rax]
setne r8b
cmovb r8d, r11d
test r8b, r8b
jne 0x1800a8a20
mov r9, qword [r15 + 0x18]
xor r8d, r8d
cmp r9, qword [rax + 0x18]
setne r8b
cmovb r8d, r11d
jmp 0x1800a8a20
cmp rbp, r14
je 0x1800a8ae0
add rcx, 0xffffffffffffffd0
lea rdx, [r13*2]
add rdx, r13
shl rdx, 4
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmm2, xmmword [rax + 0x20]
movups xmmword [rdi + rdx + 0x20], xmm2
movups xmmword [rdi + rdx + 0x10], xmm1
movups xmmword [rdi + rdx], xmm0
inc r13
add rax, 0x30
mov rbp, r14
jmp 0x1800a8a00
mov rax, r13
shl rax, 4
lea r8, [rax + rax*2]
mov rcx, rbx
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
movabs r10, 0xffffffffffffffe
mov r12, r14
sub r12, r13
mov ebp, dword [rsp + 0x3c]
mov r11, qword [rsp + 0x40]
je 0x1800a8bdd
lea rax, [r13*2]
add rax, r13
shl rax, 4
add rax, rbx
lea rcx, [r13 + 1]
cmp r14, rcx
jne 0x1800a8b35
xor r8d, r8d
jmp 0x1800a8ba5
mov rcx, r12
and rcx, 0xfffffffffffffffe
mov r15, qword [rsp + 0x50]
add r15, qword [rsp + 0x48]
mov rdx, rax
xor r9d, r9d
nop dword [rax]
movups xmm0, xmmword [r15]
movups xmm1, xmmword [r15 + 0x10]
movups xmm2, xmmword [r15 + 0x20]
movups xmmword [rdx + 0x20], xmm2
movups xmmword [rdx + 0x10], xmm1
movups xmmword [rdx], xmm0
lea r8, [r9 + 2]
xor r9, r10
lea r9, [r9 + r9*2]
shl r9, 4
movups xmm0, xmmword [r11 + r9]
movups xmm1, xmmword [r11 + r9 + 0x10]
movups xmm2, xmmword [r11 + r9 + 0x20]
movups xmmword [rdx + 0x30], xmm0
movups xmmword [rdx + 0x40], xmm1
movups xmmword [rdx + 0x50], xmm2
add rdx, 0x60
add r15, 0xffffffffffffffa0
mov r9, r8
cmp rcx, r8
jne 0x1800a8b50
test r12b, 1
je 0x1800a8bdd
lea rcx, [r8 + r8*2]
not r8
lea rdx, [r8 + r8*2]
shl rdx, 4
shl rcx, 4
movups xmm0, xmmword [r11 + rdx]
movups xmm1, xmmword [r11 + rdx + 0x10]
movups xmm2, xmmword [r11 + rdx + 0x20]
movups xmmword [rax + rcx + 0x20], xmm2
movups xmmword [rax + rcx + 0x10], xmm1
movups xmmword [rax + rcx], xmm0
cmp r14, r13
jb 0x1800a8c7e
lea rax, [r13*2]
add rax, r13
shl rax, 4
add rbx, rax
mov r13d, 0
cmp r12, 0x21
jae 0x1800a8655
jmp 0x1800a8615
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], 1
mov rcx, rbx
mov rdx, r14
mov r8, rdi
mov r9, rsi
call fcn.1800ab580
nop
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
lea rax, [0x180356d28]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
mov qword [rsp + 0x70], 8
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
lea rdx, [0x180356d38]
lea rcx, [rsp + 0x60]
call fcn.180337950
lea r8, [0x180356d50]
mov rcx, r13
mov rdx, r14
call fcn.180337db0
int3