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

Disassembly:
push rbx
push r12
push r13
sub rsp, 0x50
mov eax, 0x5a4d
xor ebx, ebx
xor r12d, r12d
cmp word [0x18000bed0], ax
mov r13, rcx
je 0x180001d17
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x50
pop r13
pop r12
pop rbx
ret
movsxd rcx, dword [0x18000bf0c]
lea rax, [rcx + 0x108]
cmp rax, 0x55400
jbe 0x180001d44
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x50
pop r13
pop r12
pop rbx
ret
lea rax, [0x18000bed0]
mov qword [rsp + 0x70], rbp
cmp dword [rcx + rax], 0x4550
lea rbp, [rcx + rax]
jne 0x180001d6f
mov eax, 0x8664
cmp word [rbp + 4], ax
jne 0x180001d6f
mov eax, dword [rbp + 0x38]
test al, 1
je 0x180001d8b
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, qword [rsp + 0x70]
xor eax, eax
add rsp, 0x50
pop r13
pop r12
pop rbx
ret
movzx ecx, word [rbp + 0x14]
mov r9, rax
movzx eax, word [rbp + 6]
mov qword [rsp + 0x80], rdi
test eax, eax
je 0x180001dd2
lea rdx, [rcx + rbp + 0x24]
mov r8d, eax
nop word [rax + rax]
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x180001dbe
mov eax, dword [rdx]
add rax, r9
jmp 0x180001dc2
mov eax, dword [rdx]
add eax, ecx
cmp rax, rbx
cmova rbx, rax
add rdx, 0x28
dec r8
jne 0x180001db0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov r11d, dword [rsp + 0x24]
mov eax, dword [rbp + 0x50]
lea rdi, [rax + r11 - 1]
lea rax, [r11 - 1]
lea rcx, [r11 + rbx - 1]
not rax
and rdi, rax
lea rax, [r11 - 1]
not rax
and rcx, rax
cmp rdi, rcx
je 0x180001e1a
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180001f90
mov rcx, qword [rbp + 0x30]
mov r9d, 4
mov r8d, 0x3000
mov rdx, rdi
mov qword [rsp + 0x78], rsi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180001e6d
lea r9d, [rax + 4]
mov r8d, 0x3000
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180001e6d
lea ecx, [rax + 0xe]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180001f8b
lea rcx, [rsi + rdi]
mov qword [rsp + 0x88], r14
movabs r14, 0xffffffff00000000
mov rax, rsi
and rcx, r14
and rax, r14
cmp rax, rcx
jae 0x180001ee3
mov ecx, 0x10
call fcn.1800023f4
mov rbx, rax
test rax, rax
je 0x180001fc6
mov qword [rax], r12
mov r9d, 4
mov r8d, 0x3000
mov rdx, rdi
xor ecx, ecx
mov qword [rax + 8], rsi
mov r12, rax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
je 0x180001fa7
lea rcx, [rax + rdi]
and rax, r14
and rcx, r14
cmp rax, rcx
jb 0x180001e91
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
lea r8d, [rdx + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x180001fc6
mov qword [rax + 8], rsi
movzx eax, word [rbp + 0x16]
mov qword [rdi + 0x58], 0
shr eax, 0xd
and eax, 1
mov dword [rdi + 0x20], eax
lea rax, [0x180001c90]
mov qword [rdi + 0x28], rax
lea rax, [0x180001ca0]
mov qword [rdi + 0x30], rax
lea rax, [0x180001cb0]
mov qword [rdi + 0x38], rax
lea rax, [0x180001cc0]
mov qword [rdi + 0x40], rax
lea rax, [0x180001cd0]
mov qword [rdi + 0x48], rax
mov eax, dword [rsp + 0x24]
mov qword [rdi + 0x70], r12
mov dword [rdi + 0x68], eax
mov edx, dword [rbp + 0x54]
cmp rdx, 0x55400
jbe 0x180001fdc
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rdi
call fcn.180002110
xor eax, eax
mov r14, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x70]
add rsp, 0x50
pop r13
pop r12
pop rbx
ret
mov rcx, rbx
lea rdx, [0x180001ca0]
xor r8d, r8d
call fcn.180001610
mov ecx, 0xe
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x180001f81
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, r12
jmp 0x180001faa
mov r9d, 4
mov r8d, 0x1000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rbp + 0x54]
lea rdx, [0x18000bed0]
mov rcx, rax
mov rbx, rax
call fcn.180005a70
movsxd rax, dword [0x18000bf0c]
mov rdx, rdi
add rax, rbx
mov rcx, rbp
mov qword [rdi], rax
mov qword [rax + 0x30], rsi
call fcn.180001680
test eax, eax
je 0x180001f79
mov rax, qword [rdi]
mov rdx, qword [rax + 0x30]
sub rdx, qword [rbp + 0x30]
je 0x180002045
mov rcx, rdi
call fcn.180001a20
mov dword [rdi + 0x24], eax
jmp 0x18000204c
mov dword [rdi + 0x24], 1
mov rcx, rdi
call fcn.180001af0
test eax, eax
je 0x180001f79
mov rcx, rdi
call fcn.1800017b0
test eax, eax
je 0x180001f79
mov rax, qword [rdi]
mov rbp, qword [rdi + 8]
mov ecx, dword [rax + 0xd0]
test ecx, ecx
je 0x1800020a9
mov rbx, qword [rcx + rbp + 0x18]
test rbx, rbx
je 0x1800020a9
mov rax, qword [rbx]
test rax, rax
je 0x1800020a9
nop
xor r8d, r8d
mov rcx, rbp
lea edx, [r8 + 1]
call rax
mov rax, qword [rbx + 8]
add rbx, 8
test rax, rax
jne 0x180002090
mov rax, qword [rdi]
mov ecx, dword [rax + 0x28]
test ecx, ecx
je 0x1800020f3
cmp dword [rdi + 0x20], 0
lea rax, [rsi + rcx]
je 0x1800020e7
mov r8, r13
mov edx, 1
mov rcx, rsi
call rax
test eax, eax
jne 0x1800020d8
mov ecx, 0x45a
jmp 0x180001f73
mov dword [rdi + 0x1c], 1
mov rax, rdi
jmp 0x180001f83
mov qword [rdi + 0x60], rax
mov rax, rdi
jmp 0x180001f83
mov qword [rdi + 0x60], 0
mov rax, rdi
jmp 0x180001f83