Function at 0x14003eaac
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x848]
sub rsp, 0x920
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400886c0]
xor rax, rsp
mov qword [rbp + 0x810], rax
mov rsi, rcx
mov qword [rsp + 0x60], rcx
mov ecx, 0x64
call fcn.1400061c4
mov rcx, qword [rsi]
call fcn.140021628
mov qword [rbp - 0x48], rax
xor edx, edx
movabs r8, 0x7fffffff7fffffff
mov rcx, qword [rsi]
call fcn.140042070
xor r12d, r12d
mov ebx, r12d
mov qword [rbp - 0x70], rbx
mov r13d, r12d
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x58], r12
mov byte [rbp - 0x50], r12b
mov edi, r12d
lea r14d, [r12 + 1]
cmp qword [rsi + 0xd8], r12
jbe 0x14003eb84
mov rcx, qword [rsi + 0xd0]
mov rax, qword [rsi + 0x120]
cmp qword [rbx + rcx], rax
jne 0x14003eb6c
mov edx, dword [rbx + rcx + 8]
lea rcx, [rbp - 0x70]
call fcn.14003ff3c
add rdi, r14
add rbx, 0x10
cmp rdi, qword [rsi + 0xd8]
jb 0x14003eb4b
mov r13, qword [rbp - 0x68]
mov rbx, qword [rbp - 0x70]
mov eax, 0x818
mul r13
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140059054
mov r15, rax
lea r9, [0x14003fc7c]
mov r8d, 0x20
mov rdx, qword [rsi + 0x88]
mov rcx, qword [rsi + 0x80]
call fcn.14005d7b0
mov rdx, qword [rsi + 0xb0]
lea rcx, [rsp + 0x78]
call fcn.14003d0bc
nop
mov r10, r12
cmp qword [rsi + 0xb0], r12
jbe 0x14003ec4e
mov r9, r12
mov rbx, qword [rsp + 0x78]
mov r8, qword [rsi + 0xa8]
mov rax, qword [rsi + 0x120]
cmp qword [r9 + r8], rax
jne 0x14003ec3a
mov r8, qword [r9 + r8 + 8]
mov rdx, r8
shr rdx, 3
and rdx, qword [rbp - 0x78]
movzx ecx, byte [rdx + rbx]
mov eax, r8d
and eax, 7
bts ecx, eax
mov byte [rdx + rbx], cl
shr r8, 0x1e
mov rcx, r8
shr rcx, 3
and rcx, qword [rbp - 0x78]
movzx eax, byte [rcx + rbx]
and r8d, 7
bts eax, r8d
mov byte [rcx + rbx], al
add r10, r14
add r9, 0x28
cmp r10, qword [rsi + 0xb0]
jb 0x14003ebe8
mov rbx, qword [rbp - 0x70]
lea rcx, [rbp + 0x10]
call fcn.1400181e8
mov dword [rsp + 0x38], r12d
mov ecx, 0x7fffffff
mov dword [rsp + 0x5c], ecx
mov r8d, r12d
test r13, r13
je 0x14003ed08
mov rax, r12
mov esi, eax
imul r11, rax, 0x818
mov eax, dword [rbx + rax*4]
mov dword [r11 + r15], eax
cmp eax, esi
cmova esi, eax
cmp eax, ecx
cmovb ecx, eax
mov dword [rsp + 0x5c], ecx
mov byte [r11 + r15 + 0x810], r12b
mov r9, r12
lea r10, [r15 + 8]
add r10, r11
mov ebx, 1
mov r14d, 0x100
movzx eax, r9b
mov rdx, qword [rbp + rax*8 + 0x10]
cmp dword [r11 + r15], r12d
jbe 0x14003ecd9
mov edi, dword [r11 + r15]
movzx eax, dl
mov rcx, rdx
shr rcx, 8
mov rdx, qword [rbp + rax*8 + 0x10]
xor rdx, rcx
sub rdi, rbx
jne 0x14003ecc2
mov qword [r10], rdx
add r9, rbx
add r10, 8
sub r14, rbx
jne 0x14003ecaf
add r8d, ebx
mov eax, r8d
cmp rax, r13
mov rbx, qword [rbp - 0x70]
mov ecx, dword [rsp + 0x5c]
jb 0x14003ec76
mov dword [rsp + 0x38], esi
mov rsi, qword [rsp + 0x60]
mov ebx, 0x400000
mov ecx, ebx
call fcn.140059054
mov r14, rax
mov qword [rsp + 0x68], rax
mov rcx, qword [rsi]
mov r9, qword [rcx]
xor r8d, r8d
xor edx, edx
call qword [r9 + 0x20]
mov rcx, qword [rsi]
mov r9, qword [rcx]
mov r8d, ebx
mov rdx, r14
call qword [r9 + 0x18]
movsxd r12, eax
mov qword [rsp + 0x40], r12
xor edi, edi
lea edx, [rdi + 1]
test r13, r13
je 0x14003ed87
xor eax, eax
imul rbx, rax, 0x818
mov r8d, dword [rbx + r15]
cmp r12, r8
jb 0x14003ed7e
mov rdx, r14
xor ecx, ecx
call fcn.140018028
mov qword [rbx + r15 + 0x808], rax
mov edx, 1
mov byte [rbx + r15 + 0x810], dl
add edi, edx
mov eax, edi
cmp rax, r13
jb 0x14003ed4f
and dword [rsp + 0x58], 0
and qword [rsp + 0x70], 0
xor r11d, r11d
mov qword [rsp + 0x50], r11
xor edi, edi
mov ecx, dword [rsp + 0x38]
mov qword [rsp + 0x48], rcx
jmp 0x14003edac
mov r12, qword [rsp + 0x40]
lea rax, [rdi + 0x40]
cmp rax, r12
jae 0x14003eec0
cmp byte [rdi + r14], 0x7b
jne 0x14003eec0
cmp byte [rdi + r14 + 1], 0x52
jne 0x14003eec0
cmp byte [rdi + r14 + 2], 0x42
jne 0x14003eec0
cmp byte [rdi + r14 + 3], 0x7d
jne 0x14003eec0
cmp byte [rdi + r14 + 0x14], dl
jne 0x14003eec0
mov ebx, dword [rdi + r14 + 0xc]
lea rax, [rcx + rbx]
add rax, rdi
cmp rax, r12
jae 0x14003eec0
mov rax, qword [rsi + 0x120]
mov qword [rbp - 0x10], rax
lea rax, [rdi + r11]
mov qword [rbp], rax
lea rax, [0x14003fc7c]
mov qword [rsp + 0x20], rax
mov r9d, 0x20
mov r8, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x80]
lea rcx, [rbp - 0x10]
call fcn.14006013c
test rax, rax
je 0x14003eec0
add rdi, rbx
xor r12d, r12d
test r13, r13
mov rcx, qword [rsp + 0x48]
mov r11, qword [rsp + 0x50]
lea edx, [r12 + 1]
je 0x14003eda7
xor eax, eax
lea rcx, [rdi + r14]
mov r14, rcx
mov esi, edx
imul rbx, rax, 0x818
mov r8d, dword [rbx + r15]
mov rdx, r14
xor ecx, ecx
call fcn.140018028
mov qword [rbx + r15 + 0x808], rax
mov byte [rbx + r15 + 0x810], sil
add r12d, esi
mov eax, r12d
cmp rax, r13
jb 0x14003ee72
mov rsi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
mov r11, qword [rsp + 0x50]
mov edx, 1
jmp 0x14003eda7
xor r12d, r12d
xor cl, cl
mov dword [rsp + 0x30], ecx
xor ebx, ebx
test r13, r13
je 0x14003f0eb
xor eax, eax
mov r14, qword [rsp + 0x70]
lea r11d, [r12 + 1]
imul r9, rax, 0x818
cmp byte [r9 + r15 + 0x810], 0
je 0x14003f063
mov r8, qword [r9 + r15 + 0x808]
mov qword [rbp - 0x30], r8
mov cl, r8b
and cl, 7
mov edx, r11d
shl edx, cl
mov rax, r8
shr rax, 3
and rax, qword [rbp - 0x78]
mov r10, qword [rsp + 0x78]
mov al, byte [rax + r10]
test al, dl
je 0x14003f05f
shr r8, 0x1e
mov cl, r8b
and cl, 7
mov edx, 1
shl edx, cl
shr r8, 3
and r8, qword [rbp - 0x78]
test byte [r8 + r10], dl
je 0x14003f059
mov rax, qword [rsi + 0x120]
mov qword [rbp - 0x38], rax
mov eax, dword [r9 + r15]
mov dword [rbp - 0x18], eax
lea rax, [0x14003fc2c]
mov qword [rsp + 0x20], rax
mov r9d, 0x28
mov r8, qword [rsi + 0xb0]
mov rdx, qword [rsi + 0xa8]
lea rcx, [rbp - 0x38]
call fcn.14006013c
mov r8, rax
test rax, rax
je 0x14003f059
mov rcx, qword [rax + 0x18]
mov rdx, qword [rax + 0x10]
cmp rcx, rdx
jbe 0x14003efa5
sub rcx, rdx
jmp 0x14003efae
mov rax, rdx
sub rax, rcx
mov rcx, rax
mov r11, qword [rsp + 0x50]
lea r10, [rdi + r11]
cmp r10, rdx
jbe 0x14003efc7
mov rax, rdi
sub rax, rdx
add rax, r11
jmp 0x14003efd0
mov rax, rdx
sub rax, rdi
sub rax, r11
movabs r9, 0x7fffffff7fffffff
cmp qword [r8 + 0x18], r9
je 0x14003efe5
cmp rax, rcx
jae 0x14003f059
mov qword [r8 + 0x18], r10
mov r12d, dword [rbp - 0x18]
test r14, r14
je 0x14003f01e
mov eax, dword [r14 + 0x20]
cmp eax, dword [r8 + 0x20]
jne 0x14003f01e
mov rcx, qword [r14 + 0x18]
add rcx, rax
cmp rcx, r10
jne 0x14003f01e
mov rcx, qword [r14 + 0x10]
add rcx, rax
cmp rcx, rdx
jne 0x14003f01e
mov r10d, dword [rsp + 0x58]
inc r10d
jmp 0x14003f021
xor r10d, r10d
mov dword [rsp + 0x58], r10d
xor edx, edx
mov eax, dword [rsp + 0x38]
div dword [r8 + 0x20]
inc eax
mov ecx, 5
cmp eax, ecx
cmovb eax, ecx
mov ecx, dword [rsp + 0x30]
movzx ecx, cl
cmp r10d, eax
mov r11d, 1
cmova ecx, r11d
mov dword [rsp + 0x30], ecx
mov r14, r8
jmp 0x14003f063
mov r11d, 1
mov ecx, dword [rsp + 0x30]
add ebx, r11d
mov eax, ebx
cmp rax, r13
jb 0x14003eee0
mov qword [rsp + 0x70], r14
mov r14, qword [rsp + 0x68]
test cl, cl
je 0x14003f0eb
mov rdx, qword [rsp + 0x48]
test r12d, r12d
je 0x14003f0f0
mov ecx, r12d
lea rax, [rcx + rdx]
add rax, rdi
mov r12, qword [rsp + 0x40]
cmp rax, r12
jae 0x14003f0f5
cmp byte [rdi + r14], 0
je 0x14003f0f5
add rdi, rcx
xor r12d, r12d
xor eax, eax
lea rcx, [rdi + r14]
mov r14, rcx
lea esi, [rax + 1]
imul rbx, rax, 0x818
mov r8d, dword [rbx + r15]
mov rdx, r14
xor ecx, ecx
call fcn.140018028
mov qword [rbx + r15 + 0x808], rax
mov byte [rbx + r15 + 0x810], sil
add r12d, esi
mov eax, r12d
cmp rax, r13
jb 0x14003f0b6
jmp 0x14003eea2
mov rdx, qword [rsp + 0x48]
mov r12, qword [rsp + 0x40]
lea rax, [rdx + rdi]
cmp rax, r12
jb 0x14003f169
mov rbx, r12
sub rbx, rdi
cmp rbx, rdx
jne 0x14003f159
call fcn.14004a2c8
lea rdx, [rdi + r14]
mov r8, rbx
mov rcx, r14
call fcn.14005ae60
xor edi, edi
sub r12, rbx
add qword [rsp + 0x50], r12
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov r8d, 0x400000
sub r8, rbx
lea rdx, [rbx + r14]
call qword [rax + 0x18]
movsxd r12, eax
add r12, rbx
mov qword [rsp + 0x40], r12
mov r8, qword [rbp - 0x48]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsi]
call fcn.140042070
mov eax, dword [rsp + 0x5c]
add rax, rdi
cmp rax, r12
jae 0x14003f1f3
xor r10d, r10d
lea edx, [r10 + 1]
test r13, r13
je 0x14003f1e1
xor r8d, r8d
imul r9, r8, 0x818
mov r11d, dword [r9 + r15]
add r11, rdi
cmp r11, r12
jae 0x14003f1cd
mov rdx, qword [r9 + r15 + 0x808]
movzx ecx, byte [rdi + r14]
imul rax, r8, 0x103
add rcx, rax
movzx eax, byte [r11 + r14]
xor rax, rdx
movzx eax, al
mov rcx, qword [r15 + rcx*8 + 8]
xor rcx, qword [rbp + rax*8 + 0x10]
shr rdx, 8
xor rcx, rdx
mov qword [r9 + r15 + 0x808], rcx
mov edx, 1
jmp 0x14003f1d6
mov byte [r9 + r15 + 0x810], 0
add r10d, edx
mov r8d, r10d
cmp r8, r13
jb 0x14003f178
add rdi, rdx
mov rcx, qword [rsp + 0x48]
mov r11, qword [rsp + 0x50]
jmp 0x14003edac
mov rcx, r14
call fcn.14005904c
mov rcx, r15
call fcn.14005904c
mov edx, 0x64
mov r8d, edx
mov rcx, qword [rsi]
call fcn.140042070
nop
mov edx, 1
mov rcx, qword [rsp + 0x78]
call fcn.14005904c
nop
lea rcx, [rbp - 0x70]
call fcn.1400013fc
mov rcx, qword [rbp + 0x810]
xor rcx, rsp
call fcn.1400591e0
lea r11, [rsp + 0x920]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret