Function at 0x14042b190
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov r14d, r9d
mov r15, r8
mov edi, edx
mov rsi, rcx
mov ebp, dword [rsp + 0xd8]
mov ecx, ebp
call fcn.140323e70
mov r12d, eax
test eax, eax
jne 0x14042b48c
mov ecx, dword [rsp + 0xd0]
call fcn.14042b160
mov r12d, eax
test eax, eax
jne 0x14042b48c
mov eax, dword [rsp + 0xc0]
movsxd rcx, ebp
imul rcx, rcx, 0x78
lea rdx, [0x140627a20]
mov edx, dword [rcx + rdx + 0xc]
mov ebx, eax
shr ebx, 3
and eax, 7
cmp eax, 1
sbb ebx, 0xffffffff
lea ecx, [rdx + rdx]
lea eax, [rbx - 2]
mov r12d, 0x20012
sub eax, ecx
jbe 0x14042b48c
cmp eax, edi
jb 0x14042b48c
mov dword [rsp + 0x4c], ecx
mov qword [rsp + 0x50], rbx
mov ebx, ebx
mov rcx, rbx
mov r12, rdx
call fcn.1401a6ad0
mov r13, rax
mov rcx, rbx
call fcn.1401a6ad0
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], r12
mov rcx, r12
mov rbx, r13
call fcn.1401a6ad0
test r13, r13
mov qword [rsp + 0x38], rax
je 0x14042b26b
cmp qword [rsp + 0x30], 0
je 0x14042b26b
test rax, rax
jne 0x14042b2ab
test rbx, rbx
je 0x14042b27d
mov rcx, rbx
call fcn.1401a7300
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x30], 0
je 0x14042b294
mov rcx, qword [rsp + 0x30]
call fcn.1401a7300
mov rax, qword [rsp + 0x38]
mov r12d, 0xc
test rax, rax
je 0x14042b48c
mov rcx, rax
jmp 0x14042b487
mov r13, qword [rsp + 0x50]
mov dword [rsp + 0x2c], r13d
lea rax, [rsp + 0x2c]
test r15, r15
je 0x14042b2ce
mov qword [rsp + 0x20], rax
mov ecx, ebp
mov rdx, r15
mov r8d, r14d
jmp 0x14042b2db
mov qword [rsp + 0x20], rax
mov ecx, ebp
mov rdx, rbx
xor r8d, r8d
mov r9, rbx
call fcn.140308a70
mov r15, rbx
mov r12d, eax
test eax, eax
jne 0x14042b470
mov r12, qword [rsp + 0xc8]
mov r14, qword [rsp + 0x40]
mov dword [rsp + 0x2c], r14d
mov ebx, 0xfffffffe
sub ebx, edi
add ebx, r13d
sub ebx, dword [rsp + 0x4c]
lea rcx, [r15 + r14]
xor edx, edx
mov r8, rbx
call fcn.1401a8120
mov eax, dword [rsp + 0x2c]
mov ecx, ebx
add ecx, eax
lea eax, [rax + rbx]
add eax, 1
mov dword [rsp + 0x2c], eax
mov byte [r15 + rcx], 1
mov r8d, edi
mov ecx, dword [rsp + 0x2c]
add rcx, r15
mov rdx, rsi
call fcn.1401a8100
add dword [rsp + 0x2c], edi
movsxd rax, dword [rsp + 0xd0]
lea rbx, [rax + rax*4]
shl rbx, 4
lea rax, [0x1406293d0]
mov rcx, qword [rsp + 0x38]
mov edx, r14d
mov r8, r12
call qword [rbx + rax + 0x28]
mov r12d, 0x20007
cmp eax, r14d
jne 0x14042b470
mov r8, qword [rsp + 0x40]
mov esi, r8d
not esi
add esi, r13d
mov dword [rsp + 0x20], esi
mov ecx, ebp
mov rdx, qword [rsp + 0x38]
mov r9, qword [rsp + 0x30]
call fcn.140448880
mov r12d, eax
test eax, eax
jne 0x14042b470
test esi, esi
je 0x14042b3ca
mov eax, esi
xor ecx, ecx
mov rdx, qword [rsp + 0x30]
mov dl, byte [rdx + rcx]
xor byte [r15 + rcx], dl
inc rcx
cmp rcx, rax
jne 0x14042b3b6
mov rax, qword [rsp + 0x40]
mov dword [rsp + 0x20], eax
mov ecx, ebp
mov rdx, r15
mov r8d, esi
mov r9, qword [rsp + 0x30]
call fcn.140448880
mov r12d, eax
test eax, eax
jne 0x14042b470
mov rdi, qword [rsp + 0xe8]
mov rbp, qword [rsp + 0x40]
test ebp, ebp
mov rdx, qword [rsp + 0x38]
je 0x14042b41b
xor eax, eax
mov rcx, qword [rsp + 0x30]
mov cl, byte [rcx + rax]
xor byte [rdx + rax], cl
inc rax
cmp rax, rbp
jne 0x14042b408
cmp dword [rdi], r13d
jae 0x14042b42b
mov dword [rdi], r13d
mov r12d, 0x20004
jmp 0x14042b470
mov rbx, qword [rsp + 0xe0]
mov dword [rsp + 0x2c], 1
mov byte [rbx], 0
lea rcx, [rbx + 1]
mov r8, rbp
call fcn.1401a8100
add ebp, dword [rsp + 0x2c]
mov dword [rsp + 0x2c], ebp
mov r8d, esi
add rbp, rbx
mov rcx, rbp
mov rdx, r15
call fcn.1401a8100
add esi, dword [rsp + 0x2c]
mov dword [rsp + 0x2c], esi
mov dword [rdi], esi
xor r12d, r12d
mov rcx, qword [rsp + 0x38]
call fcn.1401a7300
mov rcx, qword [rsp + 0x30]
call fcn.1401a7300
mov rcx, r15
call fcn.1401a7300
mov eax, r12d
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret