Function at 0x14002c9f0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rbx, rdx
mov r15, rcx
mov rax, qword [0x14009b0a0]
xor rax, rsp
mov qword [rsp + 0x30], rax
test r9, r9
je 0x14002ca28
mov r14, r9
movzx r9d, word [rsp + 0xa0]
jmp 0x14002ca36
lea r14, [rsp + 0x27]
mov byte [r14], 0
mov r9w, 1
movsx edi, r8w
xor ecx, ecx
mov eax, ecx
cdq
idiv edi
movzx esi, byte [rbx + rdx]
shl esi, 0x18
xor esi, dword [r15 + rcx + 0x1000]
mov dword [r15 + rcx + 0x1000], esi
lea eax, [rcx + 1]
cdq
idiv edi
movzx ebp, byte [rbx + rdx]
shl ebp, 0x10
xor ebp, esi
mov dword [r15 + rcx + 0x1000], ebp
lea eax, [rcx + 2]
cdq
idiv edi
movzx esi, byte [rbx + rdx]
shl esi, 8
xor esi, ebp
mov dword [r15 + rcx + 0x1000], esi
lea eax, [rcx + 3]
cdq
idiv edi
movzx eax, byte [rbx + rdx]
xor eax, esi
mov dword [r15 + rcx + 0x1000], eax
add rcx, 4
cmp rcx, 0x48
jne 0x14002ca3c
lea rax, [rsp + 0x28]
mov qword [rax], 0
movsx ebp, r9w
xor r12d, r12d
mov r13d, 8
xor edi, edi
xor ebx, ebx
xor esi, esi
lea eax, [rdi + rsi]
cdq
idiv ebp
movzx eax, byte [r14 + rdx]
mov ecx, ebx
not ecx
and cl, 0x18
shl eax, cl
mov ecx, esi
and ecx, 0xfffffffc
xor dword [rsp + rcx + 0x28], eax
inc esi
add ebx, 8
cmp esi, r13d
jne 0x14002cac3
add edi, 8
mov ecx, dword [rsp + 0x28]
mov edx, dword [rsp + 0x2c]
lea r8, [rsp + 0x28]
mov r9, r15
call fcn.14002c654
mov eax, dword [rsp + 0x28]
lea rcx, [r12*4]
mov dword [r15 + r12*4 + 0x1000], eax
mov eax, dword [rsp + 0x2c]
or rcx, 4
mov dword [r15 + rcx + 0x1000], eax
add r12, 2
cmp r12, 0x12
jb 0x14002cabf
mov ebx, 0x48
xor r12d, r12d
mov r13d, 8
xor edi, edi
xor esi, esi
lea eax, [rbx + rsi]
cdq
idiv ebp
movsxd rax, edx
movzx eax, byte [r14 + rax]
mov ecx, edi
not ecx
and cl, 0x18
shl eax, cl
mov ecx, esi
and ecx, 0xfffffffc
xor dword [rsp + rcx + 0x28], eax
inc esi
add edi, 8
cmp esi, r13d
jne 0x14002cb42
add ebx, 8
mov ecx, dword [rsp + 0x28]
mov edx, dword [rsp + 0x2c]
lea r8, [rsp + 0x28]
mov r9, r15
call fcn.14002c654
mov eax, dword [rsp + 0x28]
lea rcx, [r12*4]
mov dword [r15 + r12*4], eax
mov eax, dword [rsp + 0x2c]
or rcx, 4
mov dword [r15 + rcx], eax
add r12, 2
cmp r12, 0x100
jb 0x14002cb3e
mov ebx, 0x448
xor r12d, r12d
mov r13d, 8
xor edi, edi
xor esi, esi
lea eax, [rbx + rsi]
cdq
idiv ebp
movsxd rax, edx
movzx eax, byte [r14 + rax]
mov ecx, edi
not ecx
and cl, 0x18
shl eax, cl
mov ecx, esi
and ecx, 0xfffffffc
xor dword [rsp + rcx + 0x28], eax
inc esi
add edi, 8
cmp esi, r13d
jne 0x14002cbbf
add ebx, 8
mov ecx, dword [rsp + 0x28]
mov edx, dword [rsp + 0x2c]
lea r8, [rsp + 0x28]
mov r9, r15
call fcn.14002c654
mov eax, dword [rsp + 0x28]
lea rcx, [r12*4]
mov dword [r15 + r12*4 + 0x400], eax
mov eax, dword [rsp + 0x2c]
or rcx, 4
mov dword [r15 + rcx + 0x400], eax
add r12, 2
cmp r12, 0x100
jb 0x14002cbbb
mov ebx, 0x848
xor r12d, r12d
mov r13d, 8
xor edi, edi
xor esi, esi
lea eax, [rbx + rsi]
cdq
idiv ebp
movsxd rax, edx
movzx eax, byte [r14 + rax]
mov ecx, edi
not ecx
and cl, 0x18
shl eax, cl
mov ecx, esi
and ecx, 0xfffffffc
xor dword [rsp + rcx + 0x28], eax
inc esi
add edi, 8
cmp esi, r13d
jne 0x14002cc44
add ebx, 8
mov ecx, dword [rsp + 0x28]
mov edx, dword [rsp + 0x2c]
lea r8, [rsp + 0x28]
mov r9, r15
call fcn.14002c654
mov eax, dword [rsp + 0x28]
lea rcx, [r12*4]
mov dword [r15 + r12*4 + 0x800], eax
mov eax, dword [rsp + 0x2c]
or rcx, 4
mov dword [r15 + rcx + 0x800], eax
add r12, 2
cmp r12, 0x100
jb 0x14002cc40
mov ebx, 0xc48
xor r12d, r12d
mov r13d, 8
xor edi, edi
xor esi, esi
lea eax, [rbx + rsi]
cdq
idiv ebp
movsxd rax, edx
movzx eax, byte [r14 + rax]
mov ecx, edi
not ecx
and cl, 0x18
shl eax, cl
mov ecx, esi
and ecx, 0xfffffffc
xor dword [rsp + rcx + 0x28], eax
inc esi
add edi, 8
cmp esi, r13d
jne 0x14002ccc9
add ebx, 8
mov ecx, dword [rsp + 0x28]
mov edx, dword [rsp + 0x2c]
lea r8, [rsp + 0x28]
mov r9, r15
call fcn.14002c654
mov eax, dword [rsp + 0x28]
lea rcx, [r12*4]
mov dword [r15 + r12*4 + 0xc00], eax
mov eax, dword [rsp + 0x2c]
or rcx, 4
mov dword [r15 + rcx + 0xc00], eax
add r12, 2
cmp r12, 0x100
jb 0x14002ccc5
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140050a10
nop
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret