Function at 0x1400076a0
Capabilities:
Get system information on windows
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xb8
mov rax, qword [0x14001d2d0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
lea rax, [rsp + 0x90]
lea rcx, [0x140019360]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea r9, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
mov ecx, 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0xc0000004
jne 0x140007784
cmp qword [rsp + 0x48], 0
je 0x140007741
mov edx, 0x6864694e
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [rsp + 0x50]
mov dl, 1
mov ecx, eax
call fcn.140001330
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140007765
mov dword [rsp + 0x40], 0xc000009a
jmp 0x140007784
lea r9, [rsp + 0x50]
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov ecx, 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov dword [rsp + 0x40], eax
jmp 0x14000771f
cmp dword [rsp + 0x40], 0
jl 0x140007793
cmp qword [rsp + 0x48], 0
jne 0x14000779c
mov eax, dword [rsp + 0x40]
jmp 0x140007a0e
mov rax, qword [rsp + 0x48]
add rax, 8
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x44], 0
jmp 0x1400077be
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
cmp dword [rsp + 0x44], eax
jae 0x14000783f
mov eax, dword [rsp + 0x44]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx + rax + 0x10]
cmp qword [sym.imp.ntoskrnl.exe_NtCreateFile], rax
jb 0x14000783a
mov eax, dword [rsp + 0x44]
imul rax, rax, 0x128
mov ecx, dword [rsp + 0x44]
imul rcx, rcx, 0x128
mov rdx, qword [rsp + 0x68]
mov ecx, dword [rdx + rcx + 0x18]
mov rdx, qword [rsp + 0x68]
add rcx, qword [rdx + rax + 0x10]
mov rax, rcx
cmp qword [sym.imp.ntoskrnl.exe_NtCreateFile], rax
jae 0x14000783a
mov eax, dword [rsp + 0x44]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx + rax + 0x10]
mov qword [rsp + 0x60], rax
jmp 0x14000783f
jmp 0x1400077b4
cmp qword [rsp + 0x60], 0
jne 0x140007861
mov edx, 0x6864694e
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, 0xc0000225
jmp 0x140007a0e
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x40], 0xc0000225
mov rax, qword [rsp + 0x80]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400078a2
mov edx, 0x6864694e
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, 0xc0000141
jmp 0x140007a0e
mov rax, qword [rsp + 0x80]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
cmp dword [rax], 0x4550
je 0x1400078e5
mov edx, 0x6864694e
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, 0xc0000141
jmp 0x140007a0e
mov rax, qword [rsp + 0x78]
add rax, 0x108
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x58], rax
jmp 0x140007915
mov rax, qword [rsp + 0x58]
add rax, 0x28
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x78]
movzx eax, word [rax + 6]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x58], rax
jae 0x1400079fa
mov rax, qword [rsp + 0x58]
mov rax, qword [rsp + 0x58]
lea rcx, [0x140019370]
sub rcx, rax
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x140007962
inc rax
test dl, dl
jne 0x14000794f
xor eax, eax
jmp 0x140007967
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1400079f5
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x58]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x60]
add rdx, rcx
mov rcx, rdx
mov byte [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
mov r9, rcx
mov r8d, 0xf
mov dl, 0xcc
lea rcx, [rsp + 0x90]
call fcn.140001790
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x1400079f5
mov dword [rsp + 0x40], 0
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 3]
mov rcx, qword [rsp + 0x70]
lea rax, [rcx + rax + 7]
mov rcx, qword [rsp + 0xd0]
mov qword [rcx + 0x1030], rax
jmp 0x1400079fa
jmp 0x140007907
mov edx, 0x6864694e
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140018ca0
add rsp, 0xb8
pop rdi
pop rsi
ret