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

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x328]
sub rsp, 0x3f0
movaps xmmword [rax - 0x48], xmm6
mov rax, qword [0x140012450]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
xor r13d, r13d
mov qword [rsp + 0x78], rdx
mov rdi, rdx
mov qword [rsp + 0x70], rcx
xorps xmm0, xmm0
mov qword [rsp + 0x50], r13
xor ecx, ecx
mov r12d, r13d
lea esi, [r13 + 0x20]
mov edx, esi
movdqu xmmword [rsp + 0x40], xmm0
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r8d, esi
mov dword [rsp + 0x30], r13d
lea esi, [r13 + 0x42]
mov rdx, rax
mov ecx, esi
lea r9, [rsp + 0x30]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
jns 0x140005726
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov ecx, dword [rsp + 0x30]
add ecx, 0x1000
mov dword [rsp + 0x30], ecx
mov edx, ecx
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r14, rax
test rax, rax
jne 0x1400054da
mov qword [rdi], r13
mov qword [rdi + 8], r13
mov qword [rdi + 0x10], r13
jmp 0x14000573b
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, r14
mov ecx, esi
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
js 0x140005714
mov r15d, r13d
mov dword [rsp + 0x34], r13d
cmp dword [r14], r13d
jbe 0x140005714
mov rsi, qword [rsp + 0x48]
lea rdi, [r14 + 8]
movups xmm6, xmmword [rdi]
movdqa xmm1, xmm6
psrldq xmm1, 8
movq rbx, xmm1
mov rcx, rbx
call fcn.1400096bc
mov r13, rax
movq qword [rsp + 0x68], xmm6
lea rax, [rsp + 0x38]
mov rcx, r13
mov r9d, 2
mov qword [rsp + 0x20], rax
mov r8, rbx
movq rdx, xmm6
call qword [sym.imp.ntoskrnl.exe_MmCopyMemory]
test eax, eax
jns 0x140005566
test r13, r13
je 0x1400056f3
jmp 0x1400056e9
xor r12d, r12d
cmp qword [rsp + 0x38], r12
jbe 0x1400056e9
lea rax, [r12 - 0x3c]
sub rax, r13
lea r15, [r13 + 0x3c]
mov qword [rsp + 0x58], rax
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x1400055dc
mov eax, 0x5a4d
cmp word [r15 - 0x3c], ax
jne 0x1400055dc
mov rcx, qword [rsp + 0x38]
movsxd rdx, r12d
mov rax, rcx
sub rax, rdx
mov qword [rsp + 0x60], rdx
cmp rax, 0x1000
jbe 0x1400055e1
movsxd rbx, dword [r15]
add rbx, qword [rsp + 0x58]
add rbx, r15
add rbx, r13
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x1400055dc
cmp dword [rbx], 0x4550
je 0x1400055f5
mov rcx, qword [rsp + 0x38]
inc r12d
inc r15
movsxd rax, r12d
cmp rax, rcx
jae 0x1400056e4
jmp 0x140005585
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x328
call fcn.14000d740
mov rax, qword [rsp + 0x60]
add rax, qword [rsp + 0x68]
movups xmm0, xmmword [0x14000dad0]
mov qword [rbp - 0x60], rax
mov eax, dword [rbx + 0x50]
mov qword [rbp - 0x58], rax
mov eax, dword [0x14000dae0]
mov dword [rbp - 0x38], eax
mov eax, 3
mov word [rbp + 0x2c4], ax
movups xmmword [rbp - 0x48], xmm0
cmp rsi, qword [rsp + 0x50]
je 0x1400056c0
mov edx, 6
lea rax, [rbp - 0x60]
mov rcx, rsi
lea r8d, [rdx + 0x7a]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
add rcx, r8
movups xmm1, xmmword [rax + 0x70]
add rax, r8
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x140005652
movups xmm0, xmmword [rax]
add rsi, 0x328
mov qword [rsp + 0x48], rsi
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
mov rax, qword [rax + 0x20]
mov qword [rcx + 0x20], rax
jmp 0x1400056d6
lea r8, [rbp - 0x60]
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.14000428c
mov rsi, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x70]
lea rdx, [rbp - 0x60]
call fcn.1400046a4
mov r15d, dword [rsp + 0x34]
xor edx, edx
mov rcx, r13
call fcn.140008b4c
inc r15d
add rdi, 0x18
mov dword [rsp + 0x34], r15d
cmp r15d, dword [r14]
jb 0x140005511
mov rdi, qword [rsp + 0x78]
mov r12, qword [rsp + 0x50]
jmp 0x140005719
mov rsi, qword [rsp + 0x48]
xor edx, edx
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x14000572b
mov rsi, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov qword [rdi], rax
mov qword [rdi + 8], rsi
mov qword [rdi + 0x10], r12
mov rax, rdi
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.14000c300
lea r11, [rsp + 0x3f0]
mov rbx, qword [r11 + 0x50]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret