Function at 0x180009acc
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
and dword [rbp + 0x48], 0
lea rdx, [rbp + 0x48]
call fcn.180016d1c
mov rdi, rax
test rax, rax
jne 0x180009b01
lea rbx, [rax - 2]
jmp 0x180009c23
mov r15d, dword [rbp + 0x48]
test r15d, r15d
je 0x180009b32
mov rdx, rdi
mov r8d, r15d
mov rax, qword [0x18002b140]
mov rcx, rdx
sub rcx, rdi
and ecx, 0x1f
mov cl, byte [rcx + rax + 0x1880]
xor byte [rdx], cl
inc rdx
sub r8, 1
jne 0x180009b10
mov rax, qword [0x18002b140]
cmp dword [rax + 0xa4], 1
jne 0x180009c3d
mov rcx, qword [0x18002bc58]
test rcx, rcx
je 0x180009c21
mov edx, 8
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 0x50], rax
mov rbx, rax
test rax, rax
je 0x180009c21
lea rsi, [rax + 8]
xor ecx, ecx
mov dword [rsi], r15d
mov rdx, r15
mov rax, qword [0x18002b0d8]
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [rax + 0xb8]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x180009c16
and dword [rbp + 0x48], 0
mov ecx, dword [rsi]
test rcx, rcx
je 0x180009bbe
mov al, byte [rdi]
inc rdi
mov byte [rdx], al
inc rdx
sub rcx, 1
jne 0x180009bae
lea rax, [rbp + 0x48]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x180009a38]
mov rax, qword [0x18002b0d8]
xor edx, edx
and dword [rsp + 0x20], 0
xor ecx, ecx
call qword [rax + 0xf0]
test rax, rax
jne 0x180009c21
mov rax, qword [0x18002b0d8]
mov r8d, 0x8000
mov edx, dword [rsi]
mov rcx, qword [rbx]
call qword [rax + 0xc0]
xor edx, edx
lea rcx, [rbp + 0x50]
call fcn.18000c864
mov ebx, 0xfffffffd
jmp 0x180009c23
xor edx, edx
lea rcx, [rbp + 0x50]
call fcn.18000c864
xor ebx, ebx
mov eax, ebx
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
and dword [rbp + 0x48], 0
lea rcx, [rbp + 0x48]
xor r12d, r12d
call fcn.18000e9c8
mov qword [rbp + 0x58], rax
mov r14, rax
test rax, rax
jne 0x180009c5e
lea ebx, [rax - 5]
jmp 0x180009c23
call fcn.18000e70c
mov esi, dword [rbp + 0x48]
xor ebx, ebx
mov rax, qword [0x18002c660]
mov qword [rbp + 0x50], rax
test esi, esi
je 0x180009d9c
test r12d, r12d
jne 0x180009d9c
xor eax, eax
xorps xmm0, xmm0
mov qword [rbp - 0x10], rax
mov rax, qword [0x18002b140]
movups xmmword [rbp - 0x20], xmm0
test dword [rax + 0x18c0], 0x200
je 0x180009cae
lea ecx, [r12 + 0x27]
call fcn.180014154
mov rcx, qword [r14 + rbx*8]
lea rdx, [rbp - 0x20]
call fcn.1800121ec
test eax, eax
js 0x180009d62
mov rdx, qword [rbp - 0x20]
mov r9d, r15d
mov rcx, qword [rbp + 0x50]
mov r8, rdi
mov dword [rsp + 0x20], 4
call fcn.180012124
mov qword [0x18002bc48], rax
test rax, rax
jne 0x180009d08
mov rax, qword [0x18002b0d8]
mov rcx, qword [rbp - 0x18]
call qword [rax + 0x68]
mov rax, qword [0x18002b0d8]
mov rcx, qword [rbp - 0x20]
call qword [rax + 0x68]
jmp 0x180009d62
mov r8, qword [0x18002b140]
lea rdx, [rbp - 0x20]
mov r9d, 1
mov dword [0x18002bc3c], r15d
lea rcx, [0x180009934]
mov r8, qword [r8 + 0x238]
call fcn.18000eda0
test rax, rax
je 0x180009cea
lea rcx, [rbp - 0x20]
call fcn.18000ef18
test eax, eax
je 0x180009d62
mov rcx, qword [rbp - 0x20]
call fcn.1800074fc
mov rax, qword [0x18002b0d8]
mov rcx, qword [rbp - 0x18]
call qword [rax + 0x68]
mov r12d, 1
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x180009d92
test r12d, r12d
jne 0x180009d7f
mov rax, qword [0x18002b0d8]
xor edx, edx
call qword [rax + 0x228]
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x180009d92
mov rax, qword [0x18002b0d8]
call qword [rax + 0x68]
inc ebx
cmp ebx, esi
jb 0x180009c7b
call fcn.18000e758
test esi, esi
je 0x180009dc4
mov rdi, rsi
mov rbx, 0xfffffffffffffffe
mov rdx, rbx
mov rcx, r14
call fcn.18000c864
add r14, 8
sub rdi, 1
jne 0x180009daf
mov rdx, rsi
lea rcx, [rbp + 0x58]
shl rdx, 3
call fcn.18000c864
test r12d, r12d
jne 0x180009c21
lea ebx, [r12 - 0xa]
jmp 0x180009c23