Function at 0x1001faf0
Capabilities:
Acquire debug privileges
Get system information on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, dword fs:[0]
mov ecx, 1
push 0xffffffffffffffff
push 0x10037f20
push eax
mov dword fs:[0], esp
mov edx, 0x1056c318
push ebx
sub esp, 0x210
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x1001fe95
push str.RtlGetVersion
push 0x10043e7c
mov dword [0x1056c1f8], 0x11c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001fb66
push 0x1056c1f8
call eax
mov eax, dword [0x1056c1fc]
test eax, eax
je 0x1001fca1
shl eax, 8
or eax, dword [0x1056c200]
cmp eax, 0x602
ja 0x1001fbc0
je 0x1001fbb1
cmp eax, 0x501
je 0x1001fba2
cmp eax, 0x601
jne 0x1001fbd2
mov dword [0x1056c1f0], 2
jmp 0x1001fca1
mov dword [0x1056c1f0], 1
jmp 0x1001fca1
mov dword [0x1056c1f0], 3
jmp 0x1001fca1
cmp eax, 0x603
je 0x1001fc97
cmp eax, 0xa00
je 0x1001fbe1
mov dword [0x1056c1f0], 0
jmp 0x1001fca1
mov eax, dword [0x1056c204]
cmp eax, 0x4a61
jb 0x1001fbfc
mov dword [0x1056c1f0], 0xd
jmp 0x1001fca1
cmp eax, 0x47bb
jb 0x1001fc12
mov dword [0x1056c1f0], 0xc
jmp 0x1001fca1
cmp eax, 0x47ba
jb 0x1001fc25
mov dword [0x1056c1f0], 0xb
jmp 0x1001fca1
cmp eax, 0x4563
jb 0x1001fc38
mov dword [0x1056c1f0], 0xa
jmp 0x1001fca1
cmp eax, 0x42ee
jb 0x1001fc4b
mov dword [0x1056c1f0], 9
jmp 0x1001fca1
cmp eax, 0x3fab
jb 0x1001fc5e
mov dword [0x1056c1f0], 8
jmp 0x1001fca1
cmp eax, 0x3ad7
jb 0x1001fc71
mov dword [0x1056c1f0], 7
jmp 0x1001fca1
cmp eax, 0x3839
jb 0x1001fc84
mov dword [0x1056c1f0], 6
jmp 0x1001fca1
cmp eax, 0x295a
jb 0x1001fca1
mov dword [0x1056c1f0], 5
jmp 0x1001fca1
mov dword [0x1056c1f0], 4
call fcn.1001f780
mov dword [0x1056c1f4], eax
lea ecx, [ebp - 0x30]
push 0x10
xor eax, eax
mov dword [ebp - 0x20], 0
push str.SeDebugPrivilege
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.100078a0
lea ecx, [ebp - 0x30]
call fcn.1001feb0
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x1001fd12
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001fd08
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1001fd08
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10035360
add esp, 8
push 0x15
xor eax, eax
mov dword [ebp - 0x20], 0
push str.SeLoadDriverPrivilege
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.100078a0
lea ecx, [ebp - 0x30]
call fcn.1001feb0
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x1001fd79
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001fd6f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1001fd6f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10035360
add esp, 8
call fcn.1001ffb0
xorps xmm0, xmm0
mov word [ebp - 0x14], 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x1c], 0
push eax
movups xmmword [ebp - 0x3c], xmm0
movups xmmword [ebp - 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x3c], 0
jne 0x1001fdad
mov byte [ebp - 0x14], 1
jmp 0x1001fdcd
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [ebp - 0x18], 0
setne byte [ebp - 0x13]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x14]
call fcn.1002e800
push ecx
lea eax, [ebp - 0x130]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x14]
call fcn.1002e310
push ecx
lea edx, [ebp - 0x130]
lea ecx, [ebp - 0x220]
call fcn.10033410
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x130]
call fcn.1000f230
lea ecx, [ebp - 0x220]
call fcn.1000f230
call fcn.10010fd0
mov ecx, dword [0x1056c1fc]
mov edx, eax
test ecx, ecx
je 0x1001fe95
cmp ecx, 0xa
jae 0x1001fe8e
cmp ecx, 6
ja 0x1001fe74
jb 0x1001fe95
mov eax, dword [0x1056c200]
cmp eax, 3
jae 0x1001fe74
cmp eax, 1
ja 0x1001fe5a
jb 0x1001fe95
mov ecx, edx
call fcn.10012f40
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, edx
call fcn.10012ca0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, edx
call fcn.100129e0
mov ecx, dword [ebp - 0xc]
mov al, 1
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret