Function at 0x180079a90
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push r12
push r13
push r14
sub rsp, 0xc8
mov rax, qword [0x1800f3188]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x120]
mov ebx, r9d
mov r12, qword [rsp + 0x148]
mov r14, r8
mov esi, dword [rsp + 0x138]
mov qword [rsp + 0x48], rcx
mov ecx, dword [rsp + 0x128]
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x50], rax
mov r13d, edx
mov qword [rsp + 0x40], 0
call fcn.180051a70
mov ebp, eax
test eax, eax
js 0x180079dec
cmp r13d, eax
je 0x180079b0f
mov eax, 0xffffff53
jmp 0x180079dec
mov ecx, dword [rsp + 0x140]
lea eax, [rcx - 1]
and eax, 7
mov dword [rsp + 0x34], eax
jne 0x180079b2f
mov byte [r14], 0
inc r14
dec ebx
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0xb8], r15
cmp esi, 0xffffffff
jne 0x180079b50
mov esi, ebp
cmp ecx, 0x400
jne 0x180079b61
cmp ebp, 0x40
jne 0x180079b61
lea esi, [rbp - 2]
jmp 0x180079b61
cmp esi, ebp
jg 0x180079ddf
cmp esi, 0xffffffff
jl 0x180079ddf
mov r15d, ebx
lea eax, [rsi + 2]
sub r15d, ebp
cmp r15d, eax
jl 0x180079ddf
lea eax, [r13 + 8]
dec r15d
add eax, esi
cmp ebx, eax
jae 0x180079b9b
mov ecx, eax
call fcn.18004b0c0
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x180079b9e
mov eax, 0xffffff83
jmp 0x180079de4
mov rax, r14
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
mov qword [rax], rcx
mov r8, r13
mov qword [rsp + 0xc0], rdi
lea rdi, [rax + 8]
mov rcx, rdi
mov qword [rsp + 0x38], rax
call fcn.1800a2a90
add r13, rdi
test esi, esi
jle 0x180079bfd
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov r8d, esi
call fcn.180078fd0
mov ebx, eax
test eax, eax
jne 0x180079dc1
movsxd rbx, esi
lea rdx, [rsp + 0x60]
mov r8, rbx
mov rcx, r13
call fcn.1800a2a90
add r13d, ebx
mov rdx, qword [rsp + 0x38]
mov ecx, dword [rsp + 0x128]
sub r13d, edx
movsxd rdi, r15d
mov r8d, r13d
mov dword [rsp + 0x20], ebp
lea r9, [rdi + r14]
call fcn.1800514c0
mov ebx, eax
test eax, eax
jne 0x180079dc1
mov eax, dword [rsp + 0x30]
lea rdx, [rdi + r14]
mov ecx, dword [rsp + 0x130]
dec eax
mov byte [rax + r14], 0xbc
sub ecx, 1
je 0x180079c72
sub ecx, 1
je 0x180079c6b
sub ecx, 1
je 0x180079c64
cmp ecx, 0x17
je 0x180079c5d
mov ebx, 0xffffff53
jmp 0x180079dc1
mov ecx, 4
jmp 0x180079c77
mov ecx, 8
jmp 0x180079c77
mov ecx, 7
jmp 0x180079c77
mov ecx, 6
mov r9, r14
mov qword [rsp + 0x28], r12
mov r8d, ebp
mov dword [rsp + 0x20], r15d
call fcn.180079580
mov ebx, eax
test eax, eax
jne 0x180079dc1
mov ecx, dword [rsp + 0x34]
test ecx, ecx
je 0x180079caa
mov eax, 1
shl al, cl
dec al
and byte [r14], al
movsxd rdx, esi
xor r11d, r11d
sub rdi, rdx
xor byte [rdi + r14 - 1], 1
lea r8, [rdi + r14]
test esi, esi
jle 0x180079d94
cmp esi, 0x40
jb 0x180079d94
lea eax, [rsi - 1]
movsxd rcx, eax
lea rax, [rsp + 0x60]
add rax, rcx
lea r9, [r8 + rcx]
cmp r8, rax
ja 0x180079cf3
lea rax, [rsp + 0x60]
cmp r9, rax
jae 0x180079d94
mov eax, esi
and eax, 0x8000003f
jge 0x180079d03
dec eax
or eax, 0xffffffc0
inc eax
sub esi, eax
lea r9, [rsp + 0x60]
lea r10, [rsp + 0x70]
movsxd rsi, esi
sub r9, r8
lea rcx, [r8 + 0x20]
sub r10, r8
mov rdi, 0xffffffffffffffe0
sub rdi, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rcx - 0x20]
add r11d, 0x40
movdqu xmm1, xmmword [rcx + r9 - 0x20]
movdqu xmm2, xmmword [rcx + r9]
lea rcx, [rcx + 0x40]
pxor xmm1, xmm0
lea rax, [rcx + rdi]
movdqu xmmword [rcx - 0x60], xmm1
movdqu xmm0, xmmword [rcx - 0x50]
movdqu xmm1, xmmword [rcx + r10 - 0x60]
pxor xmm1, xmm0
movdqu xmmword [rcx - 0x50], xmm1
movdqu xmm0, xmmword [rcx - 0x40]
movdqu xmm1, xmmword [rcx + r10 - 0x40]
pxor xmm2, xmm0
movdqu xmmword [rcx - 0x40], xmm2
movdqu xmm0, xmmword [rcx - 0x30]
pxor xmm1, xmm0
movdqu xmmword [rcx - 0x30], xmm1
cmp rax, rsi
jl 0x180079d30
movsxd rcx, r11d
cmp rcx, rdx
jge 0x180079dc1
lea r9, [rsp + 0x60]
sub r9, r8
lea rax, [rcx + r8]
sub rdx, rcx
nop dword [rax + rax]
movzx ecx, byte [rax + r9]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x180079db0
mov rax, qword [rsp + 0x40]
mov rdi, qword [rsp + 0xc0]
test rax, rax
je 0x180079ddb
mov rcx, rax
call fcn.18004b0a0
mov eax, ebx
jmp 0x180079de4
mov eax, 0xffffff06
mov r15, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1800a1bf0
add rsp, 0xc8
pop r14
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret