Function at 0x180001e80
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 0x180001ed4
mov eax, 0x5a4d
cmp word [0x1800239f0], ax
jne 0x18000233f
movsxd rcx, dword [0x180023a2c]
lea rax, [rcx + 0x108]
cmp rdx, rax
jae 0x180001ee6
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180002038
lea r14, [0x1800239f0]
cmp dword [rcx + r14], 0x4550
lea rbp, [rcx + r14]
jne 0x18000233f
mov eax, 0x8664
cmp word [rbp + 4], ax
jne 0x18000233f
mov eax, dword [rbp + 0x38]
test al, 1
jne 0x18000233f
movzx ecx, word [rbp + 0x14]
mov r9d, eax
movzx eax, word [rbp + 6]
add rcx, 0x24
cmp r15w, ax
jae 0x180001f5a
add rcx, rbp
movzx r8d, ax
mov eax, dword [rcx + 4]
mov edx, dword [rcx]
test eax, eax
jne 0x180001f44
lea rax, [r9 + rdx]
jmp 0x180001f46
add eax, edx
cmp rax, rbx
cmovbe rax, rbx
add rcx, 0x28
mov rbx, rax
sub r8, 1
jne 0x180001f35
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 0x18000233f
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 0x180001fdf
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 0x180001fdf
lea ecx, [rax + 0xe]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180002030
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 0x18000205a
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.180002430
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, [0x180001e50]
mov qword [rsi + 0x28], rax
lea rax, [0x180001e60]
mov qword [rsi + 0x30], rax
lea rax, [0x180001e70]
mov qword [rsi + 0x38], rax
mov eax, dword [rsp + 0x2c]
mov dword [rsi + 0x50], eax
mov edx, dword [rbp + 0x54]
cmp r12, rdx
jae 0x1800020b7
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rsi
call fcn.180002360
jmp 0x180002026
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.1800048a0
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 0x1800021c8
add rdi, rcx
nop dword [rax]
mov ecx, dword [rdi + 4]
test ecx, ecx
jne 0x18000215d
movsxd rax, dword [rbp + 0x38]
test eax, eax
jle 0x1800021af
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 0x1800020aa
mov ecx, dword [rdi]
mov r8, rbx
add rcx, r14
xor edx, edx
mov dword [rdi - 4], ecx
call fcn.180004680
jmp 0x1800021af
mov eax, dword [rdi + 8]
add eax, ecx
cmp r12, rax
jb 0x18000209f
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 0x1800020aa
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.1800048a0
mov dword [rdi - 4], ebx
mov rcx, qword [rsi]
inc r15d
add rdi, 0x28
movzx eax, word [rcx + 6]
cmp r15d, eax
jl 0x180002110
xor eax, eax
mov rbx, qword [rcx + 0x30]
sub rbx, qword [rbp + 0x30]
je 0x18000226e
cmp dword [rcx + 0xb4], 0
je 0x180002273
mov rdi, qword [rsi + 8]
mov r11d, dword [rcx + 0xb0]
add r11, rdi
mov eax, dword [r11]
test eax, eax
je 0x18000226e
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 0x18000225c
nop dword [rax]
movzx eax, word [rdx]
mov ecx, eax
shr eax, 0xc
and ecx, 0xfff
cmp eax, 3
je 0x18000223e
cmp eax, 0xa
jne 0x180002242
add qword [rcx + r10], rbx
jmp 0x180002242
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 0x180002220
mov eax, r9d
add r11, rax
mov eax, dword [r11]
test eax, eax
jne 0x180002200
mov rsi, qword [rsp + 0x20]
mov eax, 1
mov rcx, rsi
mov dword [rsi + 0x24], eax
call fcn.180001ca0
test eax, eax
je 0x1800020aa
mov rcx, rsi
call fcn.180001a80
test eax, eax
je 0x1800020aa
mov rdx, qword [rsi]
mov rcx, rdx
mov eax, dword [rdx + 0xd0]
test eax, eax
je 0x1800022dc
mov rdi, qword [rsi + 8]
mov rbx, qword [rax + rdi + 0x18]
test rbx, rbx
je 0x1800022dc
mov rax, qword [rbx]
test rax, rax
je 0x1800022dc
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 0x1800022c0
mov rcx, qword [rsi]
mov eax, dword [rcx + 0x28]
test eax, eax
je 0x18000232f
add rax, r13
cmp dword [rsi + 0x20], 0
je 0x180002323
xor r8d, r8d
mov rcx, r13
lea edx, [r8 + 1]
call rax
test eax, eax
jne 0x180002314
mov ecx, 0x45a
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rsi
call fcn.180002360
jmp 0x180002026
mov dword [rsi + 0x1c], 1
mov rax, rsi
jmp 0x180002028
mov qword [rsi + 0x48], rax
mov rax, rsi
jmp 0x180002028
mov qword [rsi + 0x48], 0
mov rax, rsi
jmp 0x180002028
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180002038