Function at 0x14000c970
Capabilities:
Get system information on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1038]
mov eax, 0x1138
call fcn.140001870
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1020], rax
mov r12, qword [rbp + 0x1090]
xor eax, eax
mov qword [rbp - 0x68], r12
mov r14d, r9d
mov dword [rsp + 0x44], eax
mov r15, rcx
mov qword [rsp + 0x68], r8
mov dword [rsp + 0x40], 0x10000
call fcn.140002570
mov edx, dword [rsp + 0x40]
xor ecx, ecx
mov r8d, 0x656e6864
mov esi, eax
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x78], rax
mov rdi, rax
test rax, rax
jne 0x14000c9f4
mov eax, 0xc00000a0
jmp 0x14000cebe
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x1178], rbx
call fcn.140001720
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, rdi
mov ecx, 0x10
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov ebx, eax
cmp eax, 0xc0000004
jne 0x14000ca8d
nop dword [rax]
mov edx, 0x656e6864
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edx, dword [rsp + 0x40]
xor ecx, ecx
mov r8d, 0x656e6864
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x78], rax
mov rdi, rax
test rax, rax
je 0x14000ca98
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov rcx, rax
call fcn.140001720
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, rdi
mov ecx, 0x10
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov ebx, eax
cmp eax, 0xc0000004
je 0x14000ca30
test ebx, ebx
jns 0x14000caa2
mov eax, ebx
jmp 0x14000ceb6
mov eax, 0xc00000a0
jmp 0x14000ceb6
xor eax, eax
mov qword [rsp + 0x1130], r13
mov r13, qword [rdi]
mov edx, eax
mov r9d, eax
test r13, r13
je 0x14000cade
lea r8, [rdi + 0xc]
nop dword [rax]
movzx ecx, byte [r8]
lea eax, [rdx + 1]
inc r9d
lea r8, [r8 + 0x18]
cmp cl, sil
cmovne eax, edx
mov edx, eax
movsxd rax, r9d
cmp rax, r13
jb 0x14000cac0
imul eax, edx, 0x2a8
mov ecx, 0x2ac
add eax, 4
test edx, edx
cmovle eax, ecx
cmp qword [rsp + 0x68], 0
je 0x14000ce98
cmp r14d, eax
jb 0x14000ce98
xor edx, edx
lea rcx, [rbp + 0x20]
mov r8d, 0x800
call fcn.140001720
mov r8d, 0x400
lea rcx, [rbp + 0x20]
mov rdx, r15
call qword [sym.imp.ntoskrnl.exe_wcsncpy]
lea rcx, [rbp + 0x20]
call qword [sym.imp.ntoskrnl.exe__wcslwr]
xor r9d, r9d
mov r12d, r9d
test r13, r13
je 0x14000ce58
movzx r8d, sil
lea r15, [rdi + 0xc]
mov dword [rsp + 0x48], r8d
mov edi, r9d
nop dword [rax]
nop word [rax + rax]
mov rax, qword [r15 + 4]
xorps xmm0, xmm0
movzx edx, byte [r15]
mov r14, r9
movzx esi, word [r15 + 2]
mov qword [rbp - 0x70], rax
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
mov qword [rbp], rax
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rax
mov eax, edi
imul rcx, rax, 0x2a8
movdqu xmmword [rbp - 0x60], xmm0
mov rax, qword [rsp + 0x68]
add rax, 4
mov qword [rbp - 0x78], rsi
add rcx, rax
mov dword [rsp + 0x58], edx
mov qword [rsp + 0x60], r9
mov qword [rsp + 0x50], r9
mov dword [rsp + 0x44], r9d
mov qword [rsp + 0x70], rcx
cmp edx, r8d
jne 0x14000ce3c
movzx eax, word [r15 - 4]
lea r8, [rbp - 0x50]
mov qword [rbp - 0x58], r9
lea rcx, [rsp + 0x60]
mov qword [rbp - 0x48], r9
mov edx, 0x40
mov dword [rbp - 0x38], r9d
mov qword [rbp - 0x40], r9
lea r9, [rbp - 0x60]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x60], rax
mov dword [rbp - 0x50], 0x30
movdqu xmmword [rbp - 0x30], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenProcess]
mov ebx, eax
test eax, eax
js 0x14000ce14
xor ecx, ecx
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], ecx
lea r9, [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
or r8, 0xffffffffffffffff
mov edx, esi
mov dword [rsp + 0x20], 0x1fffff
call qword [sym.imp.ntoskrnl.exe_ZwDuplicateObject]
mov ebx, eax
test eax, eax
js 0x14000ce14
mov edx, 0x400
xor ecx, ecx
mov r8d, 0x656e6864
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rsi, rax
test rax, rax
jne 0x14000cc8e
mov ebx, 0xc00000a0
jmp 0x14000ce14
xor edx, edx
mov r8d, 0x400
mov rcx, rsi
call fcn.140001720
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x44]
mov r9d, 0x400
mov qword [rsp + 0x20], rax
mov r8, rsi
mov edx, 1
call qword [sym.imp.ntoskrnl.exe_ZwQueryObject]
cmp word [rsi], 0
mov ebx, eax
jbe 0x14000cdf3
xor edx, edx
lea rcx, [rbp + 0x820]
mov r8d, 0x800
call fcn.140001720
mov rdx, qword [rsi + 8]
lea rcx, [rbp + 0x820]
mov r8d, 0x400
call qword [sym.imp.ntoskrnl.exe_wcsncpy]
lea rcx, [rbp + 0x820]
call qword [sym.imp.ntoskrnl.exe__wcslwr]
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0x820]
call qword [sym.imp.ntoskrnl.exe_wcsstr]
test rax, rax
je 0x14000cdf3
mov rcx, qword [rsp + 0x50]
lea r8, [rbp - 0x20]
xor eax, eax
xor edx, edx
mov qword [rsp + 0x20], rax
lea r9d, [rax + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwQueryObject]
mov edx, 0x100
xor ecx, ecx
mov r8d, 0x656e6864
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r14, rax
test rax, rax
jne 0x14000cd60
mov ebx, 0xc00000a0
jmp 0x14000cdf3
xor edx, edx
mov r8d, 0x100
mov rcx, r14
call fcn.140001720
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x44]
mov r9d, 0x100
mov qword [rsp + 0x20], rax
mov r8, r14
mov edx, 2
call qword [sym.imp.ntoskrnl.exe_ZwQueryObject]
mov rcx, qword [rsp + 0x70]
mov ebx, eax
mov rax, qword [rbp - 0x80]
mov qword [rcx + 8], rax
mov rax, qword [rbp - 0x78]
mov qword [rcx + 0x18], rax
mov rax, qword [rbp - 0x70]
mov qword [rcx + 0x10], rax
mov eax, dword [rbp - 0x14]
sub eax, dword [rbp - 0x18]
mov dword [rcx + 4], eax
mov eax, dword [rsp + 0x58]
mov dword [rcx], eax
add rcx, 0xa0
movzx r8d, word [rsi]
mov rdx, qword [rsi + 8]
add r8, r8
call fcn.140001010
movzx r8d, word [r14]
mov rcx, qword [rsp + 0x70]
add r8, r8
mov rdx, qword [r14 + 8]
add rcx, 0x20
call fcn.140001010
inc edi
mov edx, 0x656e6864
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test r14, r14
je 0x14000ce14
mov edx, 0x656e6864
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14000ce24
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000ce34
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov r8d, dword [rsp + 0x48]
xor r9d, r9d
inc r12d
add r15, 0x18
movsxd rax, r12d
cmp rax, r13
jb 0x14000cb60
mov dword [rsp + 0x44], edi
mov rdi, qword [rsp + 0x78]
mov rax, qword [rsp + 0x68]
mov edx, 0x656e6864
mov esi, dword [rsp + 0x44]
mov rcx, rdi
mov dword [rax], esi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea eax, [rsi - 1]
test esi, esi
mov ecx, 0
cmove eax, ecx
imul rcx, rax, 0x2a8
mov rax, qword [rbp - 0x68]
add rcx, 0x2ac
mov qword [rax + 0x38], rcx
mov eax, ebx
jmp 0x14000ceae
and dword [r12 + 0x10], 0xffffffbf
add rax, 0x1a90
mov qword [r12 + 0x38], rax
mov eax, 0x80000005
mov r13, qword [rsp + 0x1130]
mov rbx, qword [rsp + 0x1178]
mov rcx, qword [rbp + 0x1020]
xor rcx, rsp
call fcn.140001360
add rsp, 0x1138
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret