Function at 0x14012e130
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
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 + 0xa8], rdx
movabs r8, 0xfffffffe0
mov rdx, r9
add rdx, qword [r15 + 0x38]
mov qword [rsp + 0xb8], r9
mov qword [rsp + 0x38], rax
setb cl
cmp rdx, r8
ja 0x14012e63c
test rcx, rcx
jne 0x14012e63c
mov eax, dword [r15 + 0x174]
mov qword [r15 + 0x38], rdx
test eax, eax
jne 0x14012e609
mov edx, dword [r15 + 0x170]
mov eax, dword [r15 + 0xc]
bswap eax
mov dword [rsp + 0x2c], eax
test edx, edx
je 0x14012e233
cmp qword [rsp + 0xb8], 0
je 0x14012e5ef
mov r8, qword [rsp + 0xa8]
mov r9, qword [rsp + 0xb8]
jmp 0x14012e1f1
test r9, r9
je 0x14012e623
mov ecx, edx
movzx eax, byte [r8]
add r14, 1
add edx, 1
xor al, byte [r15 + rcx + 0x10]
add r8, 1
sub r9, 1
mov byte [r14 - 1], al
xor byte [r15 + rcx + 0x40], al
and edx, 0xf
jne 0x14012e1e8
mov qword [rsp + 0xa8], r8
mov qword [rsp + 0xb8], r9
lea rdx, [r15 + 0x60]
lea rcx, [r15 + 0x40]
call rbx
cmp qword [rsp + 0xb8], 0xbff
jbe 0x14012e326
lea rax, [r15 + 0x60]
mov qword [rsp + 0x30], r14
lea rbp, [r15 + 0x10]
mov r13, r15
mov qword [rsp + 0x48], rax
lea rax, [r15 + 0x40]
lea rbx, [r14 + 0xc00]
mov qword [rsp + 0x40], rax
mov r12d, dword [rsp + 0x2c]
mov r15, qword [rsp + 0xa8]
mov r14, qword [rsp + 0x30]
nop dword [rax]
add r12d, 1
mov r8, rdi
mov rdx, rbp
mov rcx, r13
call rsi
mov eax, r12d
add r14, 0x10
add r15, 0x10
bswap eax
mov dword [r13 + 0xc], eax
mov rax, qword [r15 - 0x10]
xor rax, qword [r13 + 0x10]
mov qword [r14 - 0x10], rax
mov rax, qword [r15 - 8]
xor rax, qword [r13 + 0x18]
mov qword [r14 - 8], rax
cmp r14, rbx
jne 0x14012e280
mov rbx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov r9d, 0xc00
add dword [rsp + 0x2c], 0xc0
mov rdx, qword [rsp + 0x48]
add qword [rsp + 0xa8], 0xc00
mov r8, rbx
mov rcx, qword [rsp + 0x40]
call rax
mov rax, rbx
lea rbx, [r14 + 0xc00]
sub qword [rsp + 0xb8], 0xc00
add rax, 0xc00
cmp qword [rsp + 0xb8], 0xbff
mov qword [rsp + 0x30], rax
ja 0x14012e26a
mov r15, r13
mov r9, qword [rsp + 0xb8]
and r9, 0xfffffffffffffff0
je 0x14012e40b
mov r12d, dword [rsp + 0x2c]
lea rdx, [r15 + 0x10]
mov rbp, r14
mov r8, rdi
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xb0], r14
mov r13, rdx
mov rdi, r9
add r12d, 1
mov rbx, qword [rsp + 0xa8]
lea r11, [rax - 0x10]
shr r11, 4
lea eax, [r12 + r11]
mov r14, r11
mov dword [rsp + 0x2c], eax
jmp 0x14012e382
add r12d, 1
mov qword [rsp + 0x30], r8
mov rdx, r13
mov rcx, r15
add rbp, 0x10
call rsi
mov eax, r12d
add rbx, 0x10
mov r8, qword [rsp + 0x30]
bswap eax
mov dword [r15 + 0xc], eax
mov rax, qword [rbx - 0x10]
xor rax, qword [r15 + 0x10]
mov qword [rbp - 0x10], rax
mov rax, qword [rbx - 8]
xor rax, qword [r15 + 0x18]
mov qword [rbp - 8], rax
cmp r12d, dword [rsp + 0x2c]
jne 0x14012e37e
mov r11, r14
mov r9, rdi
mov rdi, r8
mov dword [rsp + 0x2c], r12d
mov r14, qword [rsp + 0xb0]
lea rdx, [r11 + 1]
mov rax, qword [rsp + 0x38]
lea rcx, [r15 + 0x40]
and qword [rsp + 0xb8], 0xf
shl rdx, 4
add r14, rdx
add qword [rsp + 0xa8], rdx
lea rdx, [r15 + 0x60]
mov r8, r14
sub r8, r9
call rax
xor edx, edx
cmp qword [rsp + 0xb8], 0
je 0x14012e5ef
lea rdx, [r15 + 0x10]
mov r8, rdi
mov rcx, r15
call rsi
mov edx, dword [rsp + 0x2c]
mov rax, qword [rsp + 0xa8]
add edx, 1
bswap edx
mov dword [r15 + 0xc], edx
movzx edx, byte [r15 + 0x10]
xor dl, byte [rax]
mov byte [r14], dl
xor byte [r15 + 0x40], dl
mov rdx, qword [rsp + 0xb8]
sub rdx, 1
je 0x14012e5ec
movzx ecx, byte [r15 + 0x11]
xor cl, byte [rax + 1]
mov byte [r14 + 1], cl
xor byte [r15 + 0x41], cl
cmp qword [rsp + 0xb8], 2
je 0x14012e5ec
movzx ecx, byte [r15 + 0x12]
xor cl, byte [rax + 2]
mov byte [r14 + 2], cl
xor byte [r15 + 0x42], cl
cmp qword [rsp + 0xb8], 3
je 0x14012e5ec
movzx ecx, byte [rax + 3]
xor cl, byte [r15 + 0x13]
mov byte [r14 + 3], cl
xor byte [r15 + 0x43], cl
cmp qword [rsp + 0xb8], 4
je 0x14012e5ec
movzx ecx, byte [rax + 4]
xor cl, byte [r15 + 0x14]
mov byte [r14 + 4], cl
xor byte [r15 + 0x44], cl
cmp qword [rsp + 0xb8], 5
je 0x14012e5ec
movzx ecx, byte [rax + 5]
xor cl, byte [r15 + 0x15]
mov byte [r14 + 5], cl
xor byte [r15 + 0x45], cl
cmp qword [rsp + 0xb8], 6
je 0x14012e5ec
movzx ecx, byte [rax + 6]
xor cl, byte [r15 + 0x16]
mov byte [r14 + 6], cl
xor byte [r15 + 0x46], cl
cmp qword [rsp + 0xb8], 7
je 0x14012e5ec
movzx ecx, byte [rax + 7]
xor cl, byte [r15 + 0x17]
mov byte [r14 + 7], cl
xor byte [r15 + 0x47], cl
cmp qword [rsp + 0xb8], 8
je 0x14012e5ec
movzx ecx, byte [rax + 8]
xor cl, byte [r15 + 0x18]
mov byte [r14 + 8], cl
xor byte [r15 + 0x48], cl
cmp qword [rsp + 0xb8], 9
je 0x14012e5ec
movzx ecx, byte [rax + 9]
xor cl, byte [r15 + 0x19]
mov byte [r14 + 9], cl
xor byte [r15 + 0x49], cl
cmp qword [rsp + 0xb8], 0xa
je 0x14012e5ec
movzx ecx, byte [rax + 0xa]
xor cl, byte [r15 + 0x1a]
mov byte [r14 + 0xa], cl
xor byte [r15 + 0x4a], cl
cmp qword [rsp + 0xb8], 0xb
je 0x14012e5ec
movzx ecx, byte [rax + 0xb]
xor cl, byte [r15 + 0x1b]
mov byte [r14 + 0xb], cl
xor byte [r15 + 0x4b], cl
cmp qword [rsp + 0xb8], 0xc
je 0x14012e5ec
movzx ecx, byte [rax + 0xc]
xor cl, byte [r15 + 0x1c]
mov byte [r14 + 0xc], cl
xor byte [r15 + 0x4c], cl
cmp qword [rsp + 0xb8], 0xd
je 0x14012e5ec
movzx ecx, byte [rax + 0xd]
xor cl, byte [r15 + 0x1d]
mov byte [r14 + 0xd], cl
xor byte [r15 + 0x4d], cl
cmp qword [rsp + 0xb8], 0xe
je 0x14012e5ec
movzx ecx, byte [rax + 0xe]
xor cl, byte [r15 + 0x1e]
mov byte [r14 + 0xe], cl
xor byte [r15 + 0x4e], cl
add edx, 1
mov dword [r15 + 0x170], edx
xor eax, eax
add rsp, 0x58
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 0x14012e1b2
mov qword [rsp + 0xa8], r8
mov qword [rsp + 0xb8], r9
test edx, edx
jne 0x14012e5ef
jmp 0x14012e229
mov eax, 0xffffffff
jmp 0x14012e5f8