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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov qword [rsp + 0x98], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x48], 0xffffffffffffffff
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
cmp qword [rsp + 0xd8], 0
jne 0x140013082
xor eax, eax
test eax, eax
jne 0x140013075
xor eax, eax
jmp 0x1400135f6
mov eax, dword [rsp + 0xf0]
and eax, 0x28
test eax, eax
je 0x1400130d9
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call fcn.14000fcc4
test eax, eax
jne 0x1400130cd
xor eax, eax
test eax, eax
jne 0x1400130b5
mov ecx, 0xe
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1400135f6
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x58], rax
jmp 0x1400130e6
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x58], rax
xor eax, eax
test eax, eax
jne 0x1400130e6
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140013115
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14001358b
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 0x3c]
mov rax, qword [rsp + 0x58]
add rax, rcx
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
cmp dword [rax], 0x4550
je 0x14001314e
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14001358b
mov rax, qword [rsp + 0xa8]
movzx eax, word [rax + 4]
cmp eax, 0x8664
je 0x140013171
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14001358b
mov rax, qword [rsp + 0xa8]
mov eax, dword [rax + 0x38]
and eax, 1
test eax, eax
je 0x140013193
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14001358b
cmp qword [rsp + 0x40], 0
jne 0x1400131dd
mov rax, qword [rsp + 0xa8]
mov edx, dword [rax + 0x50]
mov r9d, 4
mov r8d, 0x3000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x1400131dd
mov ecx, 0xe
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test eax, eax
jne 0x1400131d2
jmp 0x14001358b
xor eax, eax
test eax, eax
jne 0x1400131dd
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, 0x90
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
jne 0x140013233
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, 0xe
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14001358b
mov rcx, qword [rsp + 0x98]
mov rax, qword [rsp + 0x40]
mov qword [rcx + 0x40], rax
mov rcx, qword [rsp + 0x98]
mov rax, qword [rsp + 0xa8]
mov eax, dword [rax + 0x50]
mov dword [rcx + 0x48], eax
mov rax, qword [rsp + 0xa8]
movzx eax, word [rax + 0x16]
and eax, 0x2000
test eax, eax
je 0x14001327c
mov dword [rsp + 0xb4], 1
jmp 0x140013287
mov dword [rsp + 0xb4], 0
mov rcx, qword [rsp + 0x98]
mov eax, dword [rsp + 0xb4]
mov dword [rcx + 0x28], eax
mov rcx, qword [rsp + 0x98]
mov rax, qword [rsp + 0xd8]
mov qword [rcx + 0x60], rax
mov rcx, qword [rsp + 0x98]
mov eax, dword [rsp + 0xf0]
mov dword [rcx + 0x70], eax
mov rcx, qword [rsp + 0x98]
mov rax, qword [rsp + 0xe8]
mov qword [rcx + 0x68], rax
mov rcx, qword [rsp + 0x98]
mov rax, qword [rsp + 0x28]
mov qword [rcx + 0x50], rax
mov eax, dword [rsp + 0xf0]
and eax, 0x10
test eax, eax
je 0x140013306
mov rcx, qword [rsp + 0x98]
mov rax, qword [rsp + 0xe0]
mov qword [rcx + 0x58], rax
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov r11, qword [rsp + 0x98]
mov eax, dword [rsp + 0x6c]
mov dword [r11 + 0x30], eax
mov rax, qword [rsp + 0xa8]
mov edx, dword [rax + 0x54]
mov r9d, 4
mov r8d, 0x1000
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0xa8]
mov r8d, dword [rax + 0x54]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call fcn.140001790
mov r11, qword [rsp + 0x30]
movsxd rax, dword [r11 + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, qword [rsp + 0x98]
mov qword [rax + 0x38], rcx
mov rcx, qword [rsp + 0x98]
mov rcx, qword [rcx + 0x38]
mov rax, qword [rsp + 0x40]
mov qword [rcx + 0x30], rax
mov r8, qword [rsp + 0x98]
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x58]
call fcn.140010604
test eax, eax
jne 0x1400133b8
jmp 0x1400135bb
mov rcx, qword [rsp + 0xa8]
mov rcx, qword [rcx + 0x30]
mov rax, qword [rsp + 0x40]
sub rax, rcx
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0
je 0x140013405
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x98]
call fcn.140010184
mov r11d, eax
mov rax, qword [rsp + 0x98]
mov dword [rax + 0x2c], r11d
jmp 0x140013414
mov rax, qword [rsp + 0x98]
mov dword [rax + 0x2c], 1
mov rcx, qword [rsp + 0x98]
call fcn.140010054
test eax, eax
jne 0x14001342a
jmp 0x1400135bb
xor eax, eax
test eax, eax
jne 0x14001342a
mov rcx, qword [rsp + 0x98]
call fcn.140012744
test eax, eax
jne 0x140013446
jmp 0x1400135bb
xor eax, eax
test eax, eax
jne 0x140013446
mov rcx, qword [rsp + 0x98]
call fcn.1400111b4
test eax, eax
jne 0x140013462
jmp 0x1400135bb
mov eax, dword [rsp + 0xf0]
and eax, 2
test eax, eax
jne 0x140013486
mov rcx, qword [rsp + 0x98]
call fcn.140010324
test eax, eax
jne 0x140013486
jmp 0x1400135bb
mov eax, dword [rsp + 0xf0]
and eax, 4
test eax, eax
jne 0x1400134aa
mov rcx, qword [rsp + 0x98]
call fcn.14000fed4
test eax, eax
jne 0x1400134aa
jmp 0x1400135bb
xor eax, eax
test eax, eax
jne 0x1400134aa
mov rcx, qword [rsp + 0x98]
call fcn.1400115c4
mov eax, dword [rsp + 0xf0]
and eax, 1
test eax, eax
jne 0x140013572
mov rax, qword [rsp + 0x98]
cmp dword [rax + 0x28], 0
je 0x140013572
mov rax, qword [rsp + 0x98]
cmp qword [rax + 0x80], 0
je 0x140013572
xor eax, eax
test eax, eax
jne 0x1400134f3
mov eax, dword [rsp + 0xf0]
and eax, 0x10
test eax, eax
je 0x140013515
mov qword [rsp + 0xb8], 0
jmp 0x140013525
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0xb8], rax
mov r8, qword [rsp + 0xb8]
mov edx, 1
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x98]
call qword [rax + 0x80]
mov dword [rsp + 0xb0], eax
cmp dword [rsp + 0xb0], 0
jne 0x140013563
mov ecx, 0x45a
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400135bb
mov rax, qword [rsp + 0x98]
mov dword [rax + 0x24], 1
xor eax, eax
test eax, eax
jne 0x140013572
mov rcx, qword [rsp + 0x98]
call fcn.140010db4
xor eax, eax
test eax, eax
jne 0x140013585
cmp qword [rsp + 0x60], 0
je 0x14001359e
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x1400135b1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x98]
jmp 0x1400135f6
xor eax, eax
test eax, eax
jne 0x1400135bb
mov rcx, qword [rsp + 0x98]
call fcn.14000ef34
cmp qword [rsp + 0x60], 0
je 0x1400135e1
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x1400135f4
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0xc8
ret