Function at 0x14012e650
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rax, qword [rcx + 0x168]
mov rsi, qword [rcx + 0x178]
mov rdi, qword [rcx + 0x180]
mov rbx, qword [rcx + 0x160]
mov r15, rcx
mov r14, r8
xor ecx, ecx
mov qword [rsp + 0x98], rdx
movabs r8, 0xfffffffe0
mov rdx, r9
add rdx, qword [r15 + 0x38]
mov qword [rsp + 0xa8], r9
mov qword [rsp + 0x28], rax
setb cl
cmp rdx, r8
ja 0x14012eb4b
test rcx, rcx
jne 0x14012eb4b
mov eax, dword [r15 + 0x174]
mov qword [r15 + 0x38], rdx
test eax, eax
jne 0x14012eb18
mov edx, dword [r15 + 0x170]
mov eax, dword [r15 + 0xc]
bswap eax
mov dword [rsp + 0x20], eax
test edx, edx
je 0x14012e757
cmp qword [rsp + 0xa8], 0
je 0x14012eafe
mov rcx, qword [rsp + 0x98]
mov r8, qword [rsp + 0xa8]
jmp 0x14012e711
test r8, r8
je 0x14012eb32
mov eax, edx
movzx r9d, byte [rcx]
add r14, 1
add edx, 1
movzx r10d, byte [r15 + rax + 0x10]
add rcx, 1
sub r8, 1
xor r10d, r9d
mov byte [r14 - 1], r10b
xor byte [r15 + rax + 0x40], r9b
and edx, 0xf
jne 0x14012e708
mov qword [rsp + 0x98], rcx
mov qword [rsp + 0xa8], r8
lea rdx, [r15 + 0x60]
lea rcx, [r15 + 0x40]
call rbx
cmp qword [rsp + 0xa8], 0xbff
jbe 0x14012e839
lea rax, [r15 + 0x60]
lea rbp, [r15 + 0x10]
mov qword [rsp + 0x30], rax
lea rax, [r15 + 0x40]
lea rbx, [r14 + 0xc00]
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov r9d, 0xc00
lea r13, [rbx - 0xc00]
mov r8, qword [rsp + 0x98]
mov rax, qword [rsp + 0x28]
call rax
mov r12d, dword [rsp + 0x20]
mov r14, qword [rsp + 0x98]
nop dword [rax]
add r12d, 1
mov r8, rdi
mov rdx, rbp
mov rcx, r15
call rsi
mov eax, r12d
add r13, 0x10
add r14, 0x10
bswap eax
mov dword [r15 + 0xc], eax
mov rax, qword [r14 - 0x10]
xor rax, qword [r15 + 0x10]
mov qword [r13 - 0x10], rax
mov rax, qword [r14 - 8]
xor rax, qword [r15 + 0x18]
mov qword [r13 - 8], rax
cmp r13, rbx
jne 0x14012e7c0
add dword [rsp + 0x20], 0xc0
lea rbx, [r13 + 0xc00]
add qword [rsp + 0x98], 0xc00
sub qword [rsp + 0xa8], 0xc00
cmp qword [rsp + 0xa8], 0xbff
ja 0x14012e786
mov r14, r13
mov r9, qword [rsp + 0xa8]
and r9, 0xfffffffffffffff0
je 0x14012e91a
mov rax, qword [rsp + 0x28]
lea rdx, [r15 + 0x60]
lea rcx, [r15 + 0x40]
mov r13, r14
mov r8, qword [rsp + 0x98]
call rax
mov r11d, dword [rsp + 0x20]
lea rdx, [r15 + 0x10]
mov r8, rdi
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xa0], r14
mov rdi, rdx
add r11d, 1
mov rbx, qword [rsp + 0x98]
lea rbp, [rax - 0x10]
shr rbp, 4
lea r12d, [r11 + rbp]
mov r14, rbp
mov rbp, rsi
mov esi, r11d
jmp 0x14012e8aa
add esi, 1
mov qword [rsp + 0x20], r8
mov rdx, rdi
mov rcx, r15
add r13, 0x10
call rbp
mov eax, esi
add rbx, 0x10
mov r8, qword [rsp + 0x20]
bswap eax
mov dword [r15 + 0xc], eax
mov rax, qword [rbx - 0x10]
xor rax, qword [r15 + 0x10]
mov qword [r13 - 0x10], rax
mov rax, qword [rbx - 8]
xor rax, qword [r15 + 0x18]
mov qword [r13 - 8], rax
cmp esi, r12d
jne 0x14012e8a7
mov dword [rsp + 0x20], esi
mov rsi, rbp
mov rbp, r14
mov rdi, r8
lea rdx, [rbp + 1]
mov r14, qword [rsp + 0xa0]
and qword [rsp + 0xa8], 0xf
shl rdx, 4
add qword [rsp + 0x98], rdx
add r14, rdx
xor edx, edx
cmp qword [rsp + 0xa8], 0
je 0x14012eafe
lea rdx, [r15 + 0x10]
mov r8, rdi
mov rcx, r15
call rsi
mov edx, dword [rsp + 0x20]
mov rax, qword [rsp + 0x98]
add edx, 1
bswap edx
mov dword [r15 + 0xc], edx
movzx edx, byte [rax]
xor byte [r15 + 0x40], dl
xor dl, byte [r15 + 0x10]
mov byte [r14], dl
mov rdx, qword [rsp + 0xa8]
sub rdx, 1
je 0x14012eafb
movzx ecx, byte [rax + 1]
xor byte [r15 + 0x41], cl
xor cl, byte [r15 + 0x11]
cmp qword [rsp + 0xa8], 2
mov byte [r14 + 1], cl
je 0x14012eafb
movzx ecx, byte [rax + 2]
xor byte [r15 + 0x42], cl
xor cl, byte [r15 + 0x12]
cmp qword [rsp + 0xa8], 3
mov byte [r14 + 2], cl
je 0x14012eafb
movzx ecx, byte [rax + 3]
xor byte [r15 + 0x43], cl
xor cl, byte [r15 + 0x13]
cmp qword [rsp + 0xa8], 4
mov byte [r14 + 3], cl
je 0x14012eafb
movzx ecx, byte [rax + 4]
xor byte [r15 + 0x44], cl
xor cl, byte [r15 + 0x14]
cmp qword [rsp + 0xa8], 5
mov byte [r14 + 4], cl
je 0x14012eafb
movzx ecx, byte [rax + 5]
xor byte [r15 + 0x45], cl
xor cl, byte [r15 + 0x15]
cmp qword [rsp + 0xa8], 6
mov byte [r14 + 5], cl
je 0x14012eafb
movzx ecx, byte [rax + 6]
xor byte [r15 + 0x46], cl
xor cl, byte [r15 + 0x16]
cmp qword [rsp + 0xa8], 7
mov byte [r14 + 6], cl
je 0x14012eafb
movzx ecx, byte [rax + 7]
xor byte [r15 + 0x47], cl
xor cl, byte [r15 + 0x17]
cmp qword [rsp + 0xa8], 8
mov byte [r14 + 7], cl
je 0x14012eafb
movzx ecx, byte [rax + 8]
xor byte [r15 + 0x48], cl
xor cl, byte [r15 + 0x18]
cmp qword [rsp + 0xa8], 9
mov byte [r14 + 8], cl
je 0x14012eafb
movzx ecx, byte [rax + 9]
xor byte [r15 + 0x49], cl
xor cl, byte [r15 + 0x19]
cmp qword [rsp + 0xa8], 0xa
mov byte [r14 + 9], cl
je 0x14012eafb
movzx ecx, byte [rax + 0xa]
xor byte [r15 + 0x4a], cl
xor cl, byte [r15 + 0x1a]
cmp qword [rsp + 0xa8], 0xb
mov byte [r14 + 0xa], cl
je 0x14012eafb
movzx ecx, byte [rax + 0xb]
xor byte [r15 + 0x4b], cl
xor cl, byte [r15 + 0x1b]
cmp qword [rsp + 0xa8], 0xc
mov byte [r14 + 0xb], cl
je 0x14012eafb
movzx ecx, byte [rax + 0xc]
xor byte [r15 + 0x4c], cl
xor cl, byte [r15 + 0x1c]
cmp qword [rsp + 0xa8], 0xd
mov byte [r14 + 0xc], cl
je 0x14012eafb
movzx ecx, byte [rax + 0xd]
xor byte [r15 + 0x4d], cl
xor cl, byte [r15 + 0x1d]
cmp qword [rsp + 0xa8], 0xe
mov byte [r14 + 0xd], cl
je 0x14012eafb
movzx ecx, byte [rax + 0xe]
xor byte [r15 + 0x4e], cl
xor cl, byte [r15 + 0x1e]
mov byte [r14 + 0xe], cl
add edx, 1
mov dword [r15 + 0x170], edx
xor eax, eax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [r15 + 0x60]
lea rcx, [r15 + 0x40]
call rbx
mov dword [r15 + 0x174], 0
jmp 0x14012e6d2
mov qword [rsp + 0x98], rcx
mov qword [rsp + 0xa8], r8
test edx, edx
jne 0x14012eafe
jmp 0x14012e74d
mov eax, 0xffffffff
jmp 0x14012eb07