Function at 0x1401167c0
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 0x140116bd4
mov r10d, dword [0x1402a3f80]
test r10d, r10d
je 0x140116cd5
mov r8d, dword [0x1402a3f7c]
lea rdi, [rsp + 0x50]
test r8d, r8d
jne 0x14011693e
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 0x140116e28
lea rcx, str.NETAPI32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov qword [0x1402a3ff8], rax
je 0x1401168b7
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NetStatisticsGet
mov rcx, rax
call rbx
lea rdx, str.NetApiBufferSize
mov rcx, qword [0x1402a3ff8]
mov qword [0x1402a3ff0], rax
call rbx
lea rdx, str.NetApiBufferFree
mov qword [0x1402a3fe8], rax
mov rcx, qword [0x1402a3ff8]
call rbx
cmp qword [0x1402a3ff0], 0
mov qword [0x1402a3fe0], rax
je 0x140116ed6
cmp qword [0x1402a3fe8], 0
je 0x140116ed6
test rax, rax
je 0x140116ed6
lea rcx, str.NTDll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
mov qword [0x1402a3fd8], rax
je 0x140116934
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtQuerySystemInformation
mov rcx, rax
call rbx
lea rdx, str.NtQueryInformationProcess
mov rcx, qword [0x1402a3fd8]
mov qword [0x1402a3fd0], rax
call rbx
lea rdx, str.NtPowerInformation
mov qword [0x1402a3fc8], rax
mov rcx, qword [0x1402a3fd8]
call rbx
cmp qword [0x1402a3fd0], 0
mov qword [0x1402a3fc0], rax
je 0x140116e77
cmp qword [0x1402a3fc8], 0
je 0x140116e77
mov dword [0x1402a3f7c], 1
mov ecx, dword [0x1402a3f90]
test ecx, ecx
je 0x1401169e3
mov rcx, qword [0x1402a3f88]
test rcx, rcx
je 0x140116ea7
lea rbx, [rsp + 0x90]
mov edx, 0x40
mov r8, rbx
call qword [0x1402a3fa8]
test eax, eax
je 0x1401169e3
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 0x140116a43
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 0x140116a3a
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 [0x1402a3ff8], 0
je 0x140116a8a
mov edx, dword [0x14016f164]
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 [0x1402a3ff0]
test eax, eax
je 0x140116c9e
xor ebx, ebx
mov r14, qword [sym.imp.KERNEL32.dll_CreateFileA]
lea r15, [rsp + 0x4c]
lea r13, [rsp + 0x90]
jmp 0x140116ac3
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 0x140116bf0
lea r8, str..PhysicalDrive_d
mov r9d, ebx
mov edx, 0x32
mov rcx, rdi
call fcn.140116790
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 0x140116bf0
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 0x140116aa2
lea rcx, str.NOTE:_you_should_run_diskperf__y_to_enable_the_disk_statistics_n
call fcn.1400ea290
jmp 0x140116aae
mov rax, qword [0x1402a3fc0]
test rax, rax
je 0x140116bbb
lea rbx, [0x14027c6a0]
mov edi, 1
xor ecx, ecx
jmp 0x140116b8c
mov ecx, edi
mov rax, qword [0x1402a3fc0]
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 0x140116bb2
movsxd rdx, dword [rbx + 4]
add r13d, 1
mov r8d, r12d
mov rcx, rsi
call rbp
add rbx, 8
cmp edi, 0xffffffff
jne 0x140116b80
mov rcx, rsi
call fcn.1400eba10
cmp r13d, 0xe
jg 0x140116bd4
mov edx, r12d
mov rcx, rbp
call fcn.140116630
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 [0x1402a3fd8], 0
je 0x140116bc9
mov ecx, 0x10000
xor r13d, r13d
xor ebx, ebx
call fcn.1400ebbf0
lea rdi, [rsp + 0x90]
mov rsi, rax
movabs r14, 0x31c0400c000000
jmp 0x140116c3e
cmp ebx, 0x17
je 0x140116f59
cmp ebx, 0x18
je 0x140116f44
add ebx, 1
cmp ebx, 0x40
je 0x140116b61
cmp ebx, 0x35
ja 0x140116c63
mov eax, 1
mov ecx, ebx
shl rax, cl
test rax, r14
jne 0x140116c32
test eax, 0x20000
je 0x140116c63
mov eax, dword [0x1402a3f84]
test eax, eax
jne 0x140116c32
mov r9, rdi
mov r8d, 0xf800
mov rdx, rsi
mov ecx, ebx
call qword [0x1402a3fd0]
test eax, eax
jne 0x140116c32
mov edx, dword [rsp + 0x90]
test edx, edx
je 0x140116c20
lea eax, [rdx - 1]
cmp eax, 0xf7ff
ja 0x140116c32
mov r8d, r12d
mov rcx, rsi
add r13d, 1
call rbp
jmp 0x140116c32
lea rdx, [rsp + 0x4c]
mov rcx, qword [rsp + 0x90]
call qword [0x1402a3fe8]
mov edx, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x90]
mov r8d, r12d
call rbp
mov rcx, qword [rsp + 0x90]
call qword [0x1402a3fe0]
jmp 0x140116a8a
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 0x140116f38
xor eax, eax
cmp dword [rsp + 0x94], 5
je 0x140116eff
movzx eax, al
mov dword [0x1402a3f90], 0
mov qword [0x1402a3f88], 0
mov dword [0x1402a3f84], eax
lea rcx, str.AdvAPI32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
mov qword [0x1402a3fb8], rax
je 0x140116e19
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptAcquireContextA
mov rcx, rax
call rbx
lea rdx, str.CryptGenRandom
mov rcx, qword [0x1402a3fb8]
mov qword [0x1402a3fb0], rax
call rbx
lea rdx, str.CryptReleaseContext
mov rcx, qword [0x1402a3fb8]
mov qword [0x1402a3fa8], rax
call rbx
lea rdx, str.SystemFunction036
mov qword [0x1402a3fa0], rax
mov rcx, qword [0x1402a3fb8]
call rbx
mov r10, qword [0x1402a3fb0]
mov qword [0x1402a3f98], rax
test r10, r10
je 0x140116e8e
cmp qword [0x1402a3fa8], 0
je 0x140116e8e
cmp qword [0x1402a3fa0], 0
je 0x140116e8e
xor edx, edx
mov dword [rsp + 0x20], 0
mov r9d, 0x16
lea r8, str.Intel_Hardware_Cryptographic_Service_Provider
lea rcx, [0x1402a3f88]
call r10
test eax, eax
je 0x140116e87
mov dword [0x1402a3f90], 1
mov dword [0x1402a3f80], 1
jmp 0x1401167f2
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 0x140116f12
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140116831
mov qword [0x1402a3fd8], 0
jmp 0x140116934
mov rax, qword [0x1402a3f98]
test rax, rax
jne 0x140116e0f
mov qword [0x1402a3fb8], 0
jmp 0x140116e19
mov rax, qword [0x1402a3f98]
test rax, rax
je 0x1401169e3
lea rbx, [rsp + 0x90]
mov edx, 0x40
mov rcx, rbx
call rax
test eax, eax
jne 0x140116976
jmp 0x1401169e3
mov rcx, qword [0x1402a3ff8]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rcx, str.rndw32:_No_NETAPI_found_n
mov qword [0x1402a3ff8], 0
call fcn.1400ea380
jmp 0x1401168b7
mov r9d, dword [rsp + 0x98]
test r9d, r9d
sete al
jmp 0x140116d24
lea rdx, str.WinNT
mov rcx, rbx
call sub.msvcrt.dll__stricmp_1
test eax, eax
je 0x140116e67
mov dword [0x14016f164], 0
jmp 0x140116e67
lea rcx, str.can_only_run_on_a_Windows_NT_platform_n
call fcn.1400ea320
mov dword [rsp + 0x90], 0x14
mov edx, 0x14
jmp 0x140116c90
mov dword [rsp + 0x90], 0x18
mov edx, 0x18
jmp 0x140116c90