Function at 0x12b78
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
push r12
push r14
sub rsp, 0x60
lea rax, [r11 - 0x48]
lea rcx, [r11 - 0x48]
mov qword [r11 - 0x40], rax
lea rax, [r11 - 0x48]
mov qword [r11 - 0x48], rax
lea rax, [r11 - 0x58]
mov qword [r11 - 0x50], rax
lea rax, [r11 - 0x58]
mov qword [r11 - 0x58], rax
call fcn.00012f1c
xor ebx, ebx
mov edi, 0x1000
add edi, edi
test rbx, rbx
je 0x12bd2
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov r8d, dword [str.NxMm]
mov edx, edi
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
test rax, rax
mov rbx, rax
je 0x12c03
xor r9d, r9d
mov r8d, edi
mov rdx, rax
lea ecx, [r9 + 0xb]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
jmp 0x12c08
mov eax, 0xc000009a
cmp eax, 0xc0000004
je 0x12bc0
test eax, eax
js 0x12cfc
test rbx, rbx
je 0x12d0c
xor esi, esi
cmp dword [rbx], esi
jbe 0x12cfc
lea rbp, [rbx + 0x20]
mov eax, esi
lea rcx, [rsp + 0x50]
imul rax, rax, 0x128
lea rdx, [rax + rbx + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
lea rcx, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x40]
mov r8b, 1
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
movzx edx, word [rsp + 0x40]
mov r8d, dword [str.NxMm]
add rdx, 0x40
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
test rax, rax
mov rdi, rax
je 0x12cea
xor edx, edx
lea rcx, [rax + 0x10]
lea r8d, [rdx + 0x28]
call fcn.0001a520
mov r11, qword [rbp - 8]
mov qword [rdi + 0x18], r11
mov ecx, dword [rbp]
mov qword [rdi + 0x28], rcx
movzx eax, word [rsp + 0x40]
mov dword [rdi + 0x38], eax
cmp word [rsp + 0x40], 0
je 0x12cc6
mov rdx, qword [rsp + 0x48]
lea rcx, [rdi + 0x3c]
mov r8, rax
call fcn.0001a620
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov r11, qword [rsp + 0x28]
lea rax, [rsp + 0x20]
mov qword [rdi + 8], r11
mov qword [rdi], rax
mov qword [r11], rdi
mov qword [rsp + 0x28], rdi
add esi, 1
add rbp, 0x128
cmp esi, dword [rbx]
jb 0x12c2e
test rbx, rbx
je 0x12d0c
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea rax, [rsp + 0x30]
cmp qword [rsp + 0x30], rax
je 0x12efc
lea rcx, [0x0001d1f8]
call qword [sym.imp.ntoskrnl.exe_ExAcquireFastMutex]
mov rbx, qword [rsp + 0x30]
lea r11, [rsp + 0x30]
cmp rbx, r11
je 0x12eef
lea r14, [0x0001d1e8]
mov rax, qword [rbx]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
mov qword [rax + 8], rcx
mov rax, qword [0x0001d1e8]
cmp rax, r14
je 0x12e1f
mov rcx, qword [rbx + 0x10]
cmp qword [rax + 0x10], rcx
mov rbp, rax
je 0x12d7b
mov rax, qword [rax]
xor ebp, ebp
cmp rax, r14
jne 0x12d68
test rbp, rbp
je 0x12e1f
lea rdi, [rbp + 0x30]
cmp qword [rdi], rdi
je 0x12de8
lea rsi, [rbx + 0x30]
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov qword [rdi], rax
mov qword [rax + 8], rdi
cmp qword [rsi], rsi
je 0x12dd1
mov rax, qword [rsi]
cmp rax, rsi
je 0x12dd1
mov r8, qword [rcx + 0x10]
cmp qword [rax + 0x10], r8
mov rdx, rax
je 0x12dc2
mov rax, qword [rax]
xor edx, edx
cmp rax, rsi
jne 0x12daf
test rdx, rdx
je 0x12dd1
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x12de3
mov rax, qword [rsi + 8]
mov qword [rcx], rsi
mov qword [rcx + 8], rax
mov qword [rax], rcx
mov qword [rsi + 8], rcx
cmp qword [rdi], rdi
jne 0x12d91
lea rcx, [rbx + 0x30]
jmp 0x12e0d
mov rdx, qword [rcx]
mov rax, qword [rdx]
mov qword [rcx], rax
mov qword [rax + 8], rcx
mov rax, qword [rdi + 8]
mov qword [rdx], rdi
mov qword [rdx + 8], rax
mov qword [rax], rdx
mov qword [rdi + 8], rdx
cmp qword [rcx], rcx
jne 0x12dee
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x12e3a
mov rax, qword [0x0001d1f0]
mov qword [rbx], r14
mov rbp, rbx
mov qword [rbx + 8], rax
mov qword [rax], rbx
mov qword [0x0001d1f0], rbx
cmp qword [rbp + 0x10], 0
jne 0x12edc
mov rbx, qword [rsp + 0x20]
lea rax, [rsp + 0x20]
cmp rbx, rax
je 0x12edc
lea rdi, [rbp + 0x40]
mov rax, qword [rbx]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov qword [rax + 8], rcx
cmp qword [rdi], rdi
je 0x12ebb
mov rsi, qword [rdi]
cmp rsi, rdi
je 0x12ebb
mov ebp, dword [rbx + 0x38]
cmp dword [rsi + 0x38], ebp
mov r12, rsi
jne 0x12e9e
mov ebp, dword [rbx + 0x38]
lea rdx, [rbx + 0x3c]
lea rcx, [rsi + 0x3c]
mov r8, rbp
call qword [sym.imp.ntoskrnl.exe_RtlCompareMemory]
cmp rax, rbp
je 0x12ea9
mov rsi, qword [rsi]
xor r12d, r12d
cmp rsi, rdi
jne 0x12e7d
test r12, r12
je 0x12ebb
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x12ecd
mov rax, qword [rdi + 8]
mov qword [rbx], rdi
mov qword [rbx + 8], rax
mov qword [rax], rbx
mov qword [rdi + 8], rbx
mov rbx, qword [rsp + 0x20]
lea rax, [rsp + 0x20]
cmp rbx, rax
jne 0x12e5c
mov rbx, qword [rsp + 0x30]
lea rax, [rsp + 0x30]
cmp rbx, rax
jne 0x12d43
lea rcx, [0x0001d1f8]
call qword [sym.imp.ntoskrnl.exe_ExReleaseFastMutex]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r12
pop rdi
ret