Function at 0x140179f30
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x8d8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x850], 0xfffffffffffffffe
mov rsi, rcx
movsxd rcx, dword [0x14043d184]
cmp byte [rsi + 8], 0
mov eax, dword [0x14043d190]
jne 0x14017a419
mov ebx, r8d
mov rdi, rdx
lea rdx, [0x14043d184]
mov r8, rdx
not r8
mov r9, rcx
xor r9, r8
xor r8, rdx
and r8, rcx
xor r8, rdx
and r9, rcx
add r9, r9
mov rcx, r8
xor rcx, r9
and r9, r8
lea rcx, [rcx + r9*2]
mov r14d, dword [0x14051be90]
lea r15d, [r14 + 1]
mov edx, dword [0x140575c34]
cmp edx, 0x3d
jg 0x140179fc6
mov edx, dword [0x140575c34]
cmp edx, 0x36
jle 0x140179fdc
mov edx, dword [0x140575c30]
lea r8d, [rdx + 1]
imul r8d, edx
test r8b, 1
jne 0x140179fb0
jmp 0x140179fbb
mov dword [0x14051be90], r15d
xor r12d, r12d
test r14d, r15d
jne 0x14017a071
mov edx, dword [0x140575c34]
mov edx, dword [0x14051cc90]
mov r8d, edx
xor r8d, 0xbbfd0b3b
and edx, 0x3bfd0b3b
lea edx, [r8 + rdx*2]
cmp edx, eax
jge 0x14017a071
xor r9d, r9d
mov edx, 0xbbfd0b3f
xor r8d, r8d
nop
movsxd r9, r9d
mov r10d, dword [rcx + r9]
not r8d
mov r12d, r10d
xor r12d, r8d
and r12d, r10d
or r12d, r8d
and r8d, r10d
not r12d
or r12d, r8d
mov r8d, dword [0x14051cc90]
add r8d, edx
xor r8d, r9d
mov r10d, r9d
xor r10d, 0x7ffffffb
and r10d, r9d
add r10d, r10d
mov r9d, r8d
xor r9d, r10d
and r10d, r8d
lea r9d, [r9 + r10*2]
mov r8d, r12d
cmp r9d, eax
jl 0x14017a020
cmp qword [0x140578588], 0
jne 0x14017a0ad
mov ecx, 0x900
mov edx, 0x12292921
mov r8d, 0x59beceef
call fcn.1400aaae0
mov qword [rbp + 0x848], rax
mov rcx, rax
call fcn.140086110
mov rax, qword [rbp + 0x848]
mov qword [0x140578588], rax
mov r13, qword [0x140578588]
mov rax, qword [r13 + 0x708]
mov rcx, rdi
call qword [case.0x14013cbc3.0]
mov ecx, 0xbbfd0b3a
add ecx, dword [0x14051cc90]
cmp eax, ecx
jne 0x14017a419
mov qword [rbp + 0x800], 0
mov rax, qword [r13 + 0x718]
mov edx, 0xbbfd133b
add edx, dword [0x14051cc90]
lea r8, [rbp - 0x40]
lea r9, [rbp + 0x800]
mov rcx, rdi
call qword [case.0x14013cbc3.0]
mov ecx, dword [0x140575c34]
cmp ecx, 0x39
jl 0x14017a115
jmp 0x14017a146
mov ecx, dword [0x14043d194]
lea rdx, [fcn.140179f30]
add edx, edx
add edx, 0xaa0
mov r8d, edx
not r8d
mov r9d, edx
and r9d, r8d
and r8d, 0xfffffffe
or r8d, r9d
xor r8d, edx
cmp r8d, 0xfffffffe
je 0x14017a14e
mov ecx, dword [0x14043d194]
jmp 0x14017a115
and r14d, r15d
xor edx, edx
cmp r14d, 1
sbb edx, edx
sub ecx, r12d
xor ecx, edx
not ecx
and ecx, edx
mov rdx, qword [0x140575ac8]
mov r8, rdx
xor r8, rcx
and edx, ecx
lea rcx, [r8 + rdx*2]
mov qword [0x140575ac8], rcx
test eax, eax
je 0x14017a419
mov qword [rbp + 0x808], 0
mov dword [rsp + 0x38], 0xe88265de
mov dword [rsp + 0x30], 0x2bbb3fff
mov dword [rsp + 0x28], 0xa893410f
mov qword [rsp + 0x20], 0x10
lea rcx, [rbp + 0x808]
lea rdi, [rbp + 0x7c0]
lea r9, [rbp - 0x40]
mov r8d, 0x10
mov rdx, rdi
call fcn.140184b60
mov qword [rbp + 0x828], 0
mov qword [rbp + 0x830], 0xf
mov byte [rbp + 0x818], 0
lea rax, [0x1404388f8]
mov qword [rbp + 0x810], rax
lea rcx, [rbp + 0x810]
mov r8d, 2
mov rdx, rdi
call fcn.1402738c0
mov edx, dword [rbp + 0x828]
test edx, edx
je 0x14017a237
cmp qword [rbp + 0x830], 0x10
lea rcx, [rbp + 0x818]
jb 0x14017a232
mov rcx, qword [rbp + 0x818]
call fcn.140086090
lea rdi, [rsi + 0x90]
lea rdx, [rbp + 0x810]
mov rcx, rdi
call fcn.14011eaa0
cmp rax, qword [rdi]
jne 0x14017a3d1
lea rcx, [rbp + 0x7d8]
lea rdx, [rbp - 0x40]
call fcn.140273690
movabs rax, 0x492492492492492
test bl, bl
je 0x14017a2bd
cmp qword [rsi + 0x28], rax
je 0x14017a433
mov rax, qword [rsi + 0x20]
mov rbx, qword [rax]
mov qword [rbp + 0x840], 0
mov ecx, 0x38
call fcn.1403f542c
mov rdi, rax
mov rcx, rax
add rcx, 0x10
mov qword [rbp + 0x840], rax
lea rdx, [rbp + 0x7d8]
call fcn.140272c70
inc qword [rsi + 0x28]
jmp 0x14017a304
cmp qword [rsi + 0x48], rax
je 0x14017a44d
mov rax, qword [rsi + 0x40]
mov rbx, qword [rax]
mov qword [rbp + 0x838], 0
mov ecx, 0x38
call fcn.1403f542c
mov rdi, rax
mov rcx, rax
add rcx, 0x10
mov qword [rbp + 0x838], rax
lea rdx, [rbp + 0x7d8]
call fcn.140272c70
inc qword [rsi + 0x48]
mov rax, qword [rbx + 8]
mov qword [rdi], rbx
mov qword [rdi + 8], rax
mov qword [rbx + 8], rdi
mov qword [rax], rdi
mov rax, qword [rbp + 0x7f8]
cmp rax, 8
jb 0x14017a3d1
mov rcx, qword [rbp + 0x7e0]
mov rdx, qword [0x14051cc98]
movabs r8, 0x727c9acb716b5e2b
mov r9, rdx
xor r9, r8
and r8, rdx
lea r8, [r9 + r8*2]
sub r8, rdx
lea r8, [r8 + rax*2]
movabs rdx, 0x8d8365348e94a1d7
add rdx, r8
cmp rdx, 0x1000
jb 0x14017a3cc
mov r8, qword [rcx - 8]
mov rdx, qword [0x14051cc98]
movabs r9, 0x727c9acb716b5e21
mov r10, rdx
xor r10, r9
and rdx, r9
lea rdx, [r10 + rdx*2]
movabs r9, 0xb96dab5a48bb21d5
add r9, rcx
add r9, rdx
movabs rcx, 0x469254a5b744de2b
mov rdx, r9
xor rdx, rcx
and r9, rcx
lea rcx, [rdx + r9*2]
sub rcx, r8
cmp rcx, 0x20
jae 0x14017a467
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.1400a87c0
mov rax, qword [rbp + 0x830]
cmp rax, 0x10
jb 0x14017a419
mov rcx, qword [rbp + 0x818]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x14017a414
mov r8, qword [0x140575ac8]
add r8, qword [rcx - 8]
sub rcx, r8
add rcx, 0xfffffffffffffff8
cmp rcx, 0x20
jae 0x14017a42e
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.1400a87c0
nop
add rsp, 0x8d8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call fcn.1403d599c
xor ecx, ecx
mov edx, 1
mov r8d, 0xc9281653
call fcn.140181af0
mov rcx, rax
call fcn.1403f70e4
xor ecx, ecx
mov edx, 1
mov r8d, 0xc9281653
call fcn.140181af0
mov rcx, rax
call fcn.1403f70e4
call fcn.1403d599c
int3