Function at 0x180008cfc
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x18003e3b0]
xor rax, rsp
mov qword [rbp + 0x4f], rax
cmp edx, 1
jne 0x180008fcb
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [0x18003f560], rax
call fcn.1800042f8
call fcn.180006868
mov dword [rbp - 0x49], 0x72697f72
mov dword [rbp - 0x45], 0x720c7278
mov dword [rbp - 0x41], 0x80f066f
mov word [rbp - 0x3d], 0x100
xor ecx, ecx
lea eax, [rcx + 0x39]
xor byte [rbp + rcx - 0x49], al
inc rcx
cmp rcx, 0xc
jb 0x180008d67
mov byte [rbp - 0x3c], 0
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x19]
call fcn.18000904c
nop
lea rdx, str.CreateTimerQueueTimer
lea rcx, [rbp + 0x27]
call fcn.18000904c
nop
lea rcx, [rbp - 0x19]
cmp qword [rbp - 1], 0x10
cmovae rcx, qword [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x180008dd0
lea rcx, [rbp - 0x19]
cmp qword [rbp - 1], 0x10
cmovae rcx, qword [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x180008dd0
xor ebx, ebx
jmp 0x180008dea
lea rdx, [rbp + 0x27]
cmp qword [rbp + 0x3f], 0x10
cmovae rdx, qword [rbp + 0x27]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov dword [rbp - 0x49], 0x72697f72
mov dword [rbp - 0x45], 0x720c7278
mov dword [rbp - 0x41], 0x80f066f
mov word [rbp - 0x3d], 0x100
xor ecx, ecx
lea eax, [rcx + 0x39]
xor byte [rbp + rcx - 0x49], al
inc rcx
cmp rcx, 0xc
jb 0x180008e07
mov byte [rbp - 0x3c], 0
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x39]
call fcn.18000904c
nop
lea rdx, str.CreateTimerQueue
lea rcx, [rbp + 7]
call fcn.18000904c
nop
lea rcx, [rbp - 0x39]
cmp qword [rbp - 0x21], 0x10
cmovae rcx, qword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x180008e6c
lea rcx, [rbp - 0x39]
cmp qword [rbp - 0x21], 0x10
cmovae rcx, qword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x180008e83
lea rdx, [rbp + 7]
cmp qword [rbp + 0x1f], 0x10
cmovae rdx, qword [rbp + 7]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
xor r9d, r9d
lea r8, [0x18000663c]
mov rdx, rax
lea rcx, [rbp + 0x47]
call rbx
nop
mov ebx, 0x1000
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0x10
jb 0x180008eea
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, rbx
jb 0x180008ee5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180008ee5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180031a5c
movdqa xmm0, xmmword [0x1800395a0]
movdqu xmmword [rbp + 0x17], xmm0
mov byte [rbp + 7], 0
mov rdx, qword [rbp - 0x21]
cmp rdx, 0x10
jb 0x180008f35
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, rbx
jb 0x180008f30
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180008f30
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180031a5c
movdqa xmm0, xmmword [0x1800395a0]
movdqu xmmword [rbp - 0x29], xmm0
mov byte [rbp - 0x39], 0
mov rdx, qword [rbp + 0x3f]
cmp rdx, 0x10
jb 0x180008f80
inc rdx
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, rbx
jb 0x180008f7b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180008f7b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180031a5c
movdqa xmm0, xmmword [0x1800395a0]
movdqu xmmword [rbp + 0x37], xmm0
mov byte [rbp + 0x27], 0
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x180008fcb
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, rbx
jb 0x180008fc6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180008fc6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180031a5c
mov eax, 1
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.180031a00
mov rbx, qword [rsp + 0xf8]
add rsp, 0xe0
pop rbp
ret