Function at 0x1401b1e70
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 rbp
push rsi
push r14
sub rsp, 0xb0
mov rbp, qword [rcx]
movzx r10d, byte [rcx + 0x1e2]
mov r14, rdx
test dword [rbp + 0x18], 0x4000000
mov rsi, rcx
je 0x1401b2398
mov rcx, qword [rdx + 0x78]
mov qword [rax - 0x28], rdi
mov qword [rax - 0x30], r12
mov qword [rax - 0x38], r13
xor r12d, r12d
mov qword [rax - 0x40], r15
mov r15d, 0xfff0bdc0
test rcx, rcx
je 0x1401b1ef1
mov edx, dword [rbp + 8]
mov r15d, r12d
test edx, edx
jle 0x1401b1ef1
mov rax, qword [rbp + 0x10]
add rax, 0x18
nop dword [rax]
cmp qword [rax], rcx
je 0x1401b1ef1
inc r15d
add rax, 0x20
cmp r15d, edx
jl 0x1401b1ee0
mov rax, qword [rbp + 0x10]
mov rdi, qword [r14 + 0x38]
movsxd rcx, r15d
shl rcx, 5
mov qword [rsp + 0xa8], rbx
mov r13, r10
mov rax, qword [rcx + rax]
mov qword [rsp + 0x70], r10
mov qword [rsp + 0x78], rax
test rdi, rdi
je 0x1401b2139
nop word [rax + rax]
cmp byte [rsi + 0x1e2], 0
mov ebx, r12d
mov qword [rsp + 0x68], r12
mov dword [rsp + 0xd0], ebx
mov qword [rsp + 0x60], r12
je 0x1401b1f5e
mov rdx, qword [rdi + 0x10]
mov r8, rax
mov rcx, rbp
call fcn.14014dc00
jmp 0x1401b1f6f
mov r8, qword [rdi + 0x10]
mov r9, rax
xor edx, edx
mov rcx, rsi
call fcn.1401b1380
mov r12, rax
test rax, rax
je 0x1401b2106
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x68]
mov r8, rdi
mov rdx, r12
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.140166ec0
test eax, eax
jne 0x1401b2106
mov rax, qword [rsp + 0x60]
test rax, rax
jne 0x1401b1fb6
mov eax, dword [rdi + 0x40]
mov dword [rsp + 0x50], eax
lea rax, [rsp + 0x50]
mov r14, qword [rsp + 0x68]
xor r13d, r13d
mov qword [rsp + 0x58], rax
cmp dword [rdi + 0x28], r13d
jle 0x1401b2063
mov rdx, rax
mov rbx, rax
neg rdx
mov qword [rsp + 0x68], rdx
nop dword [rax + rax]
mov ecx, dword [rbx]
mov rax, qword [rsp + 0xd8]
mov eax, dword [rax + 8]
cmp ecx, eax
mov eax, 0xffffffff
cmove ecx, eax
mov dword [rbx], ecx
cmp qword [rbp + 0x188], 0
je 0x1401b204f
test r14, r14
je 0x1401b2015
mov rax, qword [r14 + 0x10]
lea rcx, [rdx + rax]
mov eax, dword [rcx + rbx]
jmp 0x1401b201a
mov eax, dword [r12 + 8]
mov rdx, qword [r12]
cdqe
mov r9d, r15d
lea r8, [rax + rax*2]
mov rax, qword [r12 + 0x10]
mov rcx, rsi
add r8, r8
mov r8, qword [rax + r8*8]
call fcn.140164e10
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
cmp eax, 2
sete cl
mov dword [rsp + 0xd0], ecx
inc r13d
add rbx, 4
cmp r13d, dword [rdi + 0x28]
jl 0x1401b1fe0
mov ebx, dword [rsp + 0xd0]
mov rax, qword [r12]
mov r8d, dword [r12 + 0x20]
xor r9d, r9d
mov edx, r15d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.14015af70
mov eax, dword [rsp + 0xe0]
inc dword [rsi + 0x54]
mov r13, qword [rsp + 0x58]
test eax, eax
je 0x1401b20bc
mov dword [rsp + 0x40], ebx
or ecx, 0xffffffff
mov r9, r14
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], eax
mov r8, r12
mov rcx, rsi
mov edx, r15d
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rdi
call fcn.14017ec60
mov eax, dword [rsp + 0xe8]
test eax, eax
je 0x1401b20f2
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], eax
mov r9, r14
mov r8, r12
mov edx, r15d
mov rcx, rsi
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rdi
call fcn.14017ec60
mov rdx, qword [rsp + 0x60]
mov rcx, rbp
call fcn.1401434c0
mov r13, qword [rsp + 0x70]
jmp 0x1401b2119
test r13, r13
je 0x1401b2370
cmp byte [rbp + 0x2a], 0
jne 0x1401b2370
mov rdi, qword [rdi + 8]
mov rax, qword [rsp + 0x78]
mov r12d, 0
test rdi, rdi
jne 0x1401b1f30
mov r14, qword [rsp + 0xd8]
mov r11, qword [r14]
mov r8, r11
test r11, r11
jne 0x1401b2149
mov r8d, r12d
jmp 0x1401b2163
cmp byte [r11], 0
je 0x1401b2159
nop
inc r8
cmp byte [r8], 0
jne 0x1401b2150
sub r8d, r11d
and r8d, 0x3fffffff
mov rbx, qword [r14 + 0x78]
cmp qword [rbx + 0x60], 0
je 0x1401b21b5
mov r9d, r8d
mov r10, r11
mov eax, r12d
test r8d, r8d
jle 0x1401b21ae
lea rdi, [0x1402454a0]
nop word [rax + rax]
movzx ecx, byte [r10]
dec r9d
inc r10
movzx edx, byte [rcx + rdi]
lea ecx, [rax*8]
xor edx, ecx
xor eax, edx
test r9d, r9d
jg 0x1401b2190
xor edx, edx
div dword [rbx + 0x50]
jmp 0x1401b21b8
mov edx, r12d
mov r9d, edx
lea rcx, [rbx + 0x50]
mov rdx, r11
call fcn.1401449e0
test rax, rax
je 0x1401b2370
mov rdi, qword [rax + 0x10]
test rdi, rdi
je 0x1401b2370
nop dword [rax]
cmp byte [rdi + 0x2c], 0
mov qword [rsp + 0x68], r12
mov qword [rsp + 0xd0], r12
jne 0x1401b220a
cmp qword [rsi + 0x1c8], 0
jne 0x1401b220a
cmp byte [rsi + 0x168], 0
je 0x1401b235e
lea rax, [rsp + 0xd0]
lea r9, [rsp + 0x68]
mov r8, rdi
mov rdx, r14
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.140166ec0
test eax, eax
je 0x1401b2246
test r13, r13
je 0x1401b2370
cmp byte [rbp + 0x2a], 0
jne 0x1401b2370
jmp 0x1401b235e
mov edx, 0x60
mov rcx, rbp
call fcn.140154320
mov r12, qword [rsp + 0xd0]
mov rbx, rax
test rax, rax
je 0x1401b2350
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x60]
call fcn.14010da60
mov eax, 1
mov rdx, rbx
mov word [rbx + 2], ax
movsx r9d, word [rbx]
mov r8d, eax
mov rcx, rbp
call fcn.14015b710
cmp byte [rbp + 0x2a], 0
mov rbx, rax
je 0x1401b22a1
mov rdx, rax
jmp 0x1401b2348
movsx eax, word [rax]
mov r13, qword [rsp + 0x68]
xor r15d, r15d
dec eax
movsxd rcx, eax
imul rcx, rcx, 0x58
mov qword [rcx + rbx + 0x10], r15
mov qword [rcx + rbx + 8], r15
mov rdx, qword [rdi]
mov qword [rbx + 0x20], rdx
mov rax, qword [rdi]
mov rcx, qword [rax]
mov qword [rbx + 0x10], rcx
inc word [rdx + 0x30]
mov eax, dword [rsi + 0x54]
mov dword [rbx + 0x34], eax
mov eax, dword [rsp + 0xe8]
inc dword [rsi + 0x54]
test eax, eax
je 0x1401b230e
or ecx, 0xffffffff
mov r9, r13
mov r8, r14
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], eax
mov rcx, rsi
mov rdx, rbx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rdi
call fcn.1401af450
mov eax, dword [rsp + 0xe0]
test eax, eax
je 0x1401b2341
mov ecx, 1
mov r9, r13
mov r8, r14
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], eax
mov rcx, rsi
mov rdx, rbx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rdi
call fcn.1401af450
mov qword [rbx + 0x10], r15
mov rdx, rbx
mov rcx, rbp
call fcn.14014e550
mov rdx, r12
mov rcx, rbp
call fcn.1401434c0
xor r12d, r12d
mov rdi, qword [rdi + 0x18]
mov r13, qword [rsp + 0x70]
test rdi, rdi
jne 0x1401b21e0
mov rbx, qword [rsp + 0xa8]
mov r12, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xa0]
mov r13, qword [rsp + 0x90]
mov r15, qword [rsp + 0x88]
add rsp, 0xb0
pop r14
pop rsi
pop rbp
ret