Function at 0x180008c50
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x18003f3c0]
xor rax, rsp
mov qword [rbp + 0x4f], rax
cmp edx, 1
jne 0x180008f1f
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 [0x180040590], rax
call fcn.1800042e4
call fcn.1800067c4
mov dword [rbp - 0x49], 0xeecddbd6
mov dword [rbp - 0x45], 0x9690eee4
mov dword [rbp - 0x41], 0xe4ebe28b
mov word [rbp - 0x3d], 0x100
xor ecx, ecx
lea eax, [rcx - 0x63]
xor byte [rbp + rcx - 0x49], al
inc rcx
cmp rcx, 0xc
jb 0x180008cbb
mov byte [rbp - 0x3c], 0
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x19]
call fcn.180008fa0
nop
lea rdx, str.CreateTimerQueueTimer
lea rcx, [rbp + 0x27]
call fcn.180008fa0
nop
lea rcx, [rbp - 0x19]
cmp qword [rbp - 1], 0xf
cmova rcx, qword [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x180008d24
lea rcx, [rbp - 0x19]
cmp qword [rbp - 1], 0xf
cmova rcx, qword [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x180008d24
xor ebx, ebx
jmp 0x180008d3e
lea rdx, [rbp + 0x27]
cmp qword [rbp + 0x3f], 0xf
cmova rdx, qword [rbp + 0x27]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov dword [rbp - 0x49], 0xeecddbd6
mov dword [rbp - 0x45], 0x9690eee4
mov dword [rbp - 0x41], 0xe4ebe28b
mov word [rbp - 0x3d], 0x100
xor ecx, ecx
lea eax, [rcx - 0x63]
xor byte [rbp + rcx - 0x49], al
inc rcx
cmp rcx, 0xc
jb 0x180008d5b
mov byte [rbp - 0x3c], 0
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x39]
call fcn.180008fa0
nop
lea rdx, str.CreateTimerQueue
lea rcx, [rbp + 7]
call fcn.180008fa0
nop
lea rcx, [rbp - 0x39]
cmp qword [rbp - 0x21], 0xf
cmova rcx, qword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x180008dc0
lea rcx, [rbp - 0x39]
cmp qword [rbp - 0x21], 0xf
cmova rcx, qword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x180008dd7
lea rdx, [rbp + 7]
cmp qword [rbp + 0x1f], 0xf
cmova 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, [0x180006598]
mov rdx, rax
lea rcx, [rbp + 0x47]
call rbx
nop
mov ebx, 0x1000
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0xf
jbe 0x180008e3e
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, rbx
jb 0x180008e39
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180008e39
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180031d3c
movdqa xmm0, xmmword [0x18003a5b0]
movdqu xmmword [rbp + 0x17], xmm0
mov byte [rbp + 7], 0
mov rdx, qword [rbp - 0x21]
cmp rdx, 0xf
jbe 0x180008e89
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, rbx
jb 0x180008e84
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180008e84
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180031d3c
movdqa xmm0, xmmword [0x18003a5b0]
movdqu xmmword [rbp - 0x29], xmm0
mov byte [rbp - 0x39], 0
mov rdx, qword [rbp + 0x3f]
cmp rdx, 0xf
jbe 0x180008ed4
inc rdx
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, rbx
jb 0x180008ecf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180008ecf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180031d3c
movdqa xmm0, xmmword [0x18003a5b0]
movdqu xmmword [rbp + 0x37], xmm0
mov byte [rbp + 0x27], 0
mov rdx, qword [rbp - 1]
cmp rdx, 0xf
jbe 0x180008f1f
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, rbx
jb 0x180008f1a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180008f1a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180031d3c
mov eax, 1
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.180031ce0
mov rbx, qword [rsp + 0xf8]
add rsp, 0xe0
pop rbp
ret