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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x180023010]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor r15d, r15d
mov r12, rdx
mov ebx, r15d
cmp rdx, 0x40
jb 0x180001ef4
mov eax, 0x5a4d
cmp word [0x1800239f0], ax
jne 0x18000235f
movsxd rcx, dword [0x180023a2c]
lea rax, [rcx + 0x108]
cmp rdx, rax
jae 0x180001f06
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180002058
lea r14, [0x1800239f0]
cmp dword [rcx + r14], 0x4550
lea rbp, [rcx + r14]
jne 0x18000235f
mov eax, 0x8664
cmp word [rbp + 4], ax
jne 0x18000235f
mov eax, dword [rbp + 0x38]
test al, 1
jne 0x18000235f
movzx ecx, word [rbp + 0x14]
mov r9d, eax
movzx eax, word [rbp + 6]
add rcx, 0x24
cmp r15w, ax
jae 0x180001f7a
add rcx, rbp
movzx r8d, ax
mov eax, dword [rcx + 4]
mov edx, dword [rcx]
test eax, eax
jne 0x180001f64
lea rax, [r9 + rdx]
jmp 0x180001f66
add eax, edx
cmp rax, rbx
cmovbe rax, rbx
add rcx, 0x28
mov rbx, rax
sub r8, 1
jne 0x180001f55
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edx, dword [rsp + 0x2c]
lea r8d, [rdx - 1]
lea edi, [rdx - 1]
not r8d
add edi, dword [rbp + 0x50]
lea rcx, [rdx - 1]
add rcx, rbx
and rdi, r8
and rcx, r8
cmp rdi, rcx
jne 0x18000235f
mov rcx, qword [rbp + 0x30]
mov r9d, 4
mov r8d, 0x3000
mov qword [rsp + 0x98], r13
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r13, rax
test rax, rax
jne 0x180001fff
lea r9d, [rax + 4]
mov r8d, 0x3000
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r13, rax
test rax, rax
jne 0x180001fff
lea ecx, [rax + 0xe]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180002050
mov qword [rsp + 0x90], rsi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
lea r8d, [rdx + 0x50]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x20], rax
mov rsi, rax
test rax, rax
jne 0x18000207a
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea ecx, [rsi + 0xe]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rsi, qword [rsp + 0x90]
mov r13, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180002450
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov qword [rax + 8], r13
movzx eax, word [rbp + 0x16]
shr eax, 0xd
and eax, 1
mov qword [rsi + 0x40], r15
mov dword [rsi + 0x20], eax
lea rax, [0x180001e70]
mov qword [rsi + 0x28], rax
lea rax, [0x180001e80]
mov qword [rsi + 0x30], rax
lea rax, [0x180001e90]
mov qword [rsi + 0x38], rax
mov eax, dword [rsp + 0x2c]
mov dword [rsi + 0x50], eax
mov edx, dword [rbp + 0x54]
cmp r12, rdx
jae 0x1800020d7
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rsi
call fcn.180002380
jmp 0x180002046
mov r9d, 4
mov r8d, 0x1000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rbp + 0x54]
mov rdx, r14
mov rcx, rax
mov rbx, rax
call fcn.1800048c0
movsxd rax, dword [0x180023a2c]
add rax, rbx
mov qword [rsi], rax
mov qword [rax + 0x30], r13
xor eax, eax
mov rcx, qword [rsi]
mov r14, qword [rsi + 8]
movzx edi, word [rcx + 0x14]
add rdi, 0x24
cmp ax, word [rcx + 6]
jae 0x1800021e8
add rdi, rcx
nop dword [rax]
mov ecx, dword [rdi + 4]
test ecx, ecx
jne 0x18000217d
movsxd rax, dword [rbp + 0x38]
test eax, eax
jle 0x1800021cf
mov ecx, dword [rdi]
mov r9d, 4
add rcx, r14
mov r8d, 0x1000
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x1800020ca
mov ecx, dword [rdi]
mov r8, rbx
add rcx, r14
xor edx, edx
mov dword [rdi - 4], ecx
call fcn.1800046a0
jmp 0x1800021cf
mov eax, dword [rdi + 8]
add eax, ecx
cmp r12, rax
jb 0x1800020bf
mov rdx, rcx
mov r9d, 4
mov ecx, dword [rdi]
mov r8d, 0x1000
add rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x1800020ca
mov ebx, dword [rdi]
lea rax, [0x1800239f0]
mov edx, dword [rdi + 8]
add rbx, r14
mov r8d, dword [rdi + 4]
mov rcx, rbx
add rdx, rax
call fcn.1800048c0
mov dword [rdi - 4], ebx
mov rcx, qword [rsi]
inc r15d
add rdi, 0x28
movzx eax, word [rcx + 6]
cmp r15d, eax
jl 0x180002130
xor eax, eax
mov rbx, qword [rcx + 0x30]
sub rbx, qword [rbp + 0x30]
je 0x18000228e
cmp dword [rcx + 0xb4], 0
je 0x180002293
mov rdi, qword [rsi + 8]
mov r11d, dword [rcx + 0xb0]
add r11, rdi
mov eax, dword [r11]
test eax, eax
je 0x18000228e
xor esi, esi
nop word [rax + rax]
mov r9d, dword [r11 + 4]
lea rdx, [r11 + 8]
mov r10d, eax
mov r8d, esi
add r10, rdi
lea rax, [r9 - 8]
test rax, 0xfffffffffffffffe
jbe 0x18000227c
nop dword [rax]
movzx eax, word [rdx]
mov ecx, eax
shr eax, 0xc
and ecx, 0xfff
cmp eax, 3
je 0x18000225e
cmp eax, 0xa
jne 0x180002262
add qword [rcx + r10], rbx
jmp 0x180002262
add dword [rcx + r10], ebx
mov r9d, dword [r11 + 4]
inc r8d
add rdx, 2
mov eax, r8d
lea rcx, [r9 - 8]
shr rcx, 1
cmp rax, rcx
jb 0x180002240
mov eax, r9d
add r11, rax
mov eax, dword [r11]
test eax, eax
jne 0x180002220
mov rsi, qword [rsp + 0x20]
mov eax, 1
mov rcx, rsi
mov dword [rsi + 0x24], eax
call fcn.180001cc0
test eax, eax
je 0x1800020ca
mov rcx, rsi
call fcn.180001aa0
test eax, eax
je 0x1800020ca
mov rdx, qword [rsi]
mov rcx, rdx
mov eax, dword [rdx + 0xd0]
test eax, eax
je 0x1800022fc
mov rdi, qword [rsi + 8]
mov rbx, qword [rax + rdi + 0x18]
test rbx, rbx
je 0x1800022fc
mov rax, qword [rbx]
test rax, rax
je 0x1800022fc
nop dword [rax]
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 1]
call rax
mov rax, qword [rbx + 8]
lea rbx, [rbx + 8]
test rax, rax
jne 0x1800022e0
mov rcx, qword [rsi]
mov eax, dword [rcx + 0x28]
test eax, eax
je 0x18000234f
add rax, r13
cmp dword [rsi + 0x20], 0
je 0x180002343
xor r8d, r8d
mov rcx, r13
lea edx, [r8 + 1]
call rax
test eax, eax
jne 0x180002334
mov ecx, 0x45a
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rsi
call fcn.180002380
jmp 0x180002046
mov dword [rsi + 0x1c], 1
mov rax, rsi
jmp 0x180002048
mov qword [rsi + 0x48], rax
mov rax, rsi
jmp 0x180002048
mov qword [rsi + 0x48], 0
mov rax, rsi
jmp 0x180002048
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180002058