Function at 0x1800774c0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
push r13
mov eax, 0x58
call fcn.1800c7940
sub rsp, rax
mov rax, qword [rcx + 0x178]
mov rdi, rcx
mov r13, r9
mov qword [rsp + 0x28], rax
mov rax, qword [rcx + 0x180]
mov rsi, r8
mov qword [rsp + 0x20], rax
mov rax, qword [rcx + 0x38]
mov rbx, rdx
lea rcx, [r9 + rax]
movabs rax, 0xfffffffe0
cmp rcx, rax
ja 0x18007782a
cmp rcx, r9
jb 0x18007782a
cmp dword [rdi + 0x174], 0
mov qword [rsp + 0x48], r14
mov qword [rdi + 0x38], rcx
mov qword [rsp + 0x40], r15
je 0x180077549
lea rdx, [rdi + 0x60]
lea rcx, [rdi + 0x40]
call fcn.1800769e0
mov dword [rdi + 0x174], 0
movzx eax, byte [rdi + 0xd]
mov r15d, dword [rdi + 0x170]
movzx r14d, byte [rdi + 0xc]
shl r14d, 8
mov dword [rsp + 0x80], r15d
or r14d, eax
movzx eax, byte [rdi + 0xe]
shl r14d, 8
or r14d, eax
movzx eax, byte [rdi + 0xf]
shl r14d, 8
or r14d, eax
test r15d, r15d
je 0x1800775ce
test r13, r13
je 0x1800775b8
movzx edx, byte [rbx]
mov ecx, r15d
inc rsi
movzx eax, byte [rcx + rdi + 0x10]
inc rbx
dec r13
xor al, dl
mov byte [rsi - 1], al
xor byte [rcx + rdi + 0x40], dl
inc r15d
and r15d, 0xf
mov dword [rsp + 0x80], r15d
jne 0x180077583
jmp 0x1800775c1
test r15d, r15d
jne 0x18007780d
lea rdx, [rdi + 0x60]
lea rcx, [rdi + 0x40]
call fcn.1800769e0
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x50], r12
cmp r13, 0xc00
jb 0x1800776d5
movabs rax, 0xaaaaaaaaaaaaaaab
lea rcx, [rdi + 0x40]
mul r13
mov r15, rdx
shr r15, 0xb
mov rax, r15
mov qword [rsp + 0x30], r15
imul rax, rax, 0xfffffffffffff400
add r13, rax
mov qword [rsp + 0x98], r13
lea r13, [rdi + 0x60]
nop
mov r9d, 0xc00
mov r8, rbx
mov rdx, r13
call fcn.180076b20
mov r13, qword [rsp + 0x28]
mov r15, qword [rsp + 0x20]
mov r12d, 0xc0
lea rdx, [rdi + 0x10]
mov r8, r15
mov rcx, rdi
call r13
inc r14d
mov r8, rbx
mov eax, r14d
xor ecx, ecx
mov byte [rdi + 0xf], r14b
shr eax, 0x18
mov rdx, rsi
mov byte [rdi + 0xc], al
mov eax, r14d
shr eax, 0x10
mov byte [rdi + 0xd], al
mov eax, r14d
shr eax, 8
sub r8, rsi
mov byte [rdi + 0xe], al
nop dword [rax + rax]
mov rax, qword [r8 + rdx]
add rcx, 8
add rdx, 8
xor rax, qword [rcx + rdi + 8]
mov qword [rdx - 8], rax
cmp rcx, 0x10
jb 0x180077680
add rsi, 0x10
add rbx, 0x10
sub r12, 1
jne 0x180077641
mov r15, qword [rsp + 0x30]
lea r13, [rdi + 0x60]
lea rcx, [rdi + 0x40]
sub r15, 1
mov qword [rsp + 0x30], r15
jne 0x180077620
mov r13, qword [rsp + 0x98]
mov r15d, dword [rsp + 0x80]
mov r9, r13
and r9, 0xfffffffffffffff0
je 0x180077799
lea rdx, [rdi + 0x60]
lea rcx, [rdi + 0x40]
mov r8, rbx
call fcn.180076b20
cmp r13, 0x10
jb 0x180077799
mov r15, qword [rsp + 0x28]
mov r12, r13
shr r12, 4
mov rax, r12
imul rax, rax, 0xfffffffffffffff0
add r13, rax
mov qword [rsp + 0x98], r13
mov r13, qword [rsp + 0x20]
nop
lea rdx, [rdi + 0x10]
mov r8, r13
mov rcx, rdi
call r15
inc r14d
mov r9, rbx
mov eax, r14d
xor ecx, ecx
mov byte [rdi + 0xf], r14b
shr eax, 0x18
mov rdx, rsi
mov byte [rdi + 0xc], al
mov eax, r14d
shr eax, 0x10
mov byte [rdi + 0xd], al
mov eax, r14d
shr eax, 8
sub r9, rsi
mov byte [rdi + 0xe], al
nop word [rax + rax]
mov rax, qword [rdx + r9]
add rcx, 8
add rdx, 8
xor rax, qword [rcx + rdi + 8]
mov qword [rdx - 8], rax
cmp rcx, 0x10
jb 0x180077760
add rsi, 0x10
add rbx, 0x10
sub r12, 1
jne 0x180077720
mov r13, qword [rsp + 0x98]
mov r15d, dword [rsp + 0x80]
mov r12, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x88]
test r13, r13
je 0x18007780d
mov r8, qword [rsp + 0x20]
lea rdx, [rdi + 0x10]
mov rcx, rdi
call qword [rsp + 0x28]
inc r14d
sub rbx, rsi
mov eax, r14d
mov byte [rdi + 0xf], r14b
shr eax, 0x18
mov byte [rdi + 0xc], al
mov eax, r14d
shr eax, 0x10
mov byte [rdi + 0xd], al
mov eax, r14d
shr eax, 8
mov byte [rdi + 0xe], al
movsxd rax, r15d
add r15d, r13d
lea r8, [rax + rsi]
lea rdx, [rax + rdi + 0x40]
nop
movzx ecx, byte [r8 + rbx]
movzx eax, byte [rdx - 0x30]
inc r8
xor byte [rdx], cl
xor al, cl
inc rdx
sub r13, 1
mov byte [r8 - 1], al
jne 0x1800777f0
mov r14, qword [rsp + 0x48]
mov dword [rdi + 0x170], r15d
mov r15, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x58
pop r13
pop rdi
pop rsi
pop rbx
ret
or eax, 0xffffffff
add rsp, 0x58
pop r13
pop rdi
pop rsi
pop rbx
ret