Function at 0x14012d750
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov edi, 1
mov rbx, rcx
mov dword [rcx], edi
mov dword [rcx + 4], edi
cmp r8d, edi
jbe 0x14012d77a
lea eax, [rdi - 3]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov dword [rcx + 8], r8d
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14012d7f9
movzx eax, byte [rcx]
mov byte [rbx + 0xc], al
movzx eax, byte [rcx + 1]
mov byte [rbx + 0xd], al
movzx eax, byte [rcx + 2]
mov byte [rbx + 0xe], al
movzx eax, byte [rcx + 3]
mov byte [rbx + 0xf], al
movzx eax, byte [rcx + 4]
mov byte [rbx + 0x10], al
movzx eax, byte [rcx + 5]
mov byte [rbx + 0x11], al
movzx eax, byte [rcx + 6]
mov byte [rbx + 0x12], al
movzx eax, byte [rcx + 7]
mov byte [rbx + 0x13], al
movzx eax, byte [rcx + 8]
mov byte [rbx + 0x14], al
movzx eax, byte [rcx + 9]
mov byte [rbx + 0x15], al
movzx eax, byte [rcx + 0xa]
mov byte [rbx + 0x16], al
movzx eax, byte [rcx + 0xb]
mov byte [rbx + 0x17], al
movzx eax, byte [rcx + 0xc]
mov byte [rbx + 0x18], al
movzx eax, byte [rcx + 0xd]
mov byte [rbx + 0x19], al
movzx eax, byte [rcx + 0xe]
mov byte [rbx + 0x1a], al
movzx eax, byte [rcx + 0xf]
mov byte [rbx + 0x1b], al
jmp 0x14012d809
mov qword [rbx + 0xc], 0
mov qword [rbx + 0x14], 0
mov dword [rbx + 0x1c], 0xa
test r9, r9
jne 0x14012d824
lea eax, [r9 - 4]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
xor r8d, r8d
lea r10d, [r8 + 0x10]
nop dword [rax + rax]
mov rax, r8
lea rcx, [rsp + 0x20]
and eax, 3
lea r9, [r9 + 1]
add rcx, rax
mov rdx, r8
movzx eax, byte [r9 - 1]
inc r8
shr rdx, 2
mov byte [rcx + rdx*4], al
sub r10, rdi
jne 0x14012d830
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14012e250
cmp dword [rbx + 8], edi
jne 0x14012d989
cmp dword [rbx + 0x1c], edi
jbe 0x14012d989
lea r10, [0x140000000]
nop
mov r9d, edi
inc edi
lea r8, [r9 + 2]
add r9, r9
shl r8, 4
add r8, rbx
movzx ecx, byte [r8 + 3]
movzx eax, byte [r8 + 2]
mov edx, dword [r10 + rcx*4 + 0x213180]
xor edx, dword [r10 + rax*4 + 0x2168a0]
movzx eax, byte [r8 + 1]
xor edx, dword [r10 + rax*4 + 0x214d10]
movzx eax, byte [r8]
xor edx, dword [r10 + rax*4 + 0x212d80]
mov dword [r8], edx
movzx ecx, byte [rbx + r9*8 + 0x27]
movzx eax, byte [rbx + r9*8 + 0x26]
mov edx, dword [r10 + rcx*4 + 0x213180]
xor edx, dword [r10 + rax*4 + 0x2168a0]
movzx eax, byte [rbx + r9*8 + 0x25]
xor edx, dword [r10 + rax*4 + 0x214d10]
movzx eax, byte [rbx + r9*8 + 0x24]
xor edx, dword [r10 + rax*4 + 0x212d80]
mov dword [rbx + r9*8 + 0x24], edx
movzx ecx, byte [rbx + r9*8 + 0x2b]
movzx eax, byte [rbx + r9*8 + 0x2a]
mov edx, dword [r10 + rcx*4 + 0x213180]
xor edx, dword [r10 + rax*4 + 0x2168a0]
movzx eax, byte [rbx + r9*8 + 0x29]
xor edx, dword [r10 + rax*4 + 0x214d10]
movzx eax, byte [rbx + r9*8 + 0x28]
xor edx, dword [r10 + rax*4 + 0x212d80]
mov dword [rbx + r9*8 + 0x28], edx
movzx eax, byte [rbx + r9*8 + 0x2e]
movzx ecx, byte [rbx + r9*8 + 0x2f]
mov edx, dword [r10 + rcx*4 + 0x213180]
xor edx, dword [r10 + rax*4 + 0x2168a0]
movzx eax, byte [rbx + r9*8 + 0x2d]
xor edx, dword [r10 + rax*4 + 0x214d10]
movzx eax, byte [rbx + r9*8 + 0x2c]
xor edx, dword [r10 + rax*4 + 0x212d80]
mov dword [rbx + r9*8 + 0x2c], edx
cmp edi, dword [rbx + 0x1c]
jb 0x14012d880
mov dword [rbx], 0
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret