Function at 0x180009968
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.180016354
mov rdi, rax
test rax, rax
jne 0x18000999d
lea rbx, [rax - 2]
jmp 0x180009abf
mov r15d, dword [rbp + 0x48]
test r15d, r15d
je 0x1800099ce
mov rdx, rdi
mov r8d, r15d
mov rax, qword [0x180029fc0]
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 0x1800099ac
mov rax, qword [0x180029fc0]
cmp dword [rax + 0xa4], 1
jne 0x180009ad9
mov rcx, qword [0x18002aad8]
test rcx, rcx
je 0x180009abd
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 0x180009abd
lea rsi, [rax + 8]
xor ecx, ecx
mov dword [rsi], r15d
mov rdx, r15
mov rax, qword [0x180029f58]
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [rax + 0xb8]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x180009ab2
and dword [rbp + 0x48], 0
mov ecx, dword [rsi]
test rcx, rcx
je 0x180009a5a
mov al, byte [rdi]
inc rdi
mov byte [rdx], al
inc rdx
sub rcx, 1
jne 0x180009a4a
lea rax, [rbp + 0x48]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x1800098d4]
mov rax, qword [0x180029f58]
xor edx, edx
and dword [rsp + 0x20], 0
xor ecx, ecx
call qword [rax + 0xf0]
test rax, rax
jne 0x180009abd
mov rax, qword [0x180029f58]
mov r8d, 0x8000
mov edx, dword [rsi]
mov rcx, qword [rbx]
call qword [rax + 0xc0]
xor edx, edx
lea rcx, [rbp + 0x50]
call fcn.18000c7c0
mov ebx, 0xfffffffd
jmp 0x180009abf
xor edx, edx
lea rcx, [rbp + 0x50]
call fcn.18000c7c0
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.18000e5fc
mov qword [rbp + 0x58], rax
mov r14, rax
test rax, rax
jne 0x180009afa
lea ebx, [rax - 5]
jmp 0x180009abf
call fcn.18000e35c
mov esi, dword [rbp + 0x48]
xor ebx, ebx
mov rax, qword [0x18002aae8]
mov qword [rbp + 0x50], rax
test esi, esi
je 0x180009c38
test r12d, r12d
jne 0x180009c38
xor eax, eax
xorps xmm0, xmm0
mov qword [rbp - 0x10], rax
mov rax, qword [0x180029fc0]
movups xmmword [rbp - 0x20], xmm0
test dword [rax + 0x18c0], 0x200
je 0x180009b4a
mov ecx, 0x64a
call fcn.1800137b4
mov rcx, qword [r14 + rbx*8]
lea rdx, [rbp - 0x20]
call fcn.180011988
test eax, eax
js 0x180009bfe
mov rdx, qword [rbp - 0x20]
mov r9d, r15d
mov rcx, qword [rbp + 0x50]
mov r8, rdi
mov dword [rsp + 0x20], 4
call fcn.1800118c0
mov qword [0x18002aac8], rax
test rax, rax
jne 0x180009ba4
mov rax, qword [0x180029f58]
mov rcx, qword [rbp - 0x18]
call qword [rax + 0x68]
mov rax, qword [0x180029f58]
mov rcx, qword [rbp - 0x20]
call qword [rax + 0x68]
jmp 0x180009bfe
mov r8, qword [0x180029fc0]
lea rdx, [rbp - 0x20]
mov r9d, 1
mov dword [0x18002aabc], r15d
lea rcx, [0x1800097d0]
mov r8, qword [r8 + 0x238]
call fcn.18000e9d4
test rax, rax
je 0x180009b86
lea rcx, [rbp - 0x20]
call fcn.18000eb4c
test eax, eax
je 0x180009bfe
mov rcx, qword [rbp - 0x20]
call fcn.180007398
mov rax, qword [0x180029f58]
mov rcx, qword [rbp - 0x18]
call qword [rax + 0x68]
mov r12d, 1
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x180009c2e
test r12d, r12d
jne 0x180009c1b
mov rax, qword [0x180029f58]
xor edx, edx
call qword [rax + 0x228]
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x180009c2e
mov rax, qword [0x180029f58]
call qword [rax + 0x68]
inc ebx
cmp ebx, esi
jb 0x180009b17
call fcn.18000e3a8
test esi, esi
je 0x180009c60
mov rdi, rsi
mov rbx, 0xfffffffffffffffe
mov rdx, rbx
mov rcx, r14
call fcn.18000c7c0
add r14, 8
sub rdi, 1
jne 0x180009c4b
mov rdx, rsi
lea rcx, [rbp + 0x58]
shl rdx, 3
call fcn.18000c7c0
test r12d, r12d
jne 0x180009abd
lea ebx, [r12 - 0xa]
jmp 0x180009abf