Function at 0x14009d340
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14009d340
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x158
mov eax, dword [rsp + 0x1d0]
mov r13, qword [rsp + 0x1c8]
mov rdi, rcx
mov rsi, rdx
mov rbx, r8
mov rbp, r9
test eax, eax
je 0x14009d663
lea rax, [r9 - 1]
cmp rax, 0xfffff
ja 0x14009d663
test rdx, rdx
je 0x14009d663
lea r12, [r13 - 1]
cmp r12, 0x3ff
ja 0x14009d663
mov ecx, 1
lea rdx, [r9 + 4]
call sub.msvcrt.dll_calloc
mov rcx, rax
test rax, rax
je 0x14009d663
lea r10, [r13 + 0x1f]
xor edx, edx
mov r8, rbp
mov qword [rsp + 0x38], rcx
shr r10, 5
lea r14, [rsp + 0xd0]
add r12, r10
mov qword [rsp + 0x40], r10
mov rax, r12
div r10
mov rdx, rbx
lea rbx, [rsp + 0x70]
mov r12, rax
call sub.msvcrt.dll_memcpy
mov r15, qword [0x14019f0c0]
xor r9d, r9d
mov rcx, rbx
mov r8d, 0x40
mov rdx, qword [r15 + 0x28]
mov dword [rsp + 0x20], 0
call fcn.1400978c0
mov rdx, rdi
mov r8d, esi
mov rcx, rbx
call fcn.1400979d0
mov rcx, rbx
mov rdx, r14
lea rdi, [rsp + 0x110]
call fcn.140097860
mov rcx, qword [rsp + 0x38]
mov r10, qword [rsp + 0x40]
lea r11, [rsp + 0x90]
mov qword [rsp + 0x30], r13
lea rax, [rcx + rbp]
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x58], rax
lea eax, [rbp + 4]
lea rbp, [rsp + 0xb0]
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x1d0]
mov qword [rsp + 0x68], r10
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x48], r11
mov rsi, qword [rsp + 0x58]
mov eax, dword [rsp + 0x50]
xor r9d, r9d
mov rcx, rbx
mov rdx, qword [r15 + 0x28]
mov r8d, 0x40
bswap eax
mov dword [rsi], eax
mov esi, 1
mov dword [rsp + 0x20], 0
call fcn.1400978c0
mov r8d, dword [rsp + 0x54]
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.1400979d0
mov rdx, rdi
mov rcx, rbx
call fcn.140097860
mov r8, rbp
mov rdx, rdi
mov rcx, r14
call fcn.14009d000
cmp dword [rsp + 0x1d0], 1
movdqu xmm1, xmmword [rsp + 0xb0]
movdqu xmm2, xmmword [rsp + 0xc0]
movups xmmword [rsp + 0x90], xmm1
movups xmmword [rsp + 0xa0], xmm2
je 0x14009d5ad
mov qword [rsp + 0x40], r12
mov r12, rsi
mov rsi, qword [rsp + 0x60]
nop dword [rax + rax]
mov rdx, qword [r15 + 0x28]
xor r9d, r9d
mov r8d, 0x40
mov rcx, rbx
mov dword [rsp + 0x20], 0
add r12, 1
call fcn.1400978c0
mov r8d, 0x20
mov rdx, rbp
mov rcx, rbx
call fcn.1400979d0
mov rdx, rdi
mov rcx, rbx
call fcn.140097860
mov r8, rbp
mov rdx, rdi
mov rcx, r14
call fcn.14009d000
movdqu xmm0, xmmword [rsp + 0x90]
pxor xmm0, xmmword [rsp + 0xb0]
movups xmmword [rsp + 0x90], xmm0
movdqu xmm0, xmmword [rsp + 0xa0]
pxor xmm0, xmmword [rsp + 0xc0]
movups xmmword [rsp + 0xa0], xmm0
cmp r12, rsi
jne 0x14009d520
mov r12, qword [rsp + 0x40]
mov rax, qword [rsp + 0x30]
cmp r12, rax
cmova r12, rax
test r12, r12
je 0x14009d659
mov eax, dword [rsp + 0x50]
lea edx, [rax - 1]
xor eax, eax
cmp rdx, r13
jae 0x14009d659
mov r10, qword [rsp + 0x68]
mov r8, qword [rsp + 0x1c0]
mov r11, qword [rsp + 0x48]
jmp 0x14009d5f8
add rdx, r10
cmp rdx, r13
jae 0x14009d652
movzx ecx, byte [r11 + rax]
add rax, 1
mov byte [r8 + rdx], cl
cmp r12, rax
jne 0x14009d5f0
sub qword [rsp + 0x30], r12
add dword [rsp + 0x50], 1
cmp qword [rsp + 0x30], 0
jne 0x14009d484
mov r11, qword [rsp + 0x48]
mov edx, 0x20
mov rcx, r11
call fcn.14008f530
mov rcx, qword [rsp + 0x38]
call fcn.140083fb8
xor eax, eax
add rsp, 0x158
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
sub qword [rsp + 0x30], rax
jmp 0x14009d60f
add dword [rsp + 0x50], 1
jmp 0x14009d484
mov eax, 0xffffffff
jmp 0x14009d63e