Function at 0x14012cfd0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
push r12
mov eax, 0x58
call fcn.140189b00
sub rsp, rax
mov rax, qword [rcx + 0x178]
mov rbx, rcx
mov rdi, r9
mov qword [rsp + 0x28], rax
mov rax, qword [rcx + 0x180]
mov r12, r8
mov qword [rsp + 0x20], rax
mov rax, qword [rcx + 0x38]
mov rsi, rdx
lea rcx, [r9 + rax]
movabs rax, 0xfffffffe0
cmp rcx, rax
ja 0x14012d32f
cmp rcx, r9
jb 0x14012d32f
cmp dword [rbx + 0x174], 0
mov qword [rsp + 0x88], rbp
mov qword [rbx + 0x38], rcx
mov qword [rsp + 0x50], r13
je 0x14012d05c
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
call fcn.14012c530
mov dword [rbx + 0x174], 0
movzx eax, byte [rbx + 0xd]
mov r13d, dword [rbx + 0x170]
movzx ebp, byte [rbx + 0xc]
shl ebp, 8
mov dword [rsp + 0x80], r13d
or ebp, eax
movzx eax, byte [rbx + 0xe]
shl ebp, 8
or ebp, eax
movzx eax, byte [rbx + 0xf]
shl ebp, 8
or ebp, eax
test r13d, r13d
je 0x14012d0e1
nop
test rdi, rdi
je 0x14012d0cb
movzx edx, byte [rsi]
mov ecx, r13d
add r13d, 1
movzx eax, byte [rcx + rbx + 0x10]
add r12, 1
add rsi, 1
xor al, dl
sub rdi, 1
mov byte [r12 - 1], al
xor byte [rcx + rbx + 0x40], dl
and r13d, 0xf
mov dword [rsp + 0x80], r13d
jne 0x14012d090
jmp 0x14012d0d4
test r13d, r13d
jne 0x14012d30f
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
call fcn.14012c530
cmp rdi, 0xc00
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r15
jb 0x14012d1e0
movabs rax, 0xaaaaaaaaaaaaaaab
lea rcx, [rbx + 0x60]
lea r10, [rbx + 0x40]
mul rdi
mov r15, rdx
shr r15, 0xb
mov rax, r15
mov qword [rsp + 0x30], r15
imul rax, rax, 0xfffffffffffff400
add rdi, rax
mov qword [rsp + 0x98], rdi
mov rdi, qword [rsp + 0x20]
nop
nop
nop
nop
mov rdx, rcx
mov r9d, 0xc00
mov r8, rsi
mov rcx, r10
call fcn.14012c680
mov r15, qword [rsp + 0x28]
mov r14d, 0xc0
nop
lea rdx, [rbx + 0x10]
mov r8, rdi
mov rcx, rbx
call r15
add ebp, 1
add r12, 0x10
mov byte [rbx + 0xf], bpl
mov eax, ebp
add rsi, 0x10
shr eax, 0x18
mov byte [rbx + 0xc], al
mov eax, ebp
shr eax, 0x10
mov byte [rbx + 0xd], al
mov eax, ebp
shr eax, 8
mov byte [rbx + 0xe], al
mov rax, qword [rsi - 0x10]
xor rax, qword [rbx + 0x10]
mov qword [r12 - 0x10], rax
mov rax, qword [rsi - 8]
xor rax, qword [rbx + 0x18]
sub r14, 1
mov qword [r12 - 8], rax
jne 0x14012d160
mov r15, qword [rsp + 0x30]
lea rcx, [rbx + 0x60]
lea r10, [rbx + 0x40]
sub r15, 1
mov qword [rsp + 0x30], r15
jne 0x14012d140
mov rdi, qword [rsp + 0x98]
mov r13d, dword [rsp + 0x80]
mov r9, rdi
and r9, 0xfffffffffffffff0
je 0x14012d294
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
mov r8, rsi
call fcn.14012c680
cmp rdi, 0x10
jb 0x14012d294
mov r13, qword [rsp + 0x28]
mov r14, rdi
shr r14, 4
mov rax, r14
imul rax, rax, 0xfffffffffffffff0
add rdi, rax
mov qword [rsp + 0x98], rdi
mov rdi, qword [rsp + 0x20]
nop
nop
lea rdx, [rbx + 0x10]
mov r8, rdi
mov rcx, rbx
call r13
add ebp, 1
add r12, 0x10
mov byte [rbx + 0xf], bpl
mov eax, ebp
add rsi, 0x10
shr eax, 0x18
mov byte [rbx + 0xc], al
mov eax, ebp
shr eax, 0x10
mov byte [rbx + 0xd], al
mov eax, ebp
shr eax, 8
mov byte [rbx + 0xe], al
mov rax, qword [rsi - 0x10]
xor rax, qword [rbx + 0x10]
mov qword [r12 - 0x10], rax
mov rax, qword [rsi - 8]
xor rax, qword [rbx + 0x18]
sub r14, 1
mov qword [r12 - 8], rax
jne 0x14012d230
mov rdi, qword [rsp + 0x98]
mov r13d, dword [rsp + 0x80]
test rdi, rdi
mov r15, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
je 0x14012d30f
mov r8, qword [rsp + 0x20]
lea rdx, [rbx + 0x10]
mov rcx, rbx
call qword [rsp + Ordinal_41]
add ebp, 1
sub rsi, r12
mov eax, ebp
mov byte [rbx + 0xf], bpl
shr eax, 0x18
mov byte [rbx + 0xc], al
mov eax, ebp
shr eax, 0x10
mov byte [rbx + 0xd], al
mov eax, ebp
shr eax, 8
mov byte [rbx + 0xe], al
movsxd rax, r13d
add r13d, edi
lea r8, [rax + r12]
lea rdx, [rax + rbx + 0x40]
nop
nop
nop
movzx ecx, byte [rsi + r8]
movzx eax, byte [rdx - 0x30]
add r8, 1
xor byte [rdx], cl
xor al, cl
add rdx, 1
sub rdi, 1
mov byte [r8 - 1], al
jne 0x14012d2f0
mov rbp, qword [rsp + 0x88]
mov dword [rbx + 0x170], r13d
mov r13, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x58
pop r12
pop rdi
pop rsi
pop rbx
ret
or eax, 0xffffffff
add rsp, 0x58
pop r12
pop rdi
pop rsi
pop rbx
ret