Function at 0x180077100
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 rsi, rcx
mov r13, r9
mov qword [rsp + 0x28], rax
mov rax, qword [rcx + 0x180]
mov rbx, r8
mov qword [rsp + 0x20], rax
mov rax, qword [rcx + 0x38]
mov rdi, rdx
lea rcx, [r9 + rax]
movabs rax, 0xfffffffe0
cmp rcx, rax
ja 0x1800774a8
cmp rcx, r9
jb 0x1800774a8
cmp dword [rsi + 0x174], 0
mov qword [rsp + 0x40], r15
mov qword [rsi + 0x38], rcx
je 0x180077184
lea rdx, [rsi + 0x60]
lea rcx, [rsi + 0x40]
call fcn.1800769e0
mov dword [rsi + 0x174], 0
movzx eax, byte [rsi + 0xd]
mov edx, dword [rsi + 0x170]
movzx r15d, byte [rsi + 0xc]
shl r15d, 8
mov dword [rsp + 0x80], edx
or r15d, eax
movzx eax, byte [rsi + 0xe]
shl r15d, 8
or r15d, eax
movzx eax, byte [rsi + 0xf]
shl r15d, 8
or r15d, eax
test edx, edx
je 0x180077204
nop dword [rax + rax]
test r13, r13
je 0x1800771ef
mov ecx, edx
inc rbx
inc rdi
movzx eax, byte [rcx + rsi + 0x10]
dec r13
xor al, byte [rdi - 1]
mov byte [rbx - 1], al
xor byte [rcx + rsi + 0x40], al
inc edx
and edx, 0xf
mov dword [rsp + 0x80], edx
jne 0x1800771c0
jmp 0x1800771f7
test edx, edx
jne 0x180077471
lea rdx, [rsi + 0x60]
lea rcx, [rsi + 0x40]
call fcn.1800769e0
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r14
cmp r13, 0xc00
jb 0x18007730f
movabs rax, 0xaaaaaaaaaaaaaaab
mul r13
mov r14, rdx
shr r14, 0xb
mov rax, r14
mov qword [rsp + 0x30], r14
imul rax, rax, 0xfffffffffffff400
add r13, rax
mov qword [rsp + 0x98], r13
nop word [rax + rax]
mov r13, qword [rsp + 0x28]
mov r14, qword [rsp + 0x20]
mov r12d, 0xc0
lea rdx, [rsi + 0x10]
mov r8, r14
mov rcx, rsi
call r13
inc r15d
mov r8, rdi
mov eax, r15d
xor ecx, ecx
mov byte [rsi + 0xf], r15b
shr eax, 0x18
mov rdx, rbx
mov byte [rsi + 0xc], al
mov eax, r15d
shr eax, 0x10
mov byte [rsi + 0xd], al
mov eax, r15d
shr eax, 8
sub r8, rbx
mov byte [rsi + 0xe], al
nop word [rax + rax]
mov rax, qword [r8 + rdx]
add rcx, 8
add rdx, 8
xor rax, qword [rcx + rsi + 8]
mov qword [rdx - 8], rax
cmp rcx, 0x10
jb 0x1800772b0
add rbx, 0x10
add rdi, 0x10
sub r12, 1
jne 0x180077270
lea r8, [rbx - 0xc00]
lea rdx, [rsi + 0x60]
lea rcx, [rsi + 0x40]
mov r9d, 0xc00
call fcn.180076b20
mov r14, qword [rsp + 0x30]
sub r14, 1
mov qword [rsp + 0x30], r14
jne 0x180077260
mov r13, qword [rsp + 0x98]
mov r14, r13
and r14, 0xfffffffffffffff0
mov qword [rsp + 0x30], r14
je 0x1800773dc
cmp r13, 0x10
jb 0x1800773c6
mov r14, 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, [rsi + 0x10]
mov r8, r13
mov rcx, rsi
call r14
inc r15d
mov r8, rdi
mov eax, r15d
xor ecx, ecx
mov byte [rsi + 0xf], r15b
shr eax, 0x18
mov rdx, rbx
mov byte [rsi + 0xc], al
mov eax, r15d
shr eax, 0x10
mov byte [rsi + 0xd], al
mov eax, r15d
shr eax, 8
sub r8, rbx
mov byte [rsi + 0xe], al
nop word [rax + rax]
mov rax, qword [rdx + r8]
add rcx, 8
add rdx, 8
xor rax, qword [rcx + rsi + 8]
mov qword [rdx - 8], rax
cmp rcx, 0x10
jb 0x180077390
add rbx, 0x10
add rdi, 0x10
sub r12, 1
jne 0x180077350
mov r13, qword [rsp + 0x98]
mov r14, qword [rsp + 0x30]
mov r8, rbx
lea rdx, [rsi + 0x60]
lea rcx, [rsi + 0x40]
sub r8, r14
mov r9, r14
call fcn.180076b20
mov r14, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x88]
test r13, r13
je 0x180077488
mov r8, qword [rsp + 0x20]
lea rdx, [rsi + 0x10]
mov rcx, rsi
call qword [rsp + 0x28]
movsxd r8, dword [rsp + 0x80]
inc r15d
mov eax, r15d
sub rdi, rbx
lea rcx, [r8 + rsi + 0x40]
shr eax, 0x18
lea rdx, [r8 + rbx]
mov byte [rsi + 0xf], r15b
mov byte [rsi + 0xc], al
mov eax, r15d
shr eax, 0x10
mov byte [rsi + 0xd], al
mov eax, r15d
shr eax, 8
add r8d, r13d
mov byte [rsi + 0xe], al
movzx eax, byte [rdx + rdi]
inc rcx
inc rdx
xor al, byte [rcx - 0x31]
mov byte [rdx - 1], al
xor byte [rcx - 1], al
sub r13, 1
jne 0x180077440
mov r15, qword [rsp + 0x40]
mov dword [rsi + 0x170], r8d
xor eax, eax
add rsp, 0x58
pop r13
pop rdi
pop rsi
pop rbx
ret
mov r15, qword [rsp + 0x40]
mov dword [rsi + 0x170], edx
xor eax, eax
add rsp, 0x58
pop r13
pop rdi
pop rsi
pop rbx
ret
mov r8d, dword [rsp + 0x80]
mov r15, qword [rsp + 0x40]
xor eax, eax
mov dword [rsi + 0x170], r8d
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