Function at 0x1800640d0
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 r13
sub rsp, 0xb0
mov rbp, qword [rcx]
mov r13, rdx
movzx r11d, byte [rcx + 0x1e2]
mov rsi, rcx
test dword [rbp + 0x18], 0x4000000
je 0x1800645e4
mov r10, qword [rdx + 0x78]
mov qword [rax - 0x28], rdi
mov qword [rax - 0x30], r12
mov r12d, 0xfff0bdc0
mov qword [rax - 0x38], r14
xor r14d, r14d
mov qword [rax - 0x40], r15
test r10, r10
je 0x180064157
movsxd rax, dword [rbp + 8]
mov r12d, r14d
test eax, eax
jle 0x180064157
mov rdx, rax
mov ecx, r14d
mov rax, qword [rbp + 0x10]
add rax, 0x18
cmp qword [rax], r10
je 0x180064157
inc r12d
inc rcx
add rax, 0x20
cmp rcx, rdx
jl 0x180064143
mov rax, qword [rbp + 0x10]
mov r15, r11
mov rdi, qword [r13 + 0x38]
movsxd rcx, r12d
shl rcx, 5
mov qword [rsp + 0xa8], rbx
mov qword [rsp + 0x70], r11
mov rax, qword [rcx + rax]
mov qword [rsp + 0x78], rax
test rdi, rdi
je 0x18006438d
nop dword [rax + rax]
cmp byte [rsi + 0x1e2], 0
mov ebx, r14d
mov dword [rsp + 0xd0], ebx
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x60], r14
je 0x1800641be
mov rdx, qword [rdi + 0x10]
mov r8, rax
mov rcx, rbp
call fcn.1800630c0
jmp 0x1800641cf
mov r8, qword [rdi + 0x10]
mov r9, rax
xor edx, edx
mov rcx, rsi
call fcn.18006a7d0
mov r14, rax
test rax, rax
je 0x18006435a
lea rax, [rsp + 0x60]
mov r8, rdi
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov rdx, r14
mov rcx, rsi
call fcn.1800452e0
test eax, eax
jne 0x18006435a
mov rax, qword [rsp + 0x60]
test rax, rax
jne 0x180064216
mov eax, dword [rdi + 0x40]
mov dword [rsp + 0x50], eax
lea rax, [rsp + 0x50]
mov r13, qword [rsp + 0x68]
xor r15d, r15d
mov qword [rsp + 0x58], rax
cmp dword [rdi + 0x28], r15d
jle 0x1800642b8
mov rcx, rax
mov rbx, rax
neg rcx
mov qword [rsp + 0x68], rcx
nop dword [rax + rax]
mov rax, qword [rsp + 0xd8]
mov eax, dword [rax + 8]
cmp dword [rbx], eax
jne 0x180064255
mov dword [rbx], 0xffffffff
cmp qword [rbp + 0x188], 0
je 0x1800642a4
test r13, r13
je 0x18006426d
add rcx, qword [r13 + 0x10]
mov eax, dword [rcx + rbx]
jmp 0x180064271
mov eax, dword [r14 + 8]
mov rdx, qword [r14]
mov r9d, r12d
cdqe
mov rcx, rsi
lea r8, [rax + rax*2]
mov rax, qword [r14 + 0x10]
add r8, r8
mov r8, qword [rax + r8*8]
call fcn.1800546e0
xor ecx, ecx
cmp eax, 2
sete cl
mov dword [rsp + 0xd0], ecx
mov rcx, qword [rsp + 0x68]
inc r15d
add rbx, 4
cmp r15d, dword [rdi + 0x28]
jl 0x180064240
mov ebx, dword [rsp + 0xd0]
mov rax, qword [r14]
xor r9d, r9d
mov r8d, dword [r14 + 0x20]
mov edx, r12d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.180077660
inc dword [rsi + 0x54]
mov eax, dword [rsp + 0xe0]
mov r15, qword [rsp + 0x58]
test eax, eax
je 0x180064310
mov dword [rsp + 0x40], ebx
mov r9, r13
mov dword [rsp + 0x38], 0xffffffff
mov r8, r14
mov dword [rsp + 0x30], eax
mov edx, r12d
mov qword [rsp + 0x28], r15
mov rcx, rsi
mov qword [rsp + 0x20], rdi
call fcn.18003fb50
mov eax, dword [rsp + 0xe8]
test eax, eax
je 0x180064346
mov dword [rsp + 0x40], ebx
mov r9, r13
mov dword [rsp + 0x38], 1
mov r8, r14
mov dword [rsp + 0x30], eax
mov edx, r12d
mov qword [rsp + 0x28], r15
mov rcx, rsi
mov qword [rsp + 0x20], rdi
call fcn.18003fb50
mov rdx, qword [rsp + 0x60]
mov rcx, rbp
call fcn.18005c7d0
mov r15, qword [rsp + 0x70]
jmp 0x18006436d
test r15, r15
je 0x1800645bc
cmp byte [rbp + 0x2a], 0
jne 0x1800645bc
mov rdi, qword [rdi + 8]
mov r14d, 0
mov rax, qword [rsp + 0x78]
test rdi, rdi
jne 0x180064190
mov r13, qword [rsp + 0xd8]
mov r11, qword [r13]
mov r8, r11
test r11, r11
jne 0x18006439e
mov r8d, r14d
jmp 0x1800643b7
cmp byte [r11], 0
je 0x1800643ad
inc r8
cmp byte [r8], 0
jne 0x1800643a4
sub r8d, r11d
and r8d, 0x3fffffff
mov rbx, qword [r13 + 0x78]
cmp qword [rbx + 0x60], 0
je 0x180064406
mov r9d, r8d
mov r10, r11
mov eax, r14d
test r8d, r8d
je 0x1800643ff
lea rdi, [0x1800ca130]
nop word [rax + rax]
movzx ecx, byte [r10]
lea r10, [r10 + 1]
dec r9d
movzx edx, byte [rcx + rdi]
lea ecx, [rax*8]
xor edx, ecx
xor eax, edx
test r9d, r9d
jg 0x1800643e0
xor edx, edx
div dword [rbx + 0x50]
jmp 0x180064409
mov edx, r14d
mov r9d, edx
lea rcx, [rbx + 0x50]
mov rdx, r11
call fcn.18003ea00
test rax, rax
je 0x1800645bc
mov rbx, qword [rax + 0x10]
test rbx, rbx
je 0x1800645bc
nop
cmp byte [rbx + 0x2c], 0
mov qword [rsp + 0x68], r14
mov qword [rsp + 0xd0], r14
jne 0x18006445a
cmp qword [rsi + 0x1c8], 0
jne 0x18006445a
cmp byte [rsi + 0x168], 0
je 0x1800645aa
lea rax, [rsp + 0xd0]
mov r8, rbx
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov rdx, r13
mov rcx, rsi
call fcn.1800452e0
test eax, eax
je 0x180064496
test r15, r15
je 0x1800645bc
cmp byte [rbp + 0x2a], 0
jne 0x1800645bc
jmp 0x1800645aa
mov edx, 0x60
mov rcx, rbp
call fcn.18005c880
mov r14, qword [rsp + 0xd0]
mov rdi, rax
test rax, rax
je 0x18006459c
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x60]
call fcn.18009c1f0
mov eax, 1
mov rdx, rdi
mov word [rdi + 2], ax
mov r8d, eax
movsx r9d, word [rdi]
mov rcx, rbp
call fcn.180076900
cmp byte [rbp + 0x2a], 0
mov rdi, rax
jne 0x180064591
movsx eax, word [rax]
xor r12d, r12d
mov r15, qword [rsp + 0x68]
dec eax
cdqe
imul rcx, rax, 0x58
mov qword [rcx + rdi + 0x10], r12
mov qword [rcx + rdi + 8], r12
mov rdx, qword [rbx]
mov qword [rdi + 0x20], rdx
mov rax, qword [rbx]
mov rcx, qword [rax]
mov qword [rdi + 0x10], rcx
inc word [rdx + 0x30]
mov eax, dword [rsi + 0x54]
mov dword [rdi + 0x34], eax
inc dword [rsi + 0x54]
mov eax, dword [rsp + 0xe8]
test eax, eax
je 0x18006455a
mov dword [rsp + 0x38], 0xffffffff
mov r9, r15
mov dword [rsp + 0x30], eax
mov r8, r13
mov qword [rsp + 0x28], r14
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call fcn.180040550
mov eax, dword [rsp + 0xe0]
test eax, eax
je 0x18006458d
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], r14
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call fcn.180040550
mov qword [rdi + 0x10], r12
mov rdx, rdi
mov rcx, rbp
call fcn.180076680
mov rdx, r14
mov rcx, rbp
call fcn.18005c7d0
xor r14d, r14d
mov rbx, qword [rbx + 0x18]
mov r15, qword [rsp + 0x70]
test rbx, rbx
jne 0x180064430
mov rbx, qword [rsp + 0xa8]
mov r12, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xa0]
mov r14, qword [rsp + 0x90]
mov r15, qword [rsp + 0x88]
add rsp, 0xb0
pop r13
pop rsi
pop rbp
ret