Function at 0x14047c870
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.14035f1e0
mov r12d, eax
test eax, eax
jne 0x14047cb6c
mov ecx, dword [rsp + 0xd0]
call fcn.1401eb6e0
mov r12d, eax
test eax, eax
jne 0x14047cb6c
mov eax, dword [rsp + 0xc0]
movsxd rcx, ebp
imul rcx, rcx, 0x78
lea rdx, [0x1406c04f0]
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 0x14047cb6c
cmp eax, edi
jb 0x14047cb6c
mov dword [rsp + 0x4c], ecx
mov qword [rsp + 0x50], rbx
mov ebx, ebx
mov rcx, rbx
mov r12, rdx
call fcn.1401ec4a0
mov r13, rax
mov rcx, rbx
call fcn.1401ec4a0
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], r12
mov rcx, r12
mov rbx, r13
call fcn.1401ec4a0
test r13, r13
mov qword [rsp + 0x38], rax
je 0x14047c94b
cmp qword [rsp + 0x30], 0
je 0x14047c94b
test rax, rax
jne 0x14047c98b
test rbx, rbx
je 0x14047c95d
mov rcx, rbx
call fcn.1401ecc90
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x30], 0
je 0x14047c974
mov rcx, qword [rsp + 0x30]
call fcn.1401ecc90
mov rax, qword [rsp + 0x38]
mov r12d, 0xc
test rax, rax
je 0x14047cb6c
mov rcx, rax
jmp 0x14047cb67
mov r13, qword [rsp + 0x50]
mov dword [rsp + 0x2c], r13d
lea rax, [rsp + 0x2c]
test r15, r15
je 0x14047c9ae
mov qword [rsp + 0x20], rax
mov ecx, ebp
mov rdx, r15
mov r8d, r14d
jmp 0x14047c9bb
mov qword [rsp + 0x20], rax
mov ecx, ebp
mov rdx, rbx
xor r8d, r8d
mov r9, rbx
call fcn.14035a090
mov r15, rbx
mov r12d, eax
test eax, eax
jne 0x14047cb50
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.1401ee070
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.1401fed70
add dword [rsp + 0x2c], edi
movsxd rax, dword [rsp + 0xd0]
lea rbx, [rax + rax*4]
shl rbx, 4
lea rax, [0x14066bff0]
mov rcx, qword [rsp + 0x38]
mov edx, r14d
mov r8, r12
call qword [rbx + rax + 0x28]
mov r12d, 0x20007
cmp eax, r14d
jne 0x14047cb50
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.140483100
mov r12d, eax
test eax, eax
jne 0x14047cb50
test esi, esi
je 0x14047caaa
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 0x14047ca96
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.140483100
mov r12d, eax
test eax, eax
jne 0x14047cb50
mov rdi, qword [rsp + 0xe8]
mov rbp, qword [rsp + 0x40]
test ebp, ebp
mov rdx, qword [rsp + 0x38]
je 0x14047cafb
xor eax, eax
mov rcx, qword [rsp + 0x30]
mov cl, byte [rcx + rax]
xor byte [rdx + rax], cl
inc rax
cmp rax, rbp
jne 0x14047cae8
cmp dword [rdi], r13d
jae 0x14047cb0b
mov dword [rdi], r13d
mov r12d, 0x20004
jmp 0x14047cb50
mov rbx, qword [rsp + 0xe0]
mov dword [rsp + 0x2c], 1
mov byte [rbx], 0
lea rcx, [rbx + 1]
mov r8, rbp
call fcn.1401fed70
add ebp, dword [rsp + 0x2c]
mov dword [rsp + 0x2c], ebp
mov r8d, esi
add rbp, rbx
mov rcx, rbp
mov rdx, r15
call fcn.1401fed70
add esi, dword [rsp + 0x2c]
mov dword [rsp + 0x2c], esi
mov dword [rdi], esi
xor r12d, r12d
mov rcx, qword [rsp + 0x38]
call fcn.1401ecc90
mov rcx, qword [rsp + 0x30]
call fcn.1401ecc90
mov rcx, r15
call fcn.1401ecc90
mov eax, r12d
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret