Function at 0x14003e02a
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 [0x1400d80e0]
xor rax, rsp
mov qword [rsp + 0x30], rax
test r9, r9
je 0x14003e062
mov r12, r9
movzx r9d, word [rsp + 0xa0]
jmp 0x14003e071
lea r12, [rsp + 0x27]
mov byte [r12], 0
mov r9w, 1
movsx edi, r8w
xor ecx, ecx
mov eax, ecx
cwd
idiv di
movsx rax, dx
mov eax, eax
movzx esi, byte [rbx + rax]
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 0x14003e077
lea r14, [rsp + 0x28]
mov qword [r14], 0
movsx ebp, r9w
xor r13d, r13d
xor eax, eax
mov ebx, eax
xor esi, esi
xor edi, edi
lea eax, [rbx + rdi]
cdq
idiv ebp
movsxd rax, edx
movzx eax, byte [r12 + rax]
mov ecx, esi
not cl
and cl, 0x18
shl eax, cl
mov ecx, edi
and ecx, 0xfffffffc
xor dword [rsp + rcx + 0x28], eax
inc edi
add esi, 8
cmp edi, 8
jne 0x14003e102
mov ecx, dword [rsp + 0x28]
mov edx, dword [rsp + 0x2c]
mov r8, r14
mov r9, r15
call fcn.14003dc1c
mov eax, dword [rsp + 0x28]
lea rcx, [r13*4]
mov dword [r15 + r13*4 + 0x1000], eax
mov eax, dword [rsp + 0x2c]
or rcx, 4
mov dword [r15 + rcx + 0x1000], eax
lea rcx, [r13 + 2]
lea eax, [rbx + rdi]
cmp r13, 0x10
mov r13, rcx
jb 0x14003e0fc
add ebx, edi
xor r13d, r13d
lea r14, [rsp + 0x28]
mov edi, ebx
xor ebx, ebx
xor esi, esi
lea eax, [rdi + rsi]
cdq
idiv ebp
movsxd rax, edx
movzx eax, byte [r12 + rax]
mov ecx, ebx
not cl
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, 8
jne 0x14003e183
mov ecx, dword [rsp + 0x28]
mov edx, dword [rsp + 0x2c]
mov r8, r14
mov r9, r15
call fcn.14003dc1c
mov eax, dword [rsp + 0x28]
lea rcx, [r13*4]
mov dword [r15 + r13*4], eax
mov eax, dword [rsp + 0x2c]
or rcx, 4
mov dword [r15 + rcx], eax
lea rax, [r13 + 2]
lea ebx, [rdi + rsi]
cmp r13, 0xfe
mov r13, rax
jb 0x14003e17d
add edi, esi
xor r13d, r13d
lea r14, [rsp + 0x28]
mov esi, edi
xor edi, edi
xor ebx, ebx
lea eax, [rsi + rbx]
cdq
idiv ebp
movsxd rax, edx
movzx eax, byte [r12 + rax]
mov ecx, edi
not cl
and cl, 0x18
shl eax, cl
mov ecx, ebx
and ecx, 0xfffffffc
xor dword [rsp + rcx + 0x28], eax
inc ebx
add edi, 8
cmp ebx, 8
jne 0x14003e1ff
mov ecx, dword [rsp + 0x28]
mov edx, dword [rsp + 0x2c]
mov r8, r14
mov r9, r15
call fcn.14003dc1c
mov eax, dword [rsp + 0x28]
lea rcx, [r13*4]
mov dword [r15 + r13*4 + 0x400], eax
mov eax, dword [rsp + 0x2c]
or rcx, 4
mov dword [r15 + rcx + 0x400], eax
lea rax, [r13 + 2]
lea edi, [rsi + rbx]
cmp r13, 0xfe
mov r13, rax
jb 0x14003e1f9
add esi, ebx
xor r13d, r13d
lea r14, [rsp + 0x28]
mov ebx, esi
xor esi, esi
xor edi, edi
lea eax, [rbx + rdi]
cdq
idiv ebp
movsxd rax, edx
movzx eax, byte [r12 + rax]
mov ecx, esi
not cl
and cl, 0x18
shl eax, cl
mov ecx, edi
and ecx, 0xfffffffc
xor dword [rsp + rcx + 0x28], eax
inc edi
add esi, 8
cmp edi, 8
jne 0x14003e283
mov ecx, dword [rsp + 0x28]
mov edx, dword [rsp + 0x2c]
mov r8, r14
mov r9, r15
call fcn.14003dc1c
mov eax, dword [rsp + 0x28]
lea rcx, [r13*4]
mov dword [r15 + r13*4 + 0x800], eax
mov eax, dword [rsp + 0x2c]
or rcx, 4
mov dword [r15 + rcx + 0x800], eax
lea rax, [r13 + 2]
lea esi, [rbx + rdi]
cmp r13, 0xfe
mov r13, rax
jb 0x14003e27d
add ebx, edi
xor r13d, r13d
lea r14, [rsp + 0x28]
xor esi, esi
xor edi, edi
lea eax, [rbx + rdi]
cdq
idiv ebp
movsxd rax, edx
movzx eax, byte [r12 + rax]
mov ecx, esi
not cl
and cl, 0x18
shl eax, cl
mov ecx, edi
and ecx, 0xfffffffc
xor dword [rsp + rcx + 0x28], eax
inc edi
add esi, 8
cmp edi, 8
jne 0x14003e305
mov ecx, dword [rsp + 0x28]
mov edx, dword [rsp + 0x2c]
mov r8, r14
mov r9, r15
call fcn.14003dc1c
mov eax, dword [rsp + 0x28]
lea rcx, [r13*4]
mov dword [r15 + r13*4 + 0xc00], eax
mov eax, dword [rsp + 0x2c]
or rcx, 4
mov dword [r15 + rcx + 0xc00], eax
lea rax, [r13 + 2]
add ebx, edi
cmp r13, 0xfe
mov r13, rax
jb 0x14003e301
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400841b0
nop
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret