Function at 0x18002f1c0
Capabilities:
Get number of processors
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x180093630]
xor rax, rsp
mov qword [rbp + 0x390], rax
movaps xmm0, xmmword [str.SoftwarePoliciesMicrosoftWindowsSaferCodeIdentifiers]
mov rdi, rdx
movaps xmm1, xmmword [0x18007c430]
mov rbx, rcx
mov eax, dword [0x18007c490]
lea rcx, [rbp + 0x200]
movaps xmmword [rbp + 0x2c0], xmm0
xor esi, esi
movaps xmm0, xmmword [0x18007c440]
xor edx, edx
movaps xmmword [rbp + 0x2e0], xmm0
mov r8d, 0xb8
movaps xmm0, xmmword [0x18007c460]
movaps xmmword [rbp + 0x2d0], xmm1
movaps xmm1, xmmword [0x18007c450]
movaps xmmword [rbp + 0x300], xmm0
movaps xmm0, xmmword [0x18007c480]
movaps xmmword [rbp + 0x2f0], xmm1
movaps xmm1, xmmword [0x18007c470]
mov dword [rbp + 0x330], eax
movzx eax, word [0x18007c494]
movaps xmmword [rbp + 0x320], xmm0
mov dword [rsp + 0x68], 0x191cd7fa
mov dword [rsp + 0x6c], 0x4a17f240
mov dword [rsp + 0x70], 0xd4948689
mov dword [rsp + 0x74], 0xcac8a680
mov dword [rsp + 0x78], 0xd2c34ab2
mov dword [rsp + 0x7c], 0x46b2529a
mov dword [rbp - 0x80], 0x85fc93b2
mov dword [rbp - 0x7c], 0xea72ce3f
movaps xmmword [rbp + 0x310], xmm1
mov word [rbp + 0x334], ax
mov qword [rsp + 0x48], rsi
call sub.msvcrt.dll_memset
xor edx, edx
lea rcx, [rbp - 0x30]
mov r8d, 0x230
call sub.msvcrt.dll_memset
mov dword [rsp + 0x50], esi
lea r15d, [rsi + 1]
test rbx, rbx
je 0x18002f740
test rdi, rdi
je 0x18002f740
lea rdx, [rbp + 0x2c0]
mov dword [rdi], r15d
lea rcx, [rbp - 0x48]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rbp - 0x48]
mov dword [rbp - 0x78], 0x30
xorps xmm0, xmm0
mov qword [rbp - 0x68], rax
lea r8, [rbp - 0x78]
mov qword [rbp - 0x70], rbx
mov edx, 0x2001f
mov dword [rbp - 0x60], 0x40
lea rcx, [rsp + 0x48]
movdqu xmmword [rbp - 0x58], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov r14d, 0xc0000034
mov ebx, eax
cmp eax, r14d
jne 0x18002f370
mov qword [rsp + 0x30], rsi
lea r8, [rbp - 0x78]
mov dword [rsp + 0x28], esi
lea rcx, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
mov edx, 0x2001f
call qword [sym.imp.ntdll.dll_NtCreateKey]
mov ebx, eax
test ebx, ebx
js 0x18002f745
lea rdx, str.DefaultLevel
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov ebx, 0x50
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x340]
mov dword [rsp + 0x20], ebx
lea rdx, [rsp + 0x58]
lea r8d, [rbx - 0x4e]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
cmp eax, r14d
je 0x18002f48e
lea rdx, str.TransparentEnabled
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x340]
lea r8d, [rbx - 0x4e]
mov dword [rsp + 0x20], ebx
lea rdx, [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
cmp eax, r14d
je 0x18002f48e
lea rdx, str.PolicyScope
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x340]
lea r8d, [rbx - 0x4e]
mov dword [rsp + 0x20], ebx
lea rdx, [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
cmp eax, r14d
je 0x18002f48e
lea rdx, str.ExecutableTypes
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x340]
lea r8d, [rbx - 0x4e]
mov dword [rsp + 0x20], ebx
lea rdx, [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
cmp eax, r14d
je 0x18002f48e
mov dword [rdi], esi
jmp 0x18002f745
lea rdx, str.DefaultLevel
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov edi, 4
lea rdx, [rsp + 0x58]
mov r14d, 0x40000
mov dword [rsp + 0x28], edi
mov r9d, edi
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x40], r14d
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov ebx, eax
test eax, eax
js 0x18002f745
lea rdx, str.TransparentEnabled
mov dword [rsp + 0x40], r15d
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], edi
lea rdx, [rsp + 0x58]
mov r9d, edi
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov ebx, eax
test eax, eax
js 0x18002f745
lea rdx, str.PolicyScope
mov dword [rsp + 0x40], esi
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], edi
lea rdx, [rsp + 0x58]
mov r9d, edi
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov ebx, eax
test eax, eax
js 0x18002f745
lea rdx, str.ExecutableTypes
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rcx, qword gs:[0x60]
mov edi, 0xf8
mov r8d, edi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x18002f739
lea rax, [0x18007c4c0]
mov dword [rsp + 0x28], edi
movups xmm0, xmmword [rax]
lea rcx, [rbx + 0x80]
mov qword [rsp + 0x20], rbx
lea rax, [rax + 0x80]
mov r9d, 7
movups xmmword [rbx], xmm0
xor r8d, r8d
lea rdx, [rsp + 0x58]
movups xmm1, xmmword [rax - 0x70]
movups xmmword [rbx + 0x10], xmm1
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rbx + 0x20], xmm0
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rbx + 0x30], xmm1
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rbx + 0x40], xmm0
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rbx + 0x50], xmm1
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rbx + 0x60], xmm0
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x10], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
mov rax, qword [rax + 0x70]
mov qword [rcx + 0x70], rax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea rbx, str._HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows_NTCurrentVersionSystemRoot_
mov dword [rbp + 0x210], r15d
mov rdx, rbx
mov dword [rbp + 0x214], r14d
lea rcx, [rbp + 0x228]
mov dword [rbp + 0x218], 3
mov dword [rbp + 0x220], r15d
mov dword [rbp + 0x238], esi
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
movups xmm0, xmmword [rsp + 0x68]
xor r9d, r9d
mov dword [rbp - 0x2c], 0x20
lea r8, [rbp - 0x30]
mov dword [rbp - 0x30], r15d
lea rdx, [rbp + 0x200]
mov dword [rbp + 0x1f8], esi
mov cl, r15b
mov qword [rbp + 0x1f0], rbx
movups xmmword [rbp + 0x200], xmm0
mov word [rbp - 0x10], si
movups xmmword [rbp - 0x28], xmm0
call fcn.18002e914
mov ebx, eax
test eax, eax
js 0x18002f745
lea rbx, str._HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionProgramFilesDir_
mov rdx, rbx
lea rcx, [rbp + 0x228]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
movups xmm0, xmmword [rsp + 0x78]
xor r9d, r9d
mov qword [rbp + 0x1f0], rbx
lea r8, [rbp - 0x30]
mov cl, r15b
lea rdx, [rbp + 0x200]
movups xmmword [rbp + 0x200], xmm0
movups xmmword [rbp - 0x28], xmm0
call fcn.18002e914
mov ebx, eax
jmp 0x18002f745
mov ebx, 0xc0000017
jmp 0x18002f745
mov ebx, 0xc000000d
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18002f755
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
js 0x18002f75e
mov eax, r15d
jmp 0x18002f770
mov ecx, ebx
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.180017170
mov rbx, qword [rsp + 0x4e0]
add rsp, 0x4a0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret