Function at 0x140001820
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov dword [rcx + 0x3d0], reloc.OLEAUT32.dll_SafeArrayGetDim
mov dword [rcx + 0x3cc], reloc.OLEAUT32.dll_SafeArrayGetDim
mov rax, qword [str.BoPn31j23n4klasS]
mov qword [rcx + 0x3d8], rax
mov rax, qword [0x1401ce7e8]
mov rdi, rdx
mov qword [rcx + 0x3e0], rax
movsxd r8, dword [rcx + 0x3d0]
mov rbx, rcx
lea rdx, str.BoPn31j23n4klasS
add rcx, 0x3f8
call fcn.140157510
mov r11d, dword [rbx + 0x3cc]
cmp r11d, 0x10
je 0x1400018ad
mov eax, SafeArrayGetDim
cmp r11d, 0x18
jne 0x1400018cd
cmp dword [rbx + 0x3d0], 0x20
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
cmovne eax, ecx
jmp 0x1400018cd
mov edx, dword [rbx + 0x3d0]
cmp edx, 0x10
jne 0x1400018bd
lea eax, [rdx - 6]
jmp 0x1400018cd
mov eax, SafeArrayGetDim
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
cmp edx, 0x18
cmove eax, ecx
mov dword [rbx + 0x3d4], eax
mov eax, dword [rbx + 0x3d0]
xor esi, esi
cdq
and edx, 3
add eax, edx
sar eax, 2
movsxd r13, eax
mov r12, r13
cmp dword [rbx + 0x3d4], esi
jl 0x14000191a
lea rbp, [rbx + 0xc]
test r13d, r13d
jle 0x14000190c
mov r8, r13
xor edx, edx
mov rcx, rbp
shl r8, 2
call fcn.140159440
inc esi
add rbp, 0x20
cmp esi, dword [rbx + 0x3d4]
jle 0x1400018f6
xor esi, esi
cmp dword [rbx + 0x3d4], esi
jl 0x140001954
lea rbp, [rbx + 0x1ec]
nop dword [rax + rax]
test r13d, r13d
jle 0x140001946
mov r8, r13
xor edx, edx
mov rcx, rbp
shl r8, 2
call fcn.140159440
inc esi
add rbp, 0x20
cmp esi, dword [rbx + 0x3d4]
jle 0x140001930
mov eax, dword [rbx + 0x3cc]
mov ebp, dword [rbx + 0x3d4]
cdq
inc ebp
and edx, 3
add eax, edx
lea rdx, [rbx + 0x418]
imul ebp, r13d
sar eax, 2
movsxd r15, eax
test eax, eax
jle 0x1400019b1
mov r8d, r15d
movzx ecx, byte [rdi]
add rdx, 4
add rdi, 4
shl ecx, 0x18
mov dword [rdx - 4], ecx
movzx eax, byte [rdi - 3]
shl eax, 0x10
or dword [rdx - 4], eax
movzx eax, byte [rdi - 2]
shl eax, 8
or dword [rdx - 4], eax
movzx eax, byte [rdi - 1]
or dword [rdx - 4], eax
dec r8
jne 0x140001980
xor r10d, r10d
xor edi, edi
test r15d, r15d
jle 0x140001a0c
lea r11, [rbx + 0x418]
cmp r10d, ebp
jge 0x140001bf7
mov eax, r10d
inc rdi
add r11, 4
cdq
inc r10d
idiv r13d
movsxd r8, eax
mov eax, dword [r11 - 4]
movsxd r9, edx
lea rcx, [r9 + r8*8]
mov dword [rbx + rcx*4 + 0xc], eax
movsxd rax, dword [rbx + 0x3d4]
sub rax, r8
lea rcx, [r9 + rax*8]
mov eax, dword [r11 - 4]
mov dword [rbx + rcx*4 + 0x1ec], eax
cmp rdi, r15
jl 0x1400019c2
cmp r10d, ebp
jge 0x140001bf7
lea r11, [0x1401d2200]
lea r12, [0x140000000]
nop word [rax + rax]
mov r8d, dword [rbx + r15*4 + 0x414]
inc r11
movsxd rdx, r8d
mov qword [rsp + 0x70], r11
mov rax, rdx
sar rax, 0x10
movzx ecx, al
movsx eax, byte [r11 - 1]
movsx r9d, byte [rcx + r12 + 0x1cf000]
xor r9d, eax
mov rax, rdx
sar rax, 8
shl r9d, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x1cf000]
xor r9d, eax
movzx eax, dl
movzx eax, byte [rax + r12 + 0x1cf000]
shl r9d, 8
xor r9d, eax
mov eax, r8d
shr rax, 0x18
shl r9d, 8
movzx eax, byte [rax + r12 + 0x1cf000]
xor r9d, eax
xor dword [rbx + 0x418], r9d
cmp r15d, 8
je 0x140001ae4
cmp r15, 1
jle 0x140001b8f
lea rcx, [rbx + 0x41c]
lea rdx, [r15 - 1]
nop word [rax + rax]
mov eax, dword [rcx - 4]
add rcx, 4
xor dword [rcx - 4], eax
dec rdx
jne 0x140001ad0
jmp 0x140001b8f
lea rcx, [rbx + 0x41c]
mov edx, 3
mov eax, dword [rcx - 4]
add rcx, 4
xor dword [rcx - 4], eax
dec rdx
jne 0x140001af0
mov eax, dword [rbx + 0x424]
mov ecx, eax
movsxd rdx, eax
shr rcx, 0x18
mov rax, rdx
movsx r8d, byte [rcx + r12 + 0x1cf000]
sar rax, 0x10
movzx ecx, al
shl r8d, 8
movzx eax, byte [rcx + r12 + 0x1cf000]
xor r8d, eax
mov rax, rdx
sar rax, 8
shl r8d, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x1cf000]
xor r8d, eax
movzx eax, dl
movzx eax, byte [rax + r12 + 0x1cf000]
shl r8d, 8
xor r8d, eax
xor dword [rbx + 0x428], r8d
cmp r15, 5
jle 0x140001b8f
lea rcx, [rbx + 0x42c]
lea rdx, [r15 - 5]
nop word [rax + rax]
mov eax, dword [rcx - 4]
add rcx, 4
xor dword [rcx - 4], eax
dec rdx
jne 0x140001b80
xor edi, edi
test r15d, r15d
jle 0x140001beb
lea r11, [rbx + 0x418]
nop dword [rax]
cmp r10d, ebp
jge 0x140001bf4
mov eax, r10d
inc rdi
add r11, 4
cdq
inc r10d
idiv r13d
movsxd r8, eax
mov eax, dword [r11 - 4]
movsxd r9, edx
lea rcx, [r9 + r8*8]
mov dword [rbx + rcx*4 + 0xc], eax
movsxd rax, dword [rbx + 0x3d4]
sub rax, r8
lea rcx, [r9 + rax*8]
mov eax, dword [r11 - 4]
mov dword [rbx + rcx*4 + 0x1ec], eax
cmp rdi, r15
jl 0x140001ba0
mov r11, qword [rsp + 0x70]
cmp r10d, ebp
jl 0x140001a30
mov r12, r13
mov edi, 1
cmp dword [rbx + 0x3d4], edi
jle 0x140001c95
lea rsi, [rbx + 0x20c]
nop
test r12, r12
jle 0x140001c81
mov r10, rsi
mov r11, r12
lea rbp, [0x140000000]
nop word [rax + rax]
mov eax, dword [r10]
add r10, 4
mov edx, eax
movsxd r9, eax
shr rdx, 0x18
mov rax, r9
mov r8d, dword [rbp + rdx*4 + 0x1d1200]
sar rax, 0x10
movzx ecx, al
mov rax, r9
xor r8d, dword [rbp + rcx*4 + 0x1d1600]
sar rax, 8
movzx ecx, al
movzx eax, r9b
xor r8d, dword [rbp + rcx*4 + 0x1d1a00]
xor r8d, dword [rbp + rax*4 + 0x1d1e00]
dec r11
mov dword [r10 - 4], r8d
jne 0x140001c30
inc edi
add rsi, 0x20
cmp edi, dword [rbx + 0x3d4]
jl 0x140001c10
mov byte [rbx + 8], 1
jmp 0x140001c99
mov byte [rbx + 8], dil
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret