Function at 0x180001c30
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, 0xc0
mov rax, qword [0x180020008]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov qword [r11 + 0x10], r12
mov r14, rcx
mov qword [r11 - 0x30], r13
xor r13d, r13d
mov qword [r11 - 0x38], r15
mov r15, r8
mov r12d, r9d
mov qword [rbp - 0x49], r13
test rcx, rcx
jne 0x180001c7b
mov esi, r13d
jmp 0x180001d94
xor edx, edx
mov qword [rbp - 0x51], 0x2800
lea rcx, [rbp - 0x39]
lea r8d, [rdx + 0x30]
call qword [0x1800221a8]
mov esi, 0x2000
mov r13d, 0x5a4d
nop
mov rdi, qword [rbp - 0x21]
lea r8, [rbp - 0x39]
add rdi, qword [rbp - 0x39]
mov r9d, 0x30
mov rdx, rdi
mov rcx, r14
call qword [0x1800221c8]
cmp dword [rbp - 0x19], 0x1000
jne 0x180001ca0
cmp dword [rbp - 0x11], 0x1000000
jne 0x180001ca0
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 [0x1800221a8]
lea rax, [rbp - 9]
mov r9d, 0x1000
mov r8, rbx
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, r14
call qword [0x1800221d0]
cmp r13w, word [rbx]
jne 0x180001ca0
movsxd rax, dword [rbx + 0x3c]
cmp dword [rax + rbx], 0x4550
jne 0x180001ca0
test word [rax + rbx + 0x16], si
jne 0x180001ca0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbp - 0x51]
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8, qword [rbp - 0x51]
xor edx, edx
mov rcx, rax
mov rsi, rax
call qword [0x1800221a8]
mov r9, qword [rbp - 0x51]
lea rax, [rbp - 0x51]
mov r8, rsi
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, r14
call qword [0x1800221d0]
test eax, eax
mov r13d, 0
cmove rsi, r13
mov r9d, 0x1000
mov dword [rsp + 0x20], 0x40
mov r8, r12
xor edx, edx
mov rcx, r14
call qword [0x1800221f8]
mov r9, r12
mov r8, r15
mov rdi, rax
mov rcx, r14
lea rax, [rbp - 0x49]
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [0x180022200]
xor edx, edx
lea rcx, [rbp - 1]
lea r8d, [rdx + 0x14]
call qword [0x1800221a8]
mov dword [rbp - 0x59], r13d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rbp - 0x59]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
lea rcx, [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [rbp - 0x39]
mov r15, qword [rsp + 0xb0]
mov r13, qword [rsp + 0xb8]
mov r12, qword [rsp + 0xf8]
cmp ax, 9
je 0x180001e27
cmp ax, 6
jne 0x180001e2d
cmp dword [rbp - 0x59], 0
je 0x180001e5d
mov edx, 0x90
lea rcx, [rbp - 1]
lea r8d, [rdx - 0x7c]
call qword [0x1800221a8]
mov eax, dword [rsi + 0x3c]
mov edx, dword [rax + rsi + 0x34]
mov eax, dword [rax + rsi + 0x28]
add edx, eax
sub edi, edx
mov ebx, edx
sub edi, 5
mov byte [rbp - 1], 0xe9
mov dword [rbp], edi
jmp 0x180001e79
mov eax, dword [rsi + 0x3c]
mov ebx, dword [rax + rsi + 0x28]
add rbx, qword [rax + rsi + 0x30]
mov word [rbp - 1], 0xb848
mov qword [rbp + 1], rdi
mov word [rbp + 9], 0xc350
mov r9d, 0x40
lea rax, [rbp - 0x41]
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov rcx, r14
lea r8d, [r9 - 0x2c]
call qword [0x1800221e0]
lea rax, [rbp - 0x49]
mov r9d, 0x14
lea r8, [rbp - 1]
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, r14
call qword [0x180022200]
mov eax, 1
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.180002a50
add rsp, 0xc0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret