Function at 0x140008e30
Capabilities:
Get system information on windows

Disassembly:
push rbp
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x448]
sub rsp, 0x548
mov rax, qword [0x14003cf48]
xor rax, rsp
mov qword [rbp + 0x430], rax
mov rax, qword [rbp + 0x4a0]
xor edi, edi
mov r14, qword [rbp + 0x4b0]
mov r13, r9
mov qword [rsp + 0x28], r8
lea r9, [rsp + 0x20]
mov rsi, rdx
mov qword [rsp + 0x30], rax
lea ecx, [rdi + 0xb]
mov dword [rsp + 0x20], edi
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x6f734d64
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r15, rax
test rax, rax
jne 0x140008ecb
cmp byte [0x14003dcf0], dil
je 0x140008ec4
mov edx, dword [rsp + 0x20]
lea rcx, [0x140012930]
call fcn.14000ca70
xor al, al
jmp 0x140009253
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, r15
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov ecx, eax
and ecx, 0xc0000000
cmp ecx, 0xc0000000
jne 0x140008f1c
cmp byte [0x14003dcf0], dil
je 0x140008f0a
mov edx, eax
lea rcx, [0x140012970]
call fcn.14000ca70
xor edx, edx
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor al, al
jmp 0x140009253
mov edx, dword [r15]
mov qword [rsp + 0x540], r12
xor r12b, r12b
test rdx, rdx
je 0x14000923c
mov qword [rsp + 0x580], rbx
lea rbx, [r15 + 0x20]
nop
mov rcx, qword [rbx - 8]
cmp rsi, rcx
jb 0x140008f53
mov eax, dword [rbx]
add rax, rcx
cmp rsi, rax
jbe 0x140008f67
inc rdi
add rbx, 0x128
cmp rdi, rdx
jb 0x140008f40
jmp 0x140009234
xor edx, edx
lea rcx, [rbp + 0x150]
mov r8d, 0x208
call fcn.1400101c0
lea rdx, [rbx + 0x10]
lea rcx, [rbp + 0x150]
call fcn.14000bcb0
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x140008fa4
imul rax, rdi, 0x128
mov rcx, qword [rax + r15 + 0x18]
mov qword [rdx], rcx
test r13, r13
je 0x140008fb9
imul rax, rdi, 0x128
mov ecx, dword [rax + r15 + 0x20]
mov dword [r13], ecx
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x140008ffe
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.1400101c0
mov r8d, 0x208
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x150]
call fcn.14000bd70
lea r8, [rsp + 0x40]
mov edx, 0x104
mov rcx, rbx
call sub.ntoskrnl.exe_wcscpy_s
test r14, r14
je 0x140009231
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
cmp rax, 4
je 0x140009231
xor edx, edx
lea rcx, [rbp + 0x360]
mov r8d, 0xc8
call fcn.1400101c0
mov r8d, 0xc8
lea rdx, [rbp + 0x360]
lea rcx, [0x1400103b0]
call fcn.14000c8e0
test al, al
je 0x140009231
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.1400101c0
mov rbx, 0xffffffffffffffff
lea rcx, [rbp + 0x150]
mov rax, rbx
nop
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140009070
lea rax, [rax*2 + 2]
cmp rax, 0x208
ja 0x140009231
lea rdx, [0x1400129b0]
lea rcx, [rbp + 0x150]
call sub.ntoskrnl.exe_wcsstr
test rax, rax
lea rcx, [rbp + 0x150]
lea r8, [rbp + 0x158]
mov edx, 0x104
cmove r8, rcx
lea rcx, [rsp + 0x40]
call sub.ntoskrnl.exe_wcscpy_s
lea rdx, [0x1400129c0]
lea rcx, [rsp + 0x40]
call sub.ntoskrnl.exe_wcsstr
test rax, rax
je 0x1400091e9
xor edx, edx
lea rcx, [rbp + 0x150]
mov r8d, 0x208
call fcn.1400101c0
lea rcx, [rbp + 0x150]
sub rcx, 2
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140009100
lea r8, [rbp + 0x360]
xor edx, edx
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x140009120
lea rcx, [rbp + 0x150]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140009140
lea r8, [rsp + 0x56]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x140009160
lea rcx, [rsp + 0x40]
mov edx, 4
lea rax, [rbp + 0x150]
nop dword [rax]
nop word [rax + rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x140009190
mov rax, qword [rax]
mov qword [rcx], rax
lea rax, [rsp + 0x40]
nop
cmp word [rax + rbx*2 + 2], 0
lea rbx, [rbx + 1]
jne 0x1400091f0
mov eax, dword [rbp + 0x4b8]
lea rcx, [rbx*2 + 2]
cmp rcx, rax
ja 0x140009231
lea rax, [rsp + 0x40]
sub r14, rax
lea rcx, [rsp + 0x40]
nop dword [rax]
movzx eax, word [rcx]
mov word [r14 + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140009220
mov r12b, 1
mov rbx, qword [rsp + 0x580]
xor edx, edx
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
movzx eax, r12b
mov r12, qword [rsp + 0x540]
mov rcx, qword [rbp + 0x430]
xor rcx, rsp
call fcn.14000ed70
add rsp, 0x548
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret