Function at 0x1401168d0
Capabilities:
Check os version
Generate random numbers via rtlgenrandom
Link many functions at runtime
Query or enumerate registry value
Read file via mapping

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x1a8
test r9d, r9d
mov rbp, rcx
mov r12d, edx
je 0x140116ce4
mov r10d, dword [0x1402a4f80]
test r10d, r10d
je 0x140116de5
mov r8d, dword [0x1402a4f7c]
lea rdi, [rsp + 0x50]
test r8d, r8d
jne 0x140116a4e
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov r9d, 0x20019
lea rdx, str.SYSTEMCurrentControlSetControlProductOptions
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140116f38
lea rcx, str.NETAPI32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov qword [0x1402a4ff8], rax
je 0x1401169c7
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NetStatisticsGet
mov rcx, rax
call rbx
lea rdx, str.NetApiBufferSize
mov rcx, qword [0x1402a4ff8]
mov qword [0x1402a4ff0], rax
call rbx
lea rdx, str.NetApiBufferFree
mov qword [0x1402a4fe8], rax
mov rcx, qword [0x1402a4ff8]
call rbx
cmp qword [0x1402a4ff0], 0
mov qword [0x1402a4fe0], rax
je 0x140116fe6
cmp qword [0x1402a4fe8], 0
je 0x140116fe6
test rax, rax
je 0x140116fe6
lea rcx, str.NTDll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
mov qword [0x1402a4fd8], rax
je 0x140116a44
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtQuerySystemInformation
mov rcx, rax
call rbx
lea rdx, str.NtQueryInformationProcess
mov rcx, qword [0x1402a4fd8]
mov qword [0x1402a4fd0], rax
call rbx
lea rdx, str.NtPowerInformation
mov qword [0x1402a4fc8], rax
mov rcx, qword [0x1402a4fd8]
call rbx
cmp qword [0x1402a4fd0], 0
mov qword [0x1402a4fc0], rax
je 0x140116f87
cmp qword [0x1402a4fc8], 0
je 0x140116f87
mov dword [0x1402a4f7c], 1
mov ecx, dword [0x1402a4f90]
test ecx, ecx
je 0x140116af3
mov rcx, qword [0x1402a4f88]
test rcx, rcx
je 0x140116fb7
lea rbx, [rsp + 0x90]
mov edx, 0x40
mov r8, rbx
call qword [0x1402a4fa8]
test eax, eax
je 0x140116af3
mov r8d, r12d
mov edx, 0x40
mov rcx, rbx
call rbp
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], 0
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0xc8], 0
xor edx, edx
lea r8, str._M_B_M_5_S_D_
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_OpenFileMappingA]
test rax, rax
mov rbx, rax
je 0x140116b53
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], 0
mov edx, 4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
mov rsi, rax
je 0x140116b4a
mov rcx, rax
mov r8d, r12d
mov edx, 0x2650
call rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [0x1402a4ff8], 0
je 0x140116b9a
mov edx, dword [0x140170164]
lea rax, str.LanmanWorkstation
test edx, edx
lea rdx, str.LanmanServer
cmovne rdx, rax
lea rax, [rsp + 0x90]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [0x1402a4ff0]
test eax, eax
je 0x140116dae
xor ebx, ebx
mov r14, qword [sym.imp.KERNEL32.dll_CreateFileA]
lea r15, [rsp + 0x4c]
lea r13, [rsp + 0x90]
jmp 0x140116bd3
mov edx, dword [rsp + 0x4c]
mov r8d, r12d
mov rcx, r13
call rbp
add ebx, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x64
je 0x140116d00
lea r8, str..PhysicalDrive_d
mov r9d, ebx
mov edx, 0x32
mov rcx, rdi
call fcn.1401168a0
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov r8d, 3
mov rcx, rdi
call r14
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x140116d00
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x4c], 0x108
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], r15
mov edx, 0x70020
mov dword [rsp + 0x28], 0x100
mov qword [rsp + 0x20], r13
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140116bb2
lea rcx, str.NOTE:_you_should_run_diskperf__y_to_enable_the_disk_statistics_n
call fcn.1400ea3a0
jmp 0x140116bbe
mov rax, qword [0x1402a4fc0]
test rax, rax
je 0x140116ccb
lea rbx, [0x14027d700]
mov edi, 1
xor ecx, ecx
jmp 0x140116c9c
mov ecx, edi
mov rax, qword [0x1402a4fc0]
mov edi, dword [rbx + 8]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0xf800
mov r9, rsi
call rax
test eax, eax
jne 0x140116cc2
movsxd rdx, dword [rbx + 4]
add r13d, 1
mov r8d, r12d
mov rcx, rsi
call rbp
add rbx, 8
cmp edi, 0xffffffff
jne 0x140116c90
mov rcx, rsi
call fcn.1400ebb20
cmp r13d, 0xe
jg 0x140116ce4
mov edx, r12d
mov rcx, rbp
call fcn.140116740
xor eax, eax
add rsp, 0x1a8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp qword [0x1402a4fd8], 0
je 0x140116cd9
mov ecx, 0x10000
xor r13d, r13d
xor ebx, ebx
call fcn.1400ebd00
lea rdi, [rsp + 0x90]
mov rsi, rax
movabs r14, 0x31c0400c000000
jmp 0x140116d4e
cmp ebx, 0x17
je 0x140117069
cmp ebx, 0x18
je 0x140117054
add ebx, 1
cmp ebx, 0x40
je 0x140116c71
cmp ebx, 0x35
ja 0x140116d73
mov eax, 1
mov ecx, ebx
shl rax, cl
test rax, r14
jne 0x140116d42
test eax, 0x20000
je 0x140116d73
mov eax, dword [0x1402a4f84]
test eax, eax
jne 0x140116d42
mov r9, rdi
mov r8d, 0xf800
mov rdx, rsi
mov ecx, ebx
call qword [0x1402a4fd0]
test eax, eax
jne 0x140116d42
mov edx, dword [rsp + 0x90]
test edx, edx
je 0x140116d30
lea eax, [rdx - 1]
cmp eax, 0xf7ff
ja 0x140116d42
mov r8d, r12d
mov rcx, rsi
add r13d, 1
call rbp
jmp 0x140116d42
lea rdx, [rsp + 0x4c]
mov rcx, qword [rsp + 0x90]
call qword [0x1402a4fe8]
mov edx, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x90]
mov r8d, r12d
call rbp
mov rcx, qword [rsp + 0x90]
call qword [0x1402a4fe0]
jmp 0x140116b9a
lea rdi, [rsp + 0x90]
xor eax, eax
mov ecx, 0x12
rep stosq qword [rdi], rax
mov dword [rsp + 0x90], 0x94
lea rcx, [rsp + 0x90]
mov dword [rdi], 0
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0xa0], 2
jne 0x140117048
xor eax, eax
cmp dword [rsp + 0x94], 5
je 0x14011700f
movzx eax, al
mov dword [0x1402a4f90], 0
mov qword [0x1402a4f88], 0
mov dword [0x1402a4f84], eax
lea rcx, str.AdvAPI32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
mov qword [0x1402a4fb8], rax
je 0x140116f29
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptAcquireContextA
mov rcx, rax
call rbx
lea rdx, str.CryptGenRandom
mov rcx, qword [0x1402a4fb8]
mov qword [0x1402a4fb0], rax
call rbx
lea rdx, str.CryptReleaseContext
mov rcx, qword [0x1402a4fb8]
mov qword [0x1402a4fa8], rax
call rbx
lea rdx, str.SystemFunction036
mov qword [0x1402a4fa0], rax
mov rcx, qword [0x1402a4fb8]
call rbx
mov r10, qword [0x1402a4fb0]
mov qword [0x1402a4f98], rax
test r10, r10
je 0x140116f9e
cmp qword [0x1402a4fa8], 0
je 0x140116f9e
cmp qword [0x1402a4fa0], 0
je 0x140116f9e
xor edx, edx
mov dword [rsp + 0x20], 0
mov r9d, 0x16
lea r8, str.Intel_Hardware_Cryptographic_Service_Provider
lea rcx, [0x1402a4f88]
call r10
test eax, eax
je 0x140116f97
mov dword [0x1402a4f90], 1
mov dword [0x1402a4f80], 1
jmp 0x140116902
lea rax, [rsp + 0x4c]
lea rbx, [rsp + 0x90]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x4c], 0x20
lea rdx, str.ProductType
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x140117022
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140116941
mov qword [0x1402a4fd8], 0
jmp 0x140116a44
mov rax, qword [0x1402a4f98]
test rax, rax
jne 0x140116f1f
mov qword [0x1402a4fb8], 0
jmp 0x140116f29
mov rax, qword [0x1402a4f98]
test rax, rax
je 0x140116af3
lea rbx, [rsp + 0x90]
mov edx, 0x40
mov rcx, rbx
call rax
test eax, eax
jne 0x140116a86
jmp 0x140116af3
mov rcx, qword [0x1402a4ff8]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rcx, str.rndw32:_No_NETAPI_found_n
mov qword [0x1402a4ff8], 0
call fcn.1400ea490
jmp 0x1401169c7
mov r9d, dword [rsp + 0x98]
test r9d, r9d
sete al
jmp 0x140116e34
lea rdx, str.WinNT
mov rcx, rbx
call sub.msvcrt.dll__stricmp_1
test eax, eax
je 0x140116f77
mov dword [0x140170164], 0
jmp 0x140116f77
lea rcx, str.can_only_run_on_a_Windows_NT_platform_n
call fcn.1400ea430
mov dword [rsp + 0x90], 0x14
mov edx, 0x14
jmp 0x140116da0
mov dword [rsp + 0x90], 0x18
mov edx, 0x18
jmp 0x140116da0