Function at 0x1800fb5f0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x2e8
mov qword [rsp + 0x58], rcx
cmp rdx, 2
jb 0x1800fbcc9
mov rsi, rdx
movabs rax, 0x3fffffffffffffff
add rax, rdx
mov rcx, rax
or rcx, rdx
shr rcx, 0x20
je 0x1800fb635
xor edx, edx
div rsi
jmp 0x1800fb639
xor edx, edx
div esi
mov qword [rsp + 0x60], rax
cmp rsi, 0x1001
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x38], r8
jae 0x1800fb66c
mov rax, rsi
shr rax, 1
mov rcx, rsi
sub rcx, rax
cmp rcx, 0x40
mov eax, 0x40
cmovb rax, rcx
jmp 0x1800fb67e
mov rcx, rsi
call fcn.18017eab0
mov r8, qword [rsp + 0x38]
mov r9, qword [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
add rax, 0xfffffffffffffff8
mov qword [rsp + 0x70], rax
mov r13d, 1
xor r12d, r12d
xor r14d, r14d
mov qword [rsp + 0x80], rsi
nop word cs:[rax + rax]
mov rax, qword [rsp + 0x58]
lea rax, [rax + r12*8]
mov qword [rsp + 0x48], rax
sub rsi, r12
jbe 0x1800fb730
cmp rsi, qword [rsp + 0x50]
jae 0x1800fb750
cmp byte [rsp + 0x350], 0
je 0x1800fb761
cmp rsi, 0x20
mov eax, 0x20
cmovae rsi, rax
mov rax, qword [rsp + 0x358]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x48]
mov rdx, rsi
call fcn.18010de00
mov r8, qword [rsp + 0x38]
mov r9, qword [rsp + 0x40]
mov eax, esi
lea rsi, [rax*2 + 1]
jmp 0x1800fb96b
xor esi, esi
mov eax, 1
mov qword [rsp + 0x68], rax
cmp r14, 2
jae 0x1800fb9c0
jmp 0x1800fbc56
mov r11, r8
cmp rsi, 2
jae 0x1800fb775
mov r10, rsi
jmp 0x1800fb960
mov rax, qword [rsp + 0x50]
cmp rax, rsi
cmovb rsi, rax
add rsi, rsi
jmp 0x1800fb96b
mov r10, qword [rsp + 0x48]
lea rax, [r10 + 8]
mov r8d, dword [r10 + 8]
mov edi, dword [r10 + 0xc]
xor edx, edx
cmp edi, dword [r10 + 4]
setb dl
xor ecx, ecx
cmp r8d, dword [r10]
setb cl
cmove ecx, edx
test cl, cl
mov rbx, rsi
je 0x1800fb7c6
cmp rsi, 2
jne 0x1800fb81a
mov r10d, 2
mov ecx, 1
mov r8, rax
cmp rcx, 1
jne 0x1800fb8d0
xor edx, edx
jmp 0x1800fb926
mov r10d, 2
cmp rsi, 2
je 0x1800fb960
mov edx, 2
nop dword [rax + rax]
mov r10d, r8d
mov r11d, edi
mov r9, qword [rsp + 0x48]
mov r8d, dword [r9 + rdx*8]
mov edi, dword [r9 + rdx*8 + 4]
xor esi, esi
cmp edi, r11d
setb sil
xor r11d, r11d
cmp r8d, r10d
setb r11b
cmove r11d, esi
test r11b, r11b
jne 0x1800fb876
inc rdx
cmp rbx, rdx
jne 0x1800fb7e0
jmp 0x1800fb859
mov edx, 2
nop
mov r10d, r8d
mov r11d, edi
mov r9, qword [rsp + 0x48]
mov r8d, dword [r9 + rdx*8]
mov edi, dword [r9 + rdx*8 + 4]
xor esi, esi
cmp edi, r11d
setb sil
xor r11d, r11d
cmp r8d, r10d
setb r11b
cmove r11d, esi
cmp r11b, 1
jne 0x1800fb876
inc rdx
cmp rbx, rdx
jne 0x1800fb820
mov rsi, rbx
mov rdx, rbx
cmp rdx, qword [rsp + 0x50]
mov r9, qword [rsp + 0x40]
mov r8, qword [rsp + 0x38]
jb 0x1800fb6ce
jmp 0x1800fb88e
mov rsi, rbx
cmp rdx, qword [rsp + 0x50]
mov r9, qword [rsp + 0x40]
mov r8, qword [rsp + 0x38]
jb 0x1800fb6ce
mov r11, r8
test cl, cl
je 0x1800fb955
mov r10d, 1
cmp rdx, 2
jb 0x1800fb960
mov rcx, rdx
shr rcx, 1
mov r8, qword [rsp + 0x48]
lea r8, [r8 + rdx*8]
lea r9, [rcx*8]
sub r8, r9
mov r10, rdx
cmp rcx, 1
je 0x1800fb7bf
mov r9, rcx
and r9, 0xfffffffffffffffe
lea r11, [r8 + rcx*8]
add r11, 0xfffffffffffffff8
xor edx, edx
movabs r15, 0x1ffffffffffffffe
nop dword [rax + rax]
mov rsi, qword [r11]
mov rdi, qword [rax + rdx*8 - 8]
mov qword [rax + rdx*8 - 8], rsi
mov qword [r11], rdi
mov rsi, rdx
xor rsi, r15
add rsi, rcx
mov rdi, qword [r8 + rsi*8]
mov rbx, qword [rax + rdx*8]
mov qword [rax + rdx*8], rdi
mov qword [r8 + rsi*8], rbx
add rdx, 2
add r11, 0xfffffffffffffff0
cmp r9, rdx
jne 0x1800fb8f0
test cl, 1
je 0x1800fb949
mov rax, rdx
not rax
add rcx, rax
mov rax, qword [r8 + rcx*8]
mov r11, qword [rsp + 0x48]
mov r9, qword [r11 + rdx*8]
mov qword [r11 + rdx*8], rax
mov qword [r8 + rcx*8], r9
mov r9, qword [rsp + 0x40]
mov r11, qword [rsp + 0x38]
jmp 0x1800fb960
mov r10, rdx
nop dword [rax + rax]
lea rsi, [r10*2 + 1]
mov r8, r11
mov rax, r13
shr rax, 1
mov qword [rsp + 0x68], rsi
shr rsi, 1
lea rdx, [r12 + r12]
sub rdx, rax
lea rax, [rsi + r12*2]
mov rcx, qword [rsp + 0x60]
imul rdx, rcx
imul rax, rcx
xor rax, rdx
je 0x1800fb9a9
bsr rsi, rax
xor rsi, 0x3f
cmp r14, 2
jae 0x1800fb9c0
jmp 0x1800fbc56
mov esi, 0x40
cmp r14, 2
jb 0x1800fbc56
nop dword [rax + rax]
mov rax, qword [rsp + 0x70]
lea rax, [rax + r12*8]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x88], r12
jmp 0x1800fba0d
mov r12, r13
mov rdx, r10
sub r8, rdx
mov rcx, r12
call sub.VCRUNTIME140.dll_memcpy
mov r9, qword [rsp + 0x40]
mov r8, qword [rsp + 0x38]
lea r13, [rbp*2 + 1]
mov r12, qword [rsp + 0x88]
cmp r14, 1
jbe 0x1800fbc50
cmp byte [rsp + r14 + 0x95], sil
jb 0x1800fbc56
dec r14
mov rdi, qword [rsp + r14*8 + 0xd8]
mov r15, rdi
shr r15, 1
mov rbx, r13
shr rbx, 1
lea rbp, [r15 + rbx]
cmp rbp, r9
ja 0x1800fba60
mov eax, edi
or eax, r13d
and eax, 1
jne 0x1800fba60
add rbp, rbp
mov r13, rbp
cmp r14, 1
ja 0x1800fba0d
jmp 0x1800fbc50
mov rax, r12
sub rax, rbp
mov rcx, qword [rsp + 0x58]
lea r12, [rcx + rax*8]
test dil, 1
jne 0x1800fbad0
mov rax, r15
or rax, 1
bsr rax, rax
xor eax, 0x3f
add eax, eax
xor eax, 0x7e
mov rcx, qword [rsp + 0x358]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], 0
mov rcx, r12
mov rdx, r15
call fcn.18010de00
mov r8, qword [rsp + 0x38]
mov r9, qword [rsp + 0x40]
test r13b, 1
je 0x1800fbad6
cmp r13, 2
jae 0x1800fbb23
jmp 0x1800fb9f3
test r13b, 1
jne 0x1800fbabd
lea rcx, [r12 + r15*8]
mov rax, rbx
or rax, 1
bsr rax, rax
xor eax, 0x3f
add eax, eax
xor eax, 0x7e
mov rdx, qword [rsp + 0x358]
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], 0
mov rdx, rbx
call fcn.18010de00
mov r8, qword [rsp + 0x38]
mov r9, qword [rsp + 0x40]
cmp r13, 2
jb 0x1800fb9f3
cmp rdi, 2
jb 0x1800fb9f3
cmp r15, rbx
mov rdi, rbx
cmovb rdi, r15
cmp rdi, r9
ja 0x1800fb9f3
lea r13, [r12 + r15*8]
cmp rbx, r15
mov rdx, r12
cmovb rdx, r13
mov rcx, r8
lea r8, [rdi*8]
call sub.VCRUNTIME140.dll_memcpy
mov r10, qword [rsp + 0x38]
lea r8, [r10 + rdi*8]
cmp rbx, r15
jae 0x1800fbbdd
mov rax, qword [rsp + 0x78]
nop word cs:[rax + rax]
mov ecx, dword [r8 - 8]
mov edx, dword [r8 - 4]
xor r9d, r9d
cmp edx, dword [r13 - 4]
setb r9b
xor edx, edx
cmp ecx, dword [r13 - 8]
setb dl
cmove edx, r9d
test dl, dl
mov rcx, r8
cmovne rcx, r13
mov rcx, qword [rcx - 8]
mov qword [rax], rcx
movzx ecx, dl
xor dl, 1
movzx edx, dl
lea r13, [r13 + rdx*8 - 8]
lea r8, [r8 + rcx*8]
add r8, 0xfffffffffffffff8
cmp r13, r12
je 0x1800fb9d8
add rax, 0xfffffffffffffff8
cmp r8, r10
jne 0x1800fbb80
jmp 0x1800fb9d8
mov rdx, r10
test rdi, rdi
je 0x1800fb9de
nop dword [rax]
mov ecx, dword [r13]
mov eax, dword [r13 + 4]
xor r9d, r9d
cmp eax, dword [rdx + 4]
setb r9b
xor eax, eax
cmp ecx, dword [rdx]
setb al
cmove eax, r9d
mov ecx, eax
xor cl, 1
test al, al
mov r9, rdx
cmovne r9, r13
mov r9, qword [r9]
mov qword [r12], r9
movzx ecx, cl
lea rdx, [rdx + rcx*8]
add r12, 8
cmp rdx, r8
je 0x1800fb9de
movzx eax, al
lea r13, [r13 + rax*8]
cmp r13, qword [rsp + 0x48]
jne 0x1800fbbf0
jmp 0x1800fb9de
mov r14d, 1
mov qword [rsp + r14*8 + 0xd8], r13
mov byte [rsp + r14 + 0x96], sil
mov rsi, qword [rsp + 0x80]
cmp rsi, r12
jbe 0x1800fbc89
inc r14
mov r13, qword [rsp + 0x68]
mov rax, r13
shr rax, 1
add r12, rax
jmp 0x1800fb6b0
test r13b, 1
jne 0x1800fbcc9
mov rax, rsi
or rax, 1
bsr rax, rax
xor eax, 0x3f
add eax, eax
xor eax, 0x7e
mov rcx, qword [rsp + 0x358]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x58]
mov rdx, rsi
call fcn.18010de00
nop
add rsp, 0x2e8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret