Function at 0x1800d9020
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 0x1800d96f9
mov rsi, rdx
movabs rax, 0x3fffffffffffffff
add rax, rdx
mov rcx, rax
or rcx, rdx
shr rcx, 0x20
je 0x1800d9065
xor edx, edx
div rsi
jmp 0x1800d9069
xor edx, edx
div esi
mov qword [rsp + 0x60], rax
cmp rsi, 0x1001
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x38], r8
jae 0x1800d909c
mov rax, rsi
shr rax, 1
mov rcx, rsi
sub rcx, rax
cmp rcx, 0x40
mov eax, 0x40
cmovb rax, rcx
jmp 0x1800d90ae
mov rcx, rsi
call fcn.18010ff60
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 0x1800d9160
cmp rsi, qword [rsp + 0x50]
jae 0x1800d9180
cmp byte [rsp + 0x350], 0
je 0x1800d9191
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.1800e3d10
mov r8, qword [rsp + 0x38]
mov r9, qword [rsp + 0x40]
mov eax, esi
lea rsi, [rax*2 + 1]
jmp 0x1800d939b
xor esi, esi
mov eax, 1
mov qword [rsp + 0x68], rax
cmp r14, 2
jae 0x1800d93f0
jmp 0x1800d9686
mov r11, r8
cmp rsi, 2
jae 0x1800d91a5
mov r10, rsi
jmp 0x1800d9390
mov rax, qword [rsp + 0x50]
cmp rax, rsi
cmovb rsi, rax
add rsi, rsi
jmp 0x1800d939b
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 0x1800d91f6
cmp rsi, 2
jne 0x1800d924a
mov r10d, 2
mov ecx, 1
mov r8, rax
cmp rcx, 1
jne 0x1800d9300
xor edx, edx
jmp 0x1800d9356
mov r10d, 2
cmp rsi, 2
je 0x1800d9390
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 0x1800d92a6
inc rdx
cmp rbx, rdx
jne 0x1800d9210
jmp 0x1800d9289
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 0x1800d92a6
inc rdx
cmp rbx, rdx
jne 0x1800d9250
mov rsi, rbx
mov rdx, rbx
cmp rdx, qword [rsp + 0x50]
mov r9, qword [rsp + 0x40]
mov r8, qword [rsp + 0x38]
jb 0x1800d90fe
jmp 0x1800d92be
mov rsi, rbx
cmp rdx, qword [rsp + 0x50]
mov r9, qword [rsp + 0x40]
mov r8, qword [rsp + 0x38]
jb 0x1800d90fe
mov r11, r8
test cl, cl
je 0x1800d9385
mov r10d, 1
cmp rdx, 2
jb 0x1800d9390
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 0x1800d91ef
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 0x1800d9320
test cl, 1
je 0x1800d9379
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 0x1800d9390
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 0x1800d93d9
bsr rsi, rax
xor rsi, 0x3f
cmp r14, 2
jae 0x1800d93f0
jmp 0x1800d9686
mov esi, 0x40
cmp r14, 2
jb 0x1800d9686
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 0x1800d943d
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 0x1800d9680
cmp byte [rsp + r14 + 0x95], sil
jb 0x1800d9686
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 0x1800d9490
mov eax, edi
or eax, r13d
and eax, 1
jne 0x1800d9490
add rbp, rbp
mov r13, rbp
cmp r14, 1
ja 0x1800d943d
jmp 0x1800d9680
mov rax, r12
sub rax, rbp
mov rcx, qword [rsp + 0x58]
lea r12, [rcx + rax*8]
test dil, 1
jne 0x1800d9500
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.1800e3d10
mov r8, qword [rsp + 0x38]
mov r9, qword [rsp + 0x40]
test r13b, 1
je 0x1800d9506
cmp r13, 2
jae 0x1800d9553
jmp 0x1800d9423
test r13b, 1
jne 0x1800d94ed
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.1800e3d10
mov r8, qword [rsp + 0x38]
mov r9, qword [rsp + 0x40]
cmp r13, 2
jb 0x1800d9423
cmp rdi, 2
jb 0x1800d9423
cmp r15, rbx
mov rdi, rbx
cmovb rdi, r15
cmp rdi, r9
ja 0x1800d9423
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 0x1800d960d
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 0x1800d9408
add rax, 0xfffffffffffffff8
cmp r8, r10
jne 0x1800d95b0
jmp 0x1800d9408
mov rdx, r10
test rdi, rdi
je 0x1800d940e
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 0x1800d940e
movzx eax, al
lea r13, [r13 + rax*8]
cmp r13, qword [rsp + 0x48]
jne 0x1800d9620
jmp 0x1800d940e
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 0x1800d96b9
inc r14
mov r13, qword [rsp + 0x68]
mov rax, r13
shr rax, 1
add r12, rax
jmp 0x1800d90e0
test r13b, 1
jne 0x1800d96f9
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.1800e3d10
nop
add rsp, 0x2e8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret