Function at 0x5117e0
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 0x511bb2
mov r11d, dword [0x007eff80]
test r11d, r11d
je 0x511cc5
mov r9d, dword [0x007eff7c]
lea rdi, [rsp + 0x50]
test r9d, r9d
jne 0x51195e
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 0x511e19
lea rcx, str.NETAPI32.DLL
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test rax, rax
mov qword [0x007efff8], rax
je 0x5118d7
mov rbx, qword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea rdx, str.NetStatisticsGet
mov rcx, rax
call rbx
lea rdx, str.NetApiBufferSize
mov rcx, qword [0x007efff8]
mov qword [0x007efff0], rax
call rbx
lea rdx, str.NetApiBufferFree
mov qword [0x007effe8], rax
mov rcx, qword [0x007efff8]
call rbx
cmp qword [0x007efff0], 0
mov qword [0x007effe0], rax
je 0x511e68
cmp qword [0x007effe8], 0
je 0x511e68
test rax, rax
je 0x511e68
lea rcx, str.NTDll.dll
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
test rax, rax
mov qword [0x007effd8], rax
je 0x511954
mov rbx, qword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea rdx, str.NtQuerySystemInformation
mov rcx, rax
call rbx
lea rdx, str.NtQueryInformationProcess
mov rcx, qword [0x007effd8]
mov qword [0x007effd0], rax
call rbx
lea rdx, str.NtPowerInformation
mov qword [0x007effc8], rax
mov rcx, qword [0x007effd8]
call rbx
cmp qword [0x007effd0], 0
mov qword [0x007effc0], rax
je 0x511e91
cmp qword [0x007effc8], 0
je 0x511e91
mov dword [0x007eff7c], 1
mov r8d, dword [0x007eff90]
test r8d, r8d
je 0x5119bc
mov rcx, qword [0x007eff88]
test rcx, rcx
je 0x511ec1
lea rbx, [rsp + 0x90]
mov edx, 0x40
mov r8, rbx
call qword [0x007effa8]
test eax, eax
je 0x5119bc
mov edx, 0x40
mov r8d, r12d
mov rcx, rbx
call rbp
lea rdx, [rbx + 0x40]
mov rax, rbx
nop dword [rax + rax]
mov byte [rax], 0
add rax, 1
cmp rax, rdx
jne 0x5119b0
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 0x511a1c
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 0x511a13
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 [0x007efff8], 0
je 0x511a63
mov ecx, dword [0x00659ee4]
lea rax, str.LanmanServer
lea rdx, str.LanmanWorkstation
test ecx, ecx
cmove rdx, rax
lea rax, [rsp + 0x90]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [0x007efff0]
test eax, eax
je 0x511c8e
xor ebx, ebx
mov r14, qword [sym.imp.KERNEL32.DLL_CreateFileA]
lea r15, [rsp + 0x4c]
lea r13, [rsp + 0x90]
jmp 0x511aa1
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 0x511bd0
lea r8, str..PhysicalDrive_d
mov r9d, ebx
mov edx, 0x32
mov rcx, rdi
call fcn.005117b0
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 0x511bd0
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 0x511a80
lea rcx, str.NOTE:_you_should_run_diskperf__y_to_enable_the_disk_statistics_n
call fcn.004cb9e0
jmp 0x511a8c
mov rax, qword [0x007effc0]
test rax, rax
je 0x511b99
lea rbx, [0x0077e648]
xor ecx, ecx
jmp 0x511b67
mov rax, qword [0x007effc0]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0xf800
mov r9, rsi
call rax
test eax, eax
jne 0x511b8d
movsxd rdx, dword [rbx - 4]
add r13d, 1
mov r8d, r12d
mov rcx, rsi
call rbp
add rbx, 8
mov ecx, dword [rbx - 8]
cmp ecx, 0xffffffff
jne 0x511b60
mov rcx, rsi
call fcn.004c8620
cmp r13d, 0xe
jg 0x511bb2
mov edx, r12d
mov rcx, rbp
call fcn.00511650
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 [0x007effd8], 0
je 0x511ba7
mov ecx, 0x10000
xor r13d, r13d
xor ebx, ebx
call fcn.004c8850
lea rdi, [rsp + 0x90]
mov rsi, rax
mov r15d, 1
movabs r14, 0x18e0200600
jmp 0x511c2e
cmp ebx, 0x17
je 0x511f4c
cmp ebx, 0x18
je 0x511f37
add ebx, 1
cmp ebx, 0x40
je 0x511b40
lea ecx, [rbx - 0x11]
cmp ecx, 0x24
ja 0x511c53
mov rax, r15
shl rax, cl
test rax, r14
mov rcx, rax
jne 0x511c22
and ecx, 1
je 0x511c53
mov edx, dword [0x007eff84]
test edx, edx
jne 0x511c22
mov r9, rdi
mov r8d, 0xf800
mov rdx, rsi
mov ecx, ebx
call qword [0x007effd0]
test eax, eax
jne 0x511c22
mov edx, dword [rsp + 0x90]
test edx, edx
je 0x511c10
lea eax, [rdx - 1]
cmp eax, 0xf7ff
ja 0x511c22
mov r8d, r12d
mov rcx, rsi
add r13d, 1
call rbp
jmp 0x511c22
lea rdx, [rsp + 0x4c]
mov rcx, qword [rsp + 0x90]
call qword [0x007effe8]
mov edx, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x90]
mov r8d, r12d
call rbp
mov rcx, qword [rsp + 0x90]
call qword [0x007effe0]
jmp 0x511a63
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 0x511f2b
xor eax, eax
cmp dword [rsp + 0x94], 5
je 0x511ef0
mov dword [0x007eff84], eax
mov dword [0x007eff90], 0
lea rcx, str.AdvAPI32.dll
mov qword [0x007eff88], 0
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
test rax, rax
mov qword [0x007effb8], rax
je 0x511e0a
mov rbx, qword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea rdx, str.CryptAcquireContextA
mov rcx, rax
call rbx
lea rdx, str.CryptGenRandom
mov rcx, qword [0x007effb8]
mov qword [0x007effb0], rax
call rbx
lea rdx, str.CryptReleaseContext
mov rcx, qword [0x007effb8]
mov qword [0x007effa8], rax
call rbx
lea rdx, str.SystemFunction036
mov qword [0x007effa0], rax
mov rcx, qword [0x007effb8]
call rbx
mov r10, qword [0x007effb0]
mov qword [0x007eff98], rax
test r10, r10
je 0x511ea8
cmp qword [0x007effa8], 0
je 0x511ea8
cmp qword [0x007effa0], 0
je 0x511ea8
xor edx, edx
mov dword [rsp + 0x20], 0
mov r9d, 0x16
lea r8, str.Intel_Hardware_Cryptographic_Service_Provider
lea rcx, [0x007eff88]
call r10
test eax, eax
je 0x511ea1
mov dword [0x007eff90], 1
mov dword [0x007eff80], 1
jmp 0x511812
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 0x511f05
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x511851
mov rcx, qword [0x007efff8]
call qword [sym.imp.KERNEL32.DLL_FreeLibrary]
lea rcx, str.rndw32:_No_NETAPI_found_n
mov qword [0x007efff8], 0
call fcn.004cbad0
jmp 0x5118d7
mov qword [0x007effd8], 0
jmp 0x511954
mov rax, qword [0x007eff98]
test rax, rax
jne 0x511e00
mov qword [0x007effb8], 0
jmp 0x511e0a
mov rax, qword [0x007eff98]
test rax, rax
je 0x5119bc
lea rbx, [rsp + 0x90]
mov edx, 0x40
mov rcx, rbx
call rax
test eax, eax
jne 0x511994
jmp 0x5119bc
mov r10d, dword [rsp + 0x98]
xor eax, eax
test r10d, r10d
sete al
jmp 0x511d14
lea rdx, str.WinNT
mov rcx, rbx
call sub.msvcrt.dll__stricmp_1
test eax, eax
je 0x511e58
mov dword [0x00659ee4], 0
jmp 0x511e58
lea rcx, str.can_only_run_on_a_Windows_NT_platform_n
call fcn.004cba70
mov dword [rsp + 0x90], 0x14
mov edx, 0x14
jmp 0x511c80
mov dword [rsp + 0x90], 0x18
mov edx, 0x18
jmp 0x511c80