Function at 0x180099a90
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0xd8
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov rax, qword [0x18020d020]
xor rax, rsp
mov qword [rbp - 1], rax
mov r15, r9
mov r13, r8
mov qword [rbp - 0x61], rdx
mov r14, rcx
test r8, r8
je 0x180099c39
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x39], xmm0
movdqa xmm1, xmmword [0x1801b2840]
movdqu xmmword [rbp - 0x39], xmm1
xor ebx, ebx
mov word [rbp - 0x49], bx
lea r8d, [rbx + 0xc]
lea rdx, str.Advapi32.dll
lea rcx, [rbp - 0x49]
call fcn.180003950
nop
call fcn.18009c2f0
mov rcx, rax
lea rdx, [rbp - 0x49]
call fcn.18009c390
mov rdi, rax
mov rdx, qword [rbp - 0x31]
cmp rdx, 8
jb 0x180099b59
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180099b54
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180099d6a
call fcn.18011e774
movdqa xmm0, xmmword [0x1801b2840]
movdqu xmmword [rbp - 0x39], xmm0
mov word [rbp - 0x49], bx
test rdi, rdi
je 0x180099c39
lea rdx, str.RegOpenKeyExW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp - 0x59], rax
lea rdx, str.RegSetKeySecurity
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp - 9], rax
lea rdx, str.RegCloseKey
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
lea rdx, str.RegQueryInfoKeyW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp - 0x51], rax
lea rdx, str.RegEnumKeyW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
mov rax, qword [rbp - 0x59]
test rax, rax
je 0x180099c39
mov rdi, qword [rbp - 9]
test rdi, rdi
je 0x180099c39
test rsi, rsi
je 0x180099c39
cmp qword [rbp - 0x51], 0
je 0x180099c39
test r12, r12
je 0x180099c39
mov qword [rbp - 0x21], rbx
mov r9d, dword [r14 + 0x30]
bts r9d, 0x12
lea rcx, [rbp - 0x21]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, r13
mov rcx, qword [rbp - 0x61]
call rax
test eax, eax
jne 0x180099c39
mov r8, r15
lea edx, [rax + 4]
mov rcx, qword [rbp - 0x21]
call rdi
test eax, eax
je 0x180099c5b
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x180099c39
call rsi
xor al, al
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.18011e330
add rsp, 0xd8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
cmp dword [rbp + 0x7f], 0
je 0x180099d58
mov rcx, qword [rbp - 0x21]
call rsi
mov qword [rbp - 0x21], rbx
mov r9d, dword [r14 + 0x30]
or r9d, 0x20019
lea rax, [rbp - 0x21]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, r13
mov rcx, qword [rbp - 0x61]
mov rax, qword [rbp - 0x59]
call rax
mov rcx, qword [rbp - 0x21]
test eax, eax
jne 0x180099c32
mov dword [rbp - 0x19], ebx
mov dword [rbp - 9], ebx
mov dword [rbp - 0xd], ebx
mov dword [rbp - 0x11], ebx
mov dword [rbp - 0x15], ebx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
lea rax, [rbp - 0x15]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x11]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0xd]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
lea rax, [rbp - 9]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [rbp - 0x51]
test eax, eax
jne 0x180099c2e
mov ecx, 0x20a
call fcn.18011e7c8
mov rdi, rax
cmp dword [rbp - 0x19], 0
jbe 0x180099d50
nop dword [rax]
mov r9d, 0x105
mov r8, rdi
mov edx, ebx
mov rcx, qword [rbp - 0x21]
call r12
test eax, eax
jne 0x180099d42
mov dword [rsp + 0x20], 1
mov r9, r15
mov r8, rdi
mov rdx, qword [rbp - 0x21]
mov rcx, r14
call fcn.180099a90
jmp 0x180099d49
cmp eax, 0x103
je 0x180099d50
inc ebx
cmp ebx, dword [rbp - 0x19]
jb 0x180099d10
mov rcx, rdi
call fcn.18011e774
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x180099d63
call rsi
mov al, 1
jmp 0x180099c3b
call fcn.180146944
int3