Function at 0x1401a9c00
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
push rbx
push rdi
push r13
push r14
sub rsp, 0xa8
mov rbx, qword [rcx]
mov r13, rdx
movzx edi, byte [rcx + 0x1e2]
mov r14, rcx
test dword [rbx + 0x18], 0x4000000
je 0x1401aa1d9
mov qword [rax - 0x28], rbp
mov qword [rax - 0x30], rsi
mov qword [rax - 0x38], r12
mov qword [rax - 0x40], r15
xor r15d, r15d
cmp qword [rcx + 0x18], r15
jne 0x1401a9c7b
mov rcx, rbx
call fcn.1401c0bd0
mov qword [r14 + 0x18], rax
test rax, rax
je 0x1401a9c7b
xor r9d, r9d
mov dword [rsp + 0x20], r15d
xor r8d, r8d
mov edx, 0x87
mov rcx, rax
call fcn.1401c0520
mov rcx, qword [r13 + 0x78]
mov r12d, 0xfff0bdc0
test rcx, rcx
je 0x1401a9cb1
mov edx, dword [rbx + 8]
mov r12d, r15d
test edx, edx
jle 0x1401a9cb1
mov rax, qword [rbx + 0x10]
add rax, 0x18
nop dword [rax]
cmp qword [rax], rcx
je 0x1401a9cb1
inc r12d
add rax, 0x20
cmp r12d, edx
jl 0x1401a9ca0
mov rax, qword [rbx + 0x10]
mov rbp, rdi
mov rsi, qword [r13 + 0x38]
movsxd rcx, r12d
shl rcx, 5
mov qword [rsp + 0x70], rdi
mov rax, qword [rcx + rax]
mov qword [rsp + 0x78], rax
test rsi, rsi
je 0x1401a9edc
nop word [rax + rax]
cmp byte [r14 + 0x1e2], 0
mov edi, r15d
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x60], r15
mov dword [rsp + 0xd0], r15d
je 0x1401a9d10
mov rdx, qword [rsi + 0x10]
mov r8, rax
mov rcx, rbx
call fcn.1401a8af0
jmp 0x1401a9d21
mov r8, qword [rsi + 0x10]
mov r9, rax
xor edx, edx
mov rcx, r14
call fcn.1401b02c0
mov r15, rax
test rax, rax
je 0x1401a9ea9
lea rax, [rsp + 0x60]
mov r8, rsi
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov rdx, r15
mov rcx, r14
call fcn.14018aff0
test eax, eax
jne 0x1401a9ea9
mov rax, qword [rsp + 0x60]
test rax, rax
jne 0x1401a9d68
mov eax, dword [rsi + 0x40]
mov dword [rsp + 0x50], eax
lea rax, [rsp + 0x50]
mov r13, qword [rsp + 0x68]
xor ebp, ebp
mov qword [rsp + 0x58], rax
cmp dword [rsi + 0x28], ebp
jle 0x1401a9e06
mov rcx, rax
mov rdi, rax
neg rcx
mov qword [rsp + 0x68], rcx
nop dword [rax + rax]
mov rax, qword [rsp + 0xd8]
mov eax, dword [rax + 8]
cmp dword [rdi], eax
jne 0x1401a9da5
mov dword [rdi], 0xffffffff
cmp qword [rbx + 0x178], 0
je 0x1401a9df4
test r13, r13
je 0x1401a9dbd
add rcx, qword [r13 + 0x10]
mov eax, dword [rcx + rdi]
jmp 0x1401a9dc1
mov eax, dword [r15 + 8]
mov rdx, qword [r15]
mov r9d, r12d
cdqe
mov rcx, r14
lea r8, [rax + rax*2]
mov rax, qword [r15 + 0x10]
add r8, r8
mov r8, qword [rax + r8*8]
call fcn.14019a3f0
xor ecx, ecx
cmp eax, 2
sete cl
mov dword [rsp + 0xd0], ecx
mov rcx, qword [rsp + 0x68]
inc ebp
add rdi, 4
cmp ebp, dword [rsi + 0x28]
jl 0x1401a9d90
mov edi, dword [rsp + 0xd0]
mov rax, qword [r15]
xor r9d, r9d
mov r8d, dword [r15 + 0x20]
mov edx, r12d
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.1401bc940
inc dword [r14 + 0x54]
mov eax, dword [rsp + 0xe0]
mov rbp, qword [rsp + 0x58]
test eax, eax
je 0x1401a9e5f
mov dword [rsp + 0x40], edi
mov r9, r13
mov dword [rsp + 0x38], 0xffffffff
mov r8, r15
mov dword [rsp + 0x30], eax
mov edx, r12d
mov qword [rsp + 0x28], rbp
mov rcx, r14
mov qword [rsp + 0x20], rsi
call fcn.140185370
mov eax, dword [rsp + 0xe8]
test eax, eax
je 0x1401a9e95
mov dword [rsp + 0x40], edi
mov r9, r13
mov dword [rsp + 0x38], 1
mov r8, r15
mov dword [rsp + 0x30], eax
mov edx, r12d
mov qword [rsp + 0x28], rbp
mov rcx, r14
mov qword [rsp + 0x20], rsi
call fcn.140185370
mov rdx, qword [rsp + 0x60]
mov rcx, rbx
call fcn.1401a2260
mov rbp, qword [rsp + 0x70]
jmp 0x1401a9ebc
test rbp, rbp
je 0x1401aa1b9
cmp byte [rbx + 0x2a], 0
jne 0x1401aa1b9
mov rsi, qword [rsi + 8]
mov r15d, 0
mov rax, qword [rsp + 0x78]
test rsi, rsi
jne 0x1401a9ce0
mov r13, qword [rsp + 0xd8]
mov r11, qword [r13]
mov r8, r11
test r11, r11
jne 0x1401a9eed
mov r8d, r15d
jmp 0x1401a9f06
cmp byte [r11], 0
je 0x1401a9efc
inc r8
cmp byte [r8], 0
jne 0x1401a9ef3
sub r8d, r11d
and r8d, 0x3fffffff
mov rdi, qword [r13 + 0x78]
cmp qword [rdi + 0x60], 0
je 0x1401a9f56
mov r9d, r8d
mov r10, r11
mov eax, r15d
test r8d, r8d
jle 0x1401a9f4f
lea rsi, [0x140253630]
nop word [rax + rax]
movzx ecx, byte [r10]
lea r10, [r10 + 1]
dec r9d
movzx edx, byte [rcx + rsi]
lea ecx, [rax*8]
xor edx, ecx
xor eax, edx
test r9d, r9d
jg 0x1401a9f30
xor edx, edx
div dword [rdi + 0x50]
jmp 0x1401a9f59
mov edx, r15d
mov r9d, edx
lea rcx, [rdi + 0x50]
mov rdx, r11
call fcn.140184290
test rax, rax
je 0x1401aa1b9
mov rsi, qword [rax + 0x10]
test rsi, rsi
je 0x1401aa1b9
mov r12d, 0x60
nop dword [rax]
nop dword [rax + rax]
cmp byte [rsi + 0x2c], 0
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r15
jne 0x1401a9fb8
cmp qword [r14 + 0x1c8], 0
jne 0x1401a9fb8
cmp byte [r14 + 0x168], 0
je 0x1401aa1a7
lea rax, [rsp + 0x68]
mov r8, rsi
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rdx, r13
mov rcx, r14
call fcn.14018aff0
test eax, eax
je 0x1401a9ff1
test rbp, rbp
je 0x1401aa1b9
cmp byte [rbx + 0x2a], 0
jne 0x1401aa1b9
jmp 0x1401aa1a7
cmp byte [rbx + 0x2a], 0
mov rbp, qword [rsp + 0x68]
jne 0x1401aa19c
cmp byte [rbx + 0x152], 0
je 0x1401aa045
cmp r12w, word [rbx + 0x150]
ja 0x1401aa045
mov rdi, qword [rbx + 0x160]
test rdi, rdi
je 0x1401aa045
mov rax, qword [rdi]
inc dword [rbx + 0x154]
mov qword [rbx + 0x160], rax
mov eax, dword [rbx + 0x154]
cmp eax, dword [rbx + 0x158]
jle 0x1401aa0a9
mov dword [rbx + 0x158], eax
jmp 0x1401aa0a9
cmp dword [0x1402da4f0], 0
je 0x1401aa08c
mov rcx, qword [0x1402e12f0]
test rcx, rcx
je 0x1401aa060
call qword [0x1402da568]
lea rdx, [rsp + 0xd0]
mov ecx, r12d
call fcn.14018c030
mov rcx, qword [0x1402e12f0]
test rcx, rcx
je 0x1401aa082
call qword [0x1402da578]
mov rdi, qword [rsp + 0xd0]
jmp 0x1401aa0a0
mov ecx, r12d
call qword [0x1402da508]
mov rdi, rax
mov qword [rsp + 0xd0], rax
test rdi, rdi
jne 0x1401aa0b2
mov byte [rbx + 0x2a], 1
test rdi, rdi
je 0x1401aa19c
mov r8, r12
xor edx, edx
mov rcx, rdi
call fcn.14012d3f0
mov eax, 1
mov rdx, rdi
mov word [rdi + 2], ax
mov r8d, eax
movsx r9d, word [rdi]
mov rcx, rbx
call fcn.1401bbc50
cmp byte [rbx + 0x2a], 0
mov rdi, rax
je 0x1401aa0eb
mov rdx, rax
jmp 0x1401aa194
movsx eax, word [rax]
dec eax
cdqe
imul rcx, rax, 0x58
mov qword [rcx + rdi + 0x10], r15
mov qword [rcx + rdi + 8], r15
mov rdx, qword [rsi]
mov r15, qword [rsp + 0x60]
mov qword [rdi + 0x20], rdx
mov rax, qword [rsi]
mov rcx, qword [rax]
mov qword [rdi + 0x10], rcx
inc word [rdx + 0x30]
mov eax, dword [r14 + 0x54]
mov dword [rdi + 0x34], eax
inc dword [r14 + 0x54]
mov eax, dword [rsp + 0xe8]
test eax, eax
je 0x1401aa157
mov dword [rsp + 0x38], 0xffffffff
mov r9, r15
mov dword [rsp + 0x30], eax
mov r8, r13
mov qword [rsp + 0x28], rbp
mov rdx, rdi
mov rcx, r14
mov qword [rsp + 0x20], rsi
call fcn.140185d60
mov eax, dword [rsp + 0xe0]
test eax, eax
je 0x1401aa18a
mov ecx, 1
mov r9, r15
mov dword [rsp + 0x38], ecx
mov r8, r13
mov dword [rsp + 0x30], eax
mov rdx, rdi
mov qword [rsp + 0x28], rbp
mov rcx, r14
mov qword [rsp + 0x20], rsi
call fcn.140185d60
xor r15d, r15d
mov rdx, rdi
mov qword [rdi + 0x10], r15
mov rcx, rbx
call fcn.1401bb9d0
mov rdx, rbp
mov rcx, rbx
call fcn.1401a2260
mov rsi, qword [rsi + 0x18]
mov rbp, qword [rsp + 0x70]
test rsi, rsi
jne 0x1401a9f90
mov r12, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x98]
mov rbp, qword [rsp + 0xa0]
mov r15, qword [rsp + 0x88]
add rsp, 0xa8
pop r14
pop r13
pop rdi
pop rbx
ret