Function at 0x180011df0
Capabilities:
Check for peb beingdebugged flag
Hide thread from debugger
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x258]
sub rsp, 0x358
mov rax, qword [0x1800b2220]
xor rax, rsp
mov qword [rbp + 0x240], rax
xor r13d, r13d
mov rsi, r9
mov qword [rsp + 0x40], r13
mov r12, r8
mov qword [rsp + 0x30], r13
mov r15, rdx
mov rdi, rcx
mov r14d, r13d
mov ebx, r13d
test rdx, rdx
je 0x180031311
cmp word [rdx], r13w
je 0x180031311
lea ecx, [r13 + 1]
test r9, r9
je 0x180011e62
cmp word [r9], r13w
jne 0x1800122c9
cmp qword [0x1800b2230], 0xfffffffffffffffe
jne 0x180011e96
test ebx, ebx
jne 0x180011e96
xor eax, eax
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.180024680
add rsp, 0x358
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, [0x1800b2d00]
call qword [sym.imp.ntdll.dll_RtlAcquireSRWLockExclusive]
nop dword [rax + rax]
mov rax, qword [0x1800b2230]
test rax, rax
je 0x180030de2
cmp rax, 0xfffffffffffffffe
je 0x1800122e1
mov ecx, 8
test rdi, rdi
jne 0x180011f4b
mov rax, qword gs:[0x30]
mov edi, 0xc000007c
cmp dword [rax + 0x179c], r13d
jne 0x180030dff
mov ebx, edi
cmp ebx, edi
jne 0x180030e2c
mov qword [rsp + 0x30], r13
or rdi, 0xffffffffffffffff
lea r8, [rsp + 0x40]
mov rcx, rdi
mov edx, 0xa
call qword [sym.imp.ntdll.dll_NtOpenProcessToken]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0xc0000022
je 0x180030e7c
mov rdi, qword [rsp + 0x40]
test ebx, ebx
cmovs rdi, r13
mov qword [rsp + 0x40], rdi
cmp qword [rsp + 0x30], r13
jne 0x180030e9c
test ebx, ebx
js 0x180030eeb
mov rax, qword [0x1800b2230]
cmp rax, 0xfffffffffffffffe
jb 0x180031133
lea rax, [rbp - 0x78]
mov ebx, 1
mov edx, ebx
mov qword [rsp + 0x20], rax
mov r9d, 0x90
lea r8, [rbp + 0x1b0]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtQueryInformationToken]
nop dword [rax + rax]
test eax, eax
js 0x18001205d
mov r8b, bl
lea rdx, [0x1800857b4]
lea rcx, [rbp + 0xe0]
call qword [sym.imp.ntdll.dll_RtlInitializeSid]
nop dword [rax + rax]
xor edx, edx
lea rcx, [rbp + 0xe0]
call qword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
nop dword [rax + rax]
lea rdx, [rbp + 0xe0]
mov dword [rax], 0x12
mov rcx, qword [rbp + 0x1b0]
call qword [sym.imp.ntdll.dll_RtlEqualSid]
nop dword [rax + rax]
test al, al
jne 0x18001228d
xor edx, edx
lea rcx, [rbp + 0xe0]
call qword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
nop dword [rax + rax]
lea rdx, [rbp + 0xe0]
mov dword [rax], 0x13
mov rcx, qword [rbp + 0x1b0]
call qword [sym.imp.ntdll.dll_RtlEqualSid]
nop dword [rax + rax]
test al, al
jne 0x18001228d
xor edx, edx
lea rcx, [rbp + 0xe0]
call qword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
nop dword [rax + rax]
lea rdx, [rbp + 0xe0]
mov dword [rax], 0x14
mov rcx, qword [rbp + 0x1b0]
call qword [sym.imp.ntdll.dll_RtlEqualSid]
nop dword [rax + rax]
test al, al
jne 0x18001228d
lea r8, [0x18007f1b0]
mov edx, 3
lea rcx, [rbp - 0x80]
call qword [sym.imp.ntdll.dll_NtOpenKey]
nop dword [rax + rax]
test eax, eax
jns 0x180030efe
lea r8, [0x18007f180]
movzx ebx, r13b
mov edx, 1
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtOpenKey]
nop dword [rax + rax]
test eax, eax
js 0x18001216a
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x90]
mov r8d, 2
mov dword [rsp + 0x20], 0x50
lea rdx, [0x18007f170]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
test eax, eax
jns 0x180030f79
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x90]
mov r8d, 2
mov dword [rsp + 0x20], 0x50
lea rdx, [0x18007f160]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
test eax, eax
js 0x180012151
cmp dword [rbp + 0x94], 4
jne 0x180012151
cmp dword [rbp + 0x98], 4
jne 0x180012151
mov eax, dword [0x1800b2e70]
mov ecx, 8
cmp dword [rbp + 0x9c], r13d
cmova eax, ecx
mov dword [0x1800b2e70], eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
test bl, bl
jne 0x180031017
lea rcx, [rbp - 0x68]
call qword [sym.imp.ntdll.dll_RtlFormatCurrentUserKeyPath]
nop dword [rax + rax]
test eax, eax
js 0x180012282
movzx eax, word [rbp - 0x68]
add ax, 0x78
mov word [rsp + 0x70], r13w
mov word [rsp + 0x72], ax
call qword [sym.imp.KERNELBASE.dll_KernelBaseGetGlobalData]
nop dword [rax + rax]
mov rcx, qword gs:[0x60]
movzx r8d, word [rsp + 0x72]
mov edx, dword [rax]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rsp + 0x78], rax
test rax, rax
je 0x18001226a
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
nop dword [rax + rax]
test eax, eax
js 0x18001224a
lea rdx, str.SoftwarePoliciesMicrosoftWindowsSaferCodeIdentifiers
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
nop dword [rax + rax]
test eax, eax
js 0x18001224a
lea rax, [rsp + 0x70]
mov dword [rbp - 0x58], 0x30
xorps xmm0, xmm0
mov qword [rbp - 0x48], rax
lea r8, [rbp - 0x58]
mov qword [rbp - 0x50], r13
mov edx, 1
mov dword [rbp - 0x40], 0x40
lea rcx, [rsp + 0x50]
movdqu xmmword [rbp - 0x38], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKey]
nop dword [rax + rax]
test eax, eax
jns 0x180030fa7
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rsp + 0x78]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
lea rcx, [rbp - 0x68]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
nop dword [rax + rax]
test bl, bl
jne 0x180031017
mov qword [0x1800b2230], 0xfffffffffffffffe
mov ebx, r13d
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1800122a6
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
test r14, r14
jne 0x1800312ed
lea rcx, [0x1800b2d00]
call qword [sym.imp.ntdll.dll_RtlReleaseSRWLockExclusive]
nop dword [rax + rax]
mov eax, ebx
jmp 0x180011e72
mov rax, qword gs:[0x30]
cmp dword [rax + 0x179c], r13d
cmovne ebx, ecx
jmp 0x180011e62
test ebx, ebx
jne 0x180011ec3
jmp 0x180030df7
mov ebx, 0xc0000139
jmp 0x1800122af
mov qword [0x1800b2230], 0xfffffffffffffffe
mov ebx, r13d
jmp 0x1800122af
mov rcx, 0xfffffffffffffffe
lea r9, [rsp + 0x30]
mov edx, 0x2000000
lea r8d, [rcx + 3]
call qword [sym.imp.ntdll.dll_NtOpenThreadToken]
nop dword [rax + rax]
mov ebx, eax
mov ecx, 8
jmp 0x180011eea
test ebx, ebx
js 0x1800122af
mov r9d, ecx
mov qword [rbp - 0x70], r13
mov rcx, 0xfffffffffffffffe
lea r8, [rbp - 0x70]
mov edx, 5
call qword [sym.imp.ntdll.dll_NtSetInformationThread]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x180011ef7
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov qword [rsp + 0x30], r13
jmp 0x1800122af
lea r8, [rsp + 0x40]
mov edx, 8
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtOpenProcessToken]
nop dword [rax + rax]
mov ebx, eax
jmp 0x180011f21
mov r9d, 8
lea r8, [rsp + 0x30]
mov rcx, 0xfffffffffffffffe
lea edx, [r9 - 3]
call qword [sym.imp.ntdll.dll_NtSetInformationThread]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
mov edi, eax
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov qword [rsp + 0x30], r13
test edi, edi
jns 0x180030ee1
mov ebx, edi
jmp 0x180012290
mov rdi, qword [rsp + 0x40]
jmp 0x180011f3c
cmp qword [0x1800b2230], 0xffffffffffffffff
jne 0x1800122af
jmp 0x180030dec
mov rcx, qword [rbp - 0x80]
lea rax, [rbp - 0x74]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x160]
mov r8d, 2
mov dword [rsp + 0x20], 0x50
lea rdx, [0x1800805b8]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x80]
mov ebx, eax
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
test ebx, ebx
js 0x180012081
cmp dword [rbp + 0x164], 4
jne 0x180012081
cmp dword [rbp + 0x168], 4
jne 0x180012081
cmp dword [rbp + 0x16c], r13d
ja 0x180012282
jmp 0x180012081
cmp dword [rbp + 0x94], 4
jne 0x1800120e9
cmp dword [rbp + 0x98], 4
jne 0x1800120e9
cmp dword [rbp + 0x9c], r13d
mov eax, 1
cmova ebx, eax
jmp 0x1800120e9
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x90]
mov r8d, 2
mov dword [rsp + 0x20], 0x50
lea rdx, [0x18007f170]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
test eax, eax
js 0x18001224a
cmp dword [rbp + 0x94], 4
jne 0x18001224a
cmp dword [rbp + 0x98], 4
jne 0x18001224a
cmp dword [rbp + 0x9c], r13d
mov ecx, 1
movzx ebx, bl
cmova ebx, ecx
jmp 0x18001224a
lea r9, [rsp + 0x38]
mov dword [rsp + 0x60], 0x1000
lea r8, [0x1800805a8]
xor ecx, ecx
lea rdx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_LdrLoadDll]
nop dword [rax + rax]
test eax, eax
jns 0x180031053
mov ebx, 0xc0000139
mov qword [0x1800b2230], r13
jmp 0x180012290
mov rcx, qword [rsp + 0x38]
lea r9, [0x1800b2fd8]
xor r8d, r8d
lea rdx, [0x180080598]
call qword [sym.imp.ntdll.dll_LdrGetProcedureAddress]
nop dword [rax + rax]
test eax, eax
js 0x18003119c
cmp qword [0x1800b2fd8], r13
je 0x18003119c
mov rcx, qword [rsp + 0x38]
lea r9, [0x1800b2fe0]
xor r8d, r8d
lea rdx, [0x180080588]
call qword [sym.imp.ntdll.dll_LdrGetProcedureAddress]
nop dword [rax + rax]
test eax, eax
js 0x18003119c
cmp qword [0x1800b2fe0], r13
je 0x18003119c
mov rcx, qword [rsp + 0x38]
lea r9, [0x1800b2fe8]
xor r8d, r8d
lea rdx, [0x180080578]
call qword [sym.imp.ntdll.dll_LdrGetProcedureAddress]
nop dword [rax + rax]
test eax, eax
js 0x18003119c
cmp qword [0x1800b2fe8], r13
je 0x18003119c
mov rcx, qword [rsp + 0x38]
lea r9, [0x1800b2ff0]
xor r8d, r8d
lea rdx, [0x180080568]
call qword [sym.imp.ntdll.dll_LdrGetProcedureAddress]
nop dword [rax + rax]
test eax, eax
js 0x18003119c
cmp qword [0x1800b2ff0], r13
je 0x18003119c
mov rax, qword [rsp + 0x38]
mov qword [0x1800b2230], rax
mov ebx, 0xb0
lea rcx, [rbp - 0x20]
mov r8d, ebx
xor edx, edx
call sub.ntdll.dll_memset
mov dword [rbp - 0x20], ebx
mov qword [rbp - 0x18], r15
mov dword [rbp + 0x60], 2
test rsi, rsi
je 0x1800311ea
cmp word [rsi], r13w
je 0x1800311ea
mov rcx, qword gs:[0x60]
xor edx, edx
movzx r8d, word [rsi]
add r8, 2
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov r14, rax
test rax, rax
jne 0x1800311be
mov ebx, 0xc0000017
jmp 0x180012290
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntdll.dll_LdrUnloadDll]
nop dword [rax + rax]
mov qword [0x1800b2230], r13
mov ebx, 0xc0000139
jmp 0x180012290
movzx r8d, word [rsi]
mov rcx, r14
mov rdx, qword [rsi + 8]
call sub.ntdll.dll_memcpy
movzx eax, word [rsi]
shr rax, 1
mov word [r14 + rax*2], r13w
mov dword [rbp - 0x1c], 0x21
mov qword [rbp - 0x10], r13
mov qword [rbp + 0x68], r14
jmp 0x1800311fa
mov eax, dword [0x1800b2e70]
or eax, 5
mov qword [rbp - 0x10], r12
mov dword [rbp - 0x1c], eax
mov rax, qword [0x1800b2fd8]
lea r9, str.IGNORESRPV2
mov esi, 1
lea r8, [rsp + 0x58]
mov ecx, esi
lea rdx, [rbp - 0x20]
mov ebx, 0xc0000022
call qword [case.0x1800532bc.0]
test eax, eax
je 0x180012290
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x68]
mov rax, qword [0x1800b2fe8]
mov r9d, esi
mov rdx, rdi
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x20], r13
call qword [case.0x1800532bc.0]
test eax, eax
jne 0x18003129b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov esi, 0x312
cmp eax, 0x4ec
je 0x180031274
cmp eax, esi
jne 0x1800312d5
mov rcx, qword [rsp + 0x58]
xor r8d, r8d
mov rax, qword [0x1800b2ff0]
mov rdx, r15
call qword [case.0x1800532bc.0]
mov ebx, 0xc0000361
cmp edi, esi
lea eax, [rbx + 0x11]
cmove ebx, eax
jmp 0x1800312d5
cmp qword [rsp + 0x68], r13
je 0x1800312d2
mov rcx, qword [rsp + 0x58]
xor r8d, r8d
mov rax, qword [0x1800b2ff0]
mov rdx, r15
call qword [case.0x1800532bc.0]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov ebx, 0xc0000361
jmp 0x1800312d5
mov ebx, r13d
mov rcx, qword [rsp + 0x58]
mov rax, qword [0x1800b2fe0]
call qword [case.0x1800532bc.0]
nop
jmp 0x180012290
mov rcx, qword gs:[0x60]
mov r8, r14
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
nop
jmp 0x1800122af
mov eax, 0xc000000d
jmp 0x180011e72