Function at 0x140001370
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, rcx
call fcn.140001070
mov dword [rsi + 0x200], 0xe
mov rax, rsi
movzx ecx, byte [rbx + 2]
movzx edi, byte [rbx]
movzx r8d, byte [rbx + 1]
shl edi, 8
or edi, r8d
mov dword [0x140006078], 0
shl edi, 8
or edi, ecx
movzx ecx, byte [rbx + 3]
shl edi, 8
or edi, ecx
mov dword [rsi], edi
movzx ecx, byte [rbx + 5]
movzx edx, byte [rbx + 4]
shl edx, 8
or edx, ecx
movzx ecx, byte [rbx + 6]
shl edx, 8
or edx, ecx
movzx ecx, byte [rbx + 7]
shl edx, 8
or edx, ecx
mov dword [rsi + 4], edx
movzx ecx, byte [rbx + 9]
movzx edx, byte [rbx + 8]
shl edx, 8
or edx, ecx
movzx ecx, byte [rbx + 0xa]
shl edx, 8
or edx, ecx
movzx ecx, byte [rbx + 0xb]
shl edx, 8
or edx, ecx
mov dword [rsi + 8], edx
movzx ecx, byte [rbx + 0xd]
movzx edx, byte [rbx + 0xc]
shl edx, 8
or edx, ecx
movzx ecx, byte [rbx + 0xe]
shl edx, 8
or edx, ecx
movzx ecx, byte [rbx + 0xf]
shl edx, 8
or edx, ecx
mov dword [rsi + 0xc], edx
movzx ecx, byte [rbx + 0x11]
movzx edx, byte [rbx + 0x10]
shl edx, 8
or edx, ecx
movzx ecx, byte [rbx + 0x12]
shl edx, 8
or edx, ecx
movzx ecx, byte [rbx + 0x13]
shl edx, 8
or edx, ecx
mov dword [rsi + 0x10], edx
movzx ecx, byte [rbx + 0x15]
movzx edx, byte [rbx + 0x14]
shl edx, 8
or edx, ecx
movzx ecx, byte [rbx + 0x16]
shl edx, 8
or edx, ecx
movzx ecx, byte [rbx + 0x17]
shl edx, 8
or edx, ecx
mov dword [rsi + 0x14], edx
movzx ecx, byte [rbx + 0x19]
movzx edx, byte [rbx + 0x18]
shl edx, 8
or edx, ecx
movzx ecx, byte [rbx + 0x1a]
shl edx, 8
or edx, ecx
movzx ecx, byte [rbx + 0x1b]
shl edx, 8
or edx, ecx
lea r15, [0x140008a7c]
mov dword [rsi + 0x18], edx
lea r14, [0x140000000]
movzx ecx, byte [rbx + 0x1d]
movzx edx, byte [rbx + 0x1c]
shl edx, 8
or edx, ecx
movzx ecx, byte [rbx + 0x1e]
shl edx, 8
or edx, ecx
movzx ecx, byte [rbx + 0x1f]
shl edx, 8
lea rbx, [0x140008a60]
or edx, ecx
mov dword [rsi + 0x1c], edx
nop dword [rax]
nop word [rax + rax]
mov r10d, dword [rax + 0x1c]
lea r11, [rax]
mov eax, r10d
shr eax, 0x10
movzx ecx, al
mov eax, r10d
shr eax, 8
mov edx, dword [r14 + rcx*4 + 0x9690]
shl edx, 8
movzx ecx, al
movzx eax, r10b
xor edx, dword [r14 + rcx*4 + 0x9690]
shl edx, 8
xor edx, dword [r14 + rax*4 + 0x9690]
mov eax, r10d
shl edx, 8
shr rax, 0x18
xor edx, dword [r14 + rax*4 + 0x9690]
lea rax, [r11 + 0x20]
xor edx, dword [rbx]
add rbx, 4
xor edx, edi
mov ecx, edx
mov dword [rax], edx
xor ecx, dword [r11 + 4]
mov edi, edx
mov dword [r11 + 0x24], ecx
xor ecx, dword [r11 + 8]
mov dword [r11 + 0x28], ecx
xor ecx, dword [r11 + 0xc]
mov r8d, ecx
shr rcx, 0x18
mov dword [r11 + 0x2c], r8d
mov r9d, dword [r14 + rcx*4 + 0x9690]
mov ecx, r8d
shl r9d, 8
shr ecx, 0x10
movzx edx, cl
mov ecx, r8d
shr ecx, 8
xor r9d, dword [r14 + rdx*4 + 0x9690]
shl r9d, 8
movzx edx, cl
movzx ecx, r8b
xor r9d, dword [r14 + rdx*4 + 0x9690]
shl r9d, 8
xor r9d, dword [r14 + rcx*4 + 0x9690]
xor r9d, dword [r11 + 0x10]
mov dword [r11 + 0x30], r9d
xor r9d, dword [r11 + 0x14]
mov dword [r11 + 0x34], r9d
xor r9d, dword [r11 + 0x18]
mov dword [r11 + 0x38], r9d
xor r9d, r10d
mov dword [r11 + 0x3c], r9d
cmp rbx, r15
jl 0x1400014e0
xor r8d, r8d
mov r9d, 0x100
mov ecx, dword [r8 + r14 + 0x9690]
lea r8, [r8 + 4]
lea rdx, [rcx*4]
mov ecx, dword [rdx + r14 + 0x7a60]
mov dword [r8 + r14 + 0x8a8c], ecx
mov ecx, dword [rdx + r14 + 0x7e60]
mov dword [r8 + r14 + 0x6a5c], ecx
mov ecx, dword [rdx + r14 + 0x6660]
mov dword [r8 + r14 + 0x725c], ecx
mov ecx, dword [rdx + r14 + 0x9290]
mov dword [r8 + r14 + 0x9a8c], ecx
sub r9, 1
jne 0x1400015d1
lea r11, [rsi + 0x100]
mov dword [0x140006074], r9d
mov dword [r11], edi
mov ebx, 1
mov ecx, dword [rax + 4]
mov dword [r11 + 4], ecx
mov ecx, dword [rax + 8]
mov dword [r11 + 8], ecx
mov ecx, dword [rax + 0xc]
add rax, 0x10
mov dword [r11 + 0xc], ecx
add r11, 0x10
cmp dword [rsi + 0x200], ebx
jle 0x14000179a
nop word [rax + rax]
mov r10d, dword [rax - 0x20]
inc ebx
mov ecx, r10d
mov r8d, r10d
shr ecx, 0x10
movzx edx, cl
mov ecx, r10d
shr ecx, 8
shr r8, 0x18
mov r9d, dword [r14 + r8*4 + 0x8a90]
xor r9d, dword [r14 + rdx*4 + 0x6a60]
movzx edx, cl
movzx ecx, r10b
xor r9d, dword [r14 + rdx*4 + 0x7260]
xor r9d, dword [r14 + rcx*4 + 0x9a90]
mov dword [r11], r9d
mov r10d, dword [rax - 0x1c]
mov ecx, r10d
shr ecx, 0x10
movzx r8d, cl
mov ecx, r10d
shr ecx, 8
movzx edx, cl
mov ecx, r10d
shr rcx, 0x18
mov r9d, dword [r14 + r8*4 + 0x6a60]
xor r9d, dword [r14 + rdx*4 + 0x7260]
xor r9d, dword [r14 + rcx*4 + 0x8a90]
movzx ecx, r10b
xor r9d, dword [r14 + rcx*4 + 0x9a90]
mov dword [r11 + 4], r9d
mov r10d, dword [rax - 0x18]
mov ecx, r10d
mov r8d, r10d
shr ecx, 0x10
movzx edx, cl
mov ecx, r10d
shr ecx, 8
shr r8, 0x18
mov r9d, dword [r14 + r8*4 + 0x8a90]
xor r9d, dword [r14 + rdx*4 + 0x6a60]
movzx edx, cl
movzx ecx, r10b
xor r9d, dword [r14 + rdx*4 + 0x7260]
xor r9d, dword [r14 + rcx*4 + 0x9a90]
mov dword [r11 + 8], r9d
mov r10d, dword [rax - 0x14]
add rax, 0xfffffffffffffff0
mov ecx, r10d
mov r8d, r10d
shr ecx, 0x10
movzx edx, cl
mov ecx, r10d
shr ecx, 8
shr r8, 0x18
mov r9d, dword [r14 + r8*4 + 0x8a90]
xor r9d, dword [r14 + rdx*4 + 0x6a60]
movzx edx, cl
movzx ecx, r10b
xor r9d, dword [r14 + rdx*4 + 0x7260]
xor r9d, dword [r14 + rcx*4 + 0x9a90]
mov dword [r11 + 0xc], r9d
add r11, 0x10
cmp ebx, dword [rsi + 0x200]
jl 0x140001670
mov ecx, dword [rax - 0x20]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov dword [r11], ecx
mov ecx, dword [rax - 0x1c]
mov dword [r11 + 4], ecx
mov ecx, dword [rax - 0x18]
mov dword [r11 + 8], ecx
mov ecx, dword [rax - 0x14]
xor eax, eax
mov dword [r11 + 0xc], ecx
add rsp, 0x20
pop r15
ret