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

Disassembly:
mov r11, rsp
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [r11 - 0x5f]
sub rsp, 0xd0
mov rax, qword [0x180023008]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov qword [r11 - 0x30], r12
mov r14, rcx
mov qword [r11 - 0x40], r15
mov ecx, 0xc38
mov r15, r8
mov qword [rbp - 0x49], r8
mov r8d, edx
mov r12d, r9d
xor edx, edx
mov qword [rbp - 0x51], 0
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x180002048
xor edx, edx
mov qword [rsp + 0xc0], r13
lea r8d, [rbx + 0x30]
mov qword [rbp - 0x61], 0x2800
lea rcx, [rbp - 0x41]
call qword [0x180024ca0]
mov r13d, 0x2000
mov r15d, 0x5a4d
nop dword [rax]
mov rdi, qword [rbp - 0x29]
lea r8, [rbp - 0x41]
add rdi, qword [rbp - 0x41]
mov r9d, 0x30
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp dword [rbp - 0x21], 0x1000
jne 0x180001f50
cmp dword [rbp - 0x19], 0x1000000
jne 0x180001f50
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x1000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor edx, edx
mov r8d, 0x1000
mov rcx, rax
mov rbx, rax
call qword [0x180024ca0]
lea rax, [rbp - 0x11]
mov r9d, 0x1000
mov r8, rbx
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp r15w, word [rbx]
jne 0x180001f50
movsxd rax, dword [rbx + 0x3c]
cmp dword [rax + rbx], 0x4550
jne 0x180001f50
test word [rax + rbx + 0x16], r13w
jne 0x180001f50
mov rbx, qword [rbp - 0x61]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8, qword [rbp - 0x61]
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [0x180024ca0]
mov r9, qword [rbp - 0x61]
lea rax, [rbp - 0x61]
mov r8, rbx
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov r15, qword [rbp - 0x49]
mov r13, qword [rsp + 0xc0]
mov r9d, 0x1000
mov dword [rsp + 0x20], 4
mov r8, r12
xor edx, edx
mov rcx, r14
mov rsi, r12
call qword [0x180024cd8]
mov r9, r12
mov r8, r15
mov rdi, rax
mov rcx, r14
lea rax, [rbp - 0x51]
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [0x180024ce0]
xor edx, edx
lea rcx, [rbp - 9]
lea r8d, [rdx + 0x14]
call qword [0x180024ca0]
mov dword [rbp - 0x69], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rbp - 0x69]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
lea rcx, [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [rbp - 0x41]
mov r15, qword [rsp + 0xb8]
mov r12, qword [rsp + 0xc8]
cmp ax, 9
je 0x1800020d9
cmp ax, 6
jne 0x1800020df
cmp dword [rbp - 0x69], 0
je 0x180002111
mov edx, 0x90
lea rcx, [rbp - 9]
lea r8d, [rdx - 0x7c]
call qword [0x180024ca0]
mov eax, dword [rbx + 0x3c]
mov edx, dword [rax + rbx + 0x34]
mov eax, dword [rax + rbx + 0x28]
add edx, eax
mov eax, edi
mov ebx, edx
sub eax, edx
mov byte [rbp - 9], 0xe9
sub eax, 5
mov dword [rbp - 8], eax
jmp 0x18000212e
mov eax, dword [rbx + 0x3c]
add rax, rbx
mov ebx, dword [rax + 0x28]
add rbx, qword [rax + 0x30]
mov word [rbp - 9], 0xb848
mov qword [rbp - 7], rdi
mov word [rbp + 1], 0xc350
mov r9d, 0x40
lea rax, [rbp - 0x59]
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov rcx, r14
lea r8d, [r9 - 0x2c]
call qword [0x180024cc0]
lea rax, [rbp - 0x51]
mov r9d, 0x14
lea r8, [rbp - 9]
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, r14
call qword [0x180024ce0]
lea rax, [rbp - 0x59]
mov r9d, 0x40
mov r8, rsi
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, r14
call qword [0x180024cc0]
mov eax, 1
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.180002cc0
add rsp, 0xd0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret