Function at 0x7fff25db5360
Capabilities:
Check for peb beingdebugged flag
Check os version
Get number of processors

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb8
mov r14, r9
mov r13d, edx
xorps xmm0, xmm0
movups xmmword [rax - 0x80], xmm0
xor esi, esi
mov qword [rsp + 0x50], rsi
mov byte [rsp + 0x48], sil
and dword [rsp + 0x5c], esi
and qword [rax - 0x50], rsi
xor edi, edi
mov qword [rsp + 0x88], rdi
and qword [rax - 0x58], rsi
and dword [rsp + 0x4c], esi
cmp qword [rsp + 0x110], rsi
jne 0x7fff25df9b27
mov r15, qword [rsp + 0x120]
test r15, r15
jne 0x7fff25db5763
test r14, r14
je 0x7fff25df9b27
cmp qword [rsp + 0x100], rsi
je 0x7fff25df9b27
lea r9, [rsp + 0x90]
lea r8, [rsp + 0x98]
lea rdx, [rsp + 0xf0]
call sym.KERNELBASE.dll_MapPredefinedHandleInternal
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x7fff25db56cc
mov ecx, dword [r14]
lea r12d, [rax + 1]
add ecx, r12d
add rcx, rcx
mov eax, 0xfffe
cmp rcx, rax
ja 0x7fff25db5437
movzx eax, word [r14]
add ax, r12w
add ax, ax
mov word [rsp + 0x6a], ax
movzx r8d, ax
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rsp + 0x70], rax
test rax, rax
je 0x7fff25df9680
mov rcx, qword [rsp + 0x128]
test rcx, rcx
je 0x7fff25db575b
mov r14d, dword [rcx]
mov dword [rsp + 0x60], r14d
mov dword [rsp + 0x44], r14d
and dword [rsp + 0x58], esi
mov rsi, qword [rsp + 0xf0]
test r12b, sil
jne 0x7fff25df968d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x4c]
lea r8, [rsp + 0x68]
mov edx, r13d
mov rcx, rsi
call fcn.7fff25d6de90
mov dword [rsp + 0x40], eax
mov esi, 0xea
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x7fff25db5615
xor edi, edi
cmp qword [rsp + 0x128], rdi
je 0x7fff25db561f
mov ecx, dword [rsp + 0x4c]
lea eax, [rcx - 1]
cmp eax, r12d
ja 0x7fff25df98b8
mov r13d, dword [rsp + 0x44]
mov dword [rsp + 0x110], r13d
mov rax, qword [rsp + 0x128]
mov ecx, dword [rax]
mov dword [rsp + 0x60], ecx
mov r8d, r13d
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x7fff25df98c6
and dword [rsp + 0x58], 0
mov r14, qword [rsp + 0xf0]
test r12b, r14b
jne 0x7fff25df98dd
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x44]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4c]
lea r8, [rsp + 0x68]
mov edx, dword [rsp + 0xf8]
mov rcx, r14
call fcn.7fff25d6de90
mov dword [rsp + 0x40], eax
xor edi, edi
mov r14d, 2
mov r12, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x44]
cmp r8d, r13d
cmova r8d, r13d
mov rdx, r12
lea rcx, [rsp + 0x5c]
call qword [sym.imp.ntdll.dll_RtlUnicodeToMultiByteSize]
nop dword [rax + rax]
mov edx, dword [rsp + 0x5c]
mov rax, qword [rsp + 0x128]
cmp edx, dword [rax]
jbe 0x7fff25db55dd
mov eax, dword [rsp + 0x40]
test r15, r15
cmovne eax, esi
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x7fff25db55ed
test r15, r15
jne 0x7fff25db5776
mov dword [rsp + 0x44], edx
test r15, r15
je 0x7fff25db5625
mov rax, qword [rsp + 0x128]
cmp dword [rax], edx
jbe 0x7fff25db5625
test edx, edx
je 0x7fff25db5625
lea eax, [rdx - 1]
cmp byte [rax + r15], 0
je 0x7fff25db5625
jmp 0x7fff25df9ae0
xor edi, edi
cmp eax, esi
je 0x7fff25db54df
mov r14d, 2
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x7fff25db574e
mov rcx, qword [rsp + 0x128]
test rcx, rcx
je 0x7fff25db5644
mov eax, dword [rsp + 0x44]
mov dword [rcx], eax
mov rcx, qword [rsp + 0x118]
test rcx, rcx
je 0x7fff25db5657
mov eax, dword [rsp + 0x4c]
mov dword [rcx], eax
cmp dword [rsp + 0x40], 0
jne 0x7fff25db56c7
movzx eax, word [rsp + 0x68]
cmp ax, r14w
jb 0x7fff25db5676
mov ecx, 0xfffe
add ax, cx
mov word [rsp + 0x68], ax
mov rsi, qword [rsp + 0x108]
movzx eax, word [rsi]
mov word [rsp + 0xa2], ax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0xa8], rax
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.ntdll.dll_RtlUnicodeStringToAnsiString]
nop dword [rax + rax]
test eax, eax
js 0x7fff25df9aec
movzx eax, word [rsp + 0xa0]
mov dword [rsi], eax
mov rsi, qword [rsp + 0x50]
cmp qword [rsp + 0x70], 0
je 0x7fff25db56f4
mov rcx, qword gs:[0x60]
mov r8, qword [rsp + 0x70]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
test rsi, rsi
jne 0x7fff25db572e
test rdi, rdi
jne 0x7fff25df9b03
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
call sym.KERNELBASE.dll_CLOSE_LOCAL_HANDLE_INTERNAL
mov eax, dword [rsp + 0x40]
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
jmp 0x7fff25db56f9
cmp eax, esi
jne 0x7fff25db5657
jmp 0x7fff25db5631
xor r14d, r14d
jmp 0x7fff25db547d
cmp qword [rsp + 0x128], rsi
jne 0x7fff25db53d5
jmp 0x7fff25df9b27
and dword [rsp + 0x80], 0
mov dword [rsp + 0x20], r13d
mov r9, r12
lea r8, [rsp + 0x80]
mov edx, dword [rsp + 0x60]
mov rcx, r15
call qword [sym.imp.ntdll.dll_RtlUnicodeToMultiByteN]
nop dword [rax + rax]
test eax, eax
js 0x7fff25df9ac9
mov edx, dword [rsp + 0x80]
mov dword [rsp + 0x5c], edx
jmp 0x7fff25db55ed
mov dword [rsp + 0x40], 8
jmp 0x7fff25db56cc
call fcn.7fff25dcefc8
test al, al
je 0x7fff25db54ce
and dword [rsp + 0x78], edi
and rsi, 0xfffffffffffffffe
call fcn.7fff25dcefc8
test al, al
je 0x7fff25df981c
lea rdx, [rsp + 0x78]
mov rcx, rsi
call qword [sym.imp.ext_ms_win_advapi32_registry_l1_1_0.dll_BaseRegGetVersion]
nop dword [rax + rax]
test eax, eax
jne 0x7fff25df981c
mov eax, dword [rsp + 0x78]
add eax, 0xfffffffb
cmp eax, 5
jbe 0x7fff25df981c
mov al, r12b
mov byte [rsp + 0x48], al
mov r8d, dword [rsp + 0x44]
mov r13d, 2
add r8, r13
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
mov qword [rsp + 0x88], rax
test rax, rax
jne 0x7fff25df9728
mov dword [rsp + 0x40], 8
jmp 0x7fff25db56c7
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x4c]
lea r8, [rsp + 0x68]
mov edx, dword [rsp + 0xf8]
mov rcx, rsi
call qword [sym.imp.ext_ms_win_advapi32_registry_l1_1_0.dll_RemoteRegEnumValueWrapper]
nop dword [rax + rax]
mov dword [rsp + 0x40], eax
jmp 0x7fff25df9792
mov esi, 0xea
test eax, eax
je 0x7fff25df979f
cmp eax, esi
jne 0x7fff25df97b6
cmp dword [rsp + 0x44], 0x7fff0000
jbe 0x7fff25df97b6
mov dword [rsp + 0x40], 0xd
jmp 0x7fff25db56c7
test eax, eax
jne 0x7fff25df97f8
mov ecx, dword [rsp + 0x4c]
lea eax, [rcx - 1]
cmp eax, r12d
jbe 0x7fff25df97cb
cmp ecx, 7
jne 0x7fff25df97d7
cmp dword [rsp + 0x44], r13d
jb 0x7fff25df97d7
add dword [rsp + 0x44], 0xfffffffe
mov eax, dword [rsp + 0x44]
cmp eax, r14d
ja 0x7fff25df97f0
mov r8d, eax
mov rdx, rdi
mov rcx, r15
call sub.ntdll.dll_memcpy
jmp 0x7fff25df97f8
mov dword [rsp + 0x40], 0xd
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
nop
jmp 0x7fff25db54d3
xor r13b, r13b
mov byte [rsp + 0x48], r13b
mov byte [rsp + 0x110], r13b
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x4c]
lea r8, [rsp + 0x68]
mov edx, dword [rsp + 0xf8]
mov rcx, rsi
call qword [sym.imp.ext_ms_win_advapi32_registry_l1_1_0.dll_RemoteRegEnumValueWrapper]
nop dword [rax + rax]
mov dword [rsp + 0x40], eax
jmp 0x7fff25df9890
mov eax, dword [rsp + 0x40]
mov esi, 0xea
test eax, eax
je 0x7fff25df98a5
cmp eax, esi
jne 0x7fff25db54d3
cmp dword [rsp + 0x44], 0x7fff0000
jbe 0x7fff25db54d3
jmp 0x7fff25df97a9
cmp ecx, 7
jne 0x7fff25db561f
jmp 0x7fff25db54ff
mov dword [rsp + 0x40], 8
xor edi, edi
mov edx, dword [rsp + 0x5c]
lea r14d, [rdi + 2]
jmp 0x7fff25db55ed
xor edi, edi
call fcn.7fff25dcefc8
test al, al
je 0x7fff25db5594
cmp byte [rsp + 0x48], dil
je 0x7fff25df9a40
mov r8d, dword [rsp + 0x44]
lea r14d, [rdi + 2]
add r8, r14
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
mov qword [rsp + 0x88], rax
test rax, rax
jne 0x7fff25df993b
mov dword [rsp + 0x40], 8
jmp 0x7fff25db559a
mov rcx, qword [rsp + 0xf0]
and rcx, 0xfffffffffffffffe
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x4c]
lea r8, [rsp + 0x68]
mov edx, dword [rsp + 0xf8]
call qword [sym.imp.ext_ms_win_advapi32_registry_l1_1_0.dll_RemoteRegEnumValueWrapper]
nop dword [rax + rax]
mov dword [rsp + 0x40], eax
mov edx, 2
jmp 0x7fff25df99b2
test eax, eax
je 0x7fff25df99ba
cmp eax, esi
jne 0x7fff25df99c8
cmp dword [rsp + 0x44], 0x7fff0000
ja 0x7fff25df97a9
test eax, eax
jne 0x7fff25df9a10
mov ecx, dword [rsp + 0x4c]
lea eax, [rcx - 1]
cmp eax, r12d
jbe 0x7fff25df99dd
cmp ecx, 7
jne 0x7fff25df99e8
cmp dword [rsp + 0x44], edx
jb 0x7fff25df99e8
add dword [rsp + 0x44], 0xfffffffe
mov eax, dword [rsp + 0x44]
mov r12, qword [rsp + 0x50]
cmp eax, r13d
ja 0x7fff25df9a06
mov r8d, eax
mov rdx, rdi
mov rcx, r12
call sub.ntdll.dll_memcpy
jmp 0x7fff25df9a15
mov dword [rsp + 0x40], 0xd
jmp 0x7fff25df9a15
mov r12, qword [rsp + 0x50]
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
xor edi, edi
mov r14d, 2
jmp 0x7fff25db559f
and r14, 0xfffffffffffffffe
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov r12, qword [rsp + 0x50]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x4c]
lea r8, [rsp + 0x68]
mov edx, dword [rsp + 0xf8]
mov rcx, r14
call qword [sym.imp.ext_ms_win_advapi32_registry_l1_1_0.dll_RemoteRegEnumValueWrapper]
nop dword [rax + rax]
mov dword [rsp + 0x40], eax
jmp 0x7fff25df9aa6
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x7fff25df9ab4
xor edi, edi
cmp eax, esi
jne 0x7fff25df9a35
xor edi, edi
cmp dword [rsp + 0x44], 0x7fff0000
jbe 0x7fff25df9a35
jmp 0x7fff25df97a9
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov dword [rsp + 0x40], eax
jmp 0x7fff25db57a9
mov eax, edx
mov byte [rax + r15], 0
jmp 0x7fff25db5625
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov dword [rsp + 0x40], eax
jmp 0x7fff25db56c7
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
nop
jmp 0x7fff25db5702
mov eax, 0x57
jmp 0x7fff25db571b