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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r12
push r13
push r15
sub rsp, 0x60
xor r12d, r12d
mov eax, 0x5a4d
cmp word [0x180040c20], ax
mov ebx, r12d
mov esi, r12d
jne 0x18000322d
movsxd rcx, dword [0x180040c5c]
lea rax, [rcx + 0x108]
cmp rax, 0x37400
jbe 0x180002bd4
lea ecx, [r12 + 0xd]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180002dc4
lea r13, [0x180040c20]
cmp dword [rcx + r13], 0x4550
lea r15, [rcx + r13]
jne 0x18000322d
mov eax, 0x8664
cmp word [r15 + 4], ax
jne 0x18000322d
mov eax, dword [r15 + 0x38]
test al, 1
jne 0x18000322d
movzx ecx, word [r15 + 0x14]
mov r9d, eax
movzx eax, word [r15 + 6]
add rcx, 0x24
cmp r12w, ax
jae 0x180002c4b
add rcx, r15
mov r8d, eax
mov eax, dword [rcx + 4]
mov edx, dword [rcx]
test eax, eax
jne 0x180002c35
lea rax, [r9 + rdx]
jmp 0x180002c37
add eax, edx
cmp rax, rbx
cmovbe rax, rbx
add rcx, 0x28
mov rbx, rax
sub r8, 1
jne 0x180002c26
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edx, dword [rsp + 0x34]
mov eax, dword [r15 + 0x50]
lea rbp, [rdx - 1]
add rbp, rax
lea rcx, [rdx - 1]
not rcx
lea rax, [rdx - 1]
add rax, rbx
and rbp, rcx
and rax, rcx
cmp rbp, rax
jne 0x18000322d
mov rcx, qword [r15 + 0x30]
mov r9d, 4
mov qword [rsp + 0x90], rdi
mov r8d, 0x3000
mov rdx, rbp
mov qword [rsp + 0x98], r14
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
test rax, rax
jne 0x180002cd4
lea r9d, [rax + 4]
mov r8d, 0x3000
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
test rax, rax
je 0x180002da7
movabs rbx, 0xffffffff00000000
lea rcx, [r14 + rbp]
mov rax, r14
and rcx, rbx
and rax, rbx
cmp rax, rcx
jae 0x180002d42
mov ecx, 0x10
call fcn.1800110b0
mov rdi, rax
test rax, rax
je 0x180002e09
mov qword [rax], rsi
mov r9d, 4
mov r8d, 0x3000
mov qword [rax + 8], r14
mov rdx, rbp
xor ecx, ecx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
test rax, rax
je 0x180002de0
lea rcx, [rax + rbp]
and rax, rbx
and rcx, rbx
cmp rax, rcx
jb 0x180002cf0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
lea r8d, [rdx + 0x70]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x180002e4c
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test rsi, rsi
je 0x180002da7
nop dword [rax]
mov rcx, qword [rsi + 8]
xor r9d, r9d
xor edx, edx
mov r8d, 0x8000
call sub.KERNEL32.dll_VirtualFree
mov rbx, qword [rsi]
mov rcx, rsi
call fcn.180010eb8
mov rsi, rbx
test rbx, rbx
jne 0x180002d80
mov ecx, 0xe
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rdi, qword [rsp + 0x90]
mov r14, qword [rsp + 0x98]
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r13
pop r12
pop rsi
pop rbp
ret
mov rcx, qword [rdi + 8]
xor r9d, r9d
xor edx, edx
mov r8d, 0x8000
call sub.KERNEL32.dll_VirtualFree
mov rbx, qword [rdi]
mov rcx, rdi
call fcn.180010eb8
mov rdi, rbx
test rbx, rbx
jne 0x180002de0
jmp 0x180002da7
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test rsi, rsi
je 0x180002da7
nop
mov rcx, qword [rsi + 8]
xor r9d, r9d
xor edx, edx
mov r8d, 0x8000
call sub.KERNEL32.dll_VirtualFree
mov rbx, qword [rsi]
mov rcx, rsi
call fcn.180010eb8
mov rsi, rbx
test rbx, rbx
jne 0x180002e20
jmp 0x180002da7
mov qword [rax + 8], r14
movzx eax, word [r15 + 0x16]
shr eax, 0xd
and eax, 1
mov qword [rdi + 0x58], r12
mov dword [rdi + 0x20], eax
lea rax, [0x180002b30]
mov qword [rdi + 0x28], rax
lea rax, [sub.KERNEL32.dll_VirtualFree]
mov qword [rdi + 0x30], rax
lea rax, [0x180002b50]
mov qword [rdi + 0x38], rax
lea rax, [0x180002b60]
mov qword [rdi + 0x40], rax
lea rax, [0x180002b70]
mov qword [rdi + 0x48], rax
mov eax, dword [rsp + 0x34]
mov dword [rdi + 0x68], eax
mov qword [rdi + 0x70], rsi
mov eax, dword [r15 + 0x54]
cmp eax, 0x37400
jbe 0x180002f9e
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [rdi + 0x1c], r12d
je 0x180002eda
mov rax, qword [rdi]
xor r8d, r8d
mov rcx, qword [rdi + 8]
xor edx, edx
mov r9d, dword [rax + 0x28]
add r9, rcx
call r9
mov rcx, qword [rdi + 0x50]
call fcn.180010eb8
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x180002f2d
cmp dword [rdi + 0x18], r12d
jle 0x180002f28
mov rbx, r12
nop word [rax + rax]
mov rcx, qword [rdi + 0x10]
mov rax, qword [rcx + rbx]
test rax, rax
je 0x180002f1b
mov rdx, qword [rdi + 0x58]
mov rcx, rax
call qword [rdi + 0x48]
mov rcx, qword [rdi + 0x10]
inc r12d
add rbx, 8
cmp r12d, dword [rdi + 0x18]
jl 0x180002f00
call fcn.180010eb8
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x180002f45
mov r9, qword [rdi + 0x58]
xor edx, edx
mov r8d, 0x8000
call qword [rdi + 0x30]
mov rsi, qword [rdi + 0x70]
mov rbp, qword [rdi + 0x58]
mov r14, qword [rdi + 0x30]
test rsi, rsi
je 0x180002f85
nop word [rax + rax]
mov rcx, qword [rsi + 8]
mov r9, rbp
xor edx, edx
mov r8d, 0x8000
call r14
mov rbx, qword [rsi]
mov rcx, rsi
call fcn.180010eb8
mov rsi, rbx
test rbx, rbx
jne 0x180002f60
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180002db2
mov rdx, rax
mov r9d, 4
mov r8d, 0x1000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [r15 + 0x54]
mov rdx, r13
mov rcx, rax
mov rbx, rax
call fcn.18000b7e0
movsxd rax, dword [0x180040c5c]
mov r13d, r12d
add rax, rbx
mov qword [rdi], rax
mov qword [rax + 0x30], r14
mov rcx, qword [rdi]
mov rbp, qword [rdi + 8]
movzx esi, word [rcx + 0x14]
add rsi, 0x24
cmp r12w, word [rcx + 6]
jae 0x1800030c0
add rsi, rcx
nop dword [rax]
mov edx, dword [rsi + 4]
test edx, edx
jne 0x180003051
movsxd rax, dword [r15 + 0x38]
test eax, eax
jle 0x1800030a9
mov ecx, dword [rsi]
lea r9d, [rdx + 4]
mov rbx, rax
add rcx, rbp
mov rax, qword [rdi + 0x58]
mov rdx, rbx
mov r8d, 0x1000
mov qword [rsp + 0x20], rax
call qword [rdi + 0x28]
test rax, rax
je 0x180002ebe
mov ecx, dword [rsi]
mov r8, rbx
add rcx, rbp
xor edx, edx
mov dword [rsi - 4], ecx
call fcn.18000beb0
jmp 0x1800030a9
mov ecx, dword [rsi + 8]
add ecx, edx
cmp ecx, 0x37400
ja 0x180002eb3
mov ecx, dword [rsi]
mov r9d, 4
mov rax, qword [rdi + 0x58]
add rcx, rbp
mov r8d, 0x1000
mov qword [rsp + 0x20], rax
call qword [rdi + 0x28]
test rax, rax
je 0x180002ebe
mov ebx, dword [rsi]
lea rax, [0x180040c20]
mov edx, dword [rsi + 8]
add rbx, rbp
mov r8d, dword [rsi + 4]
mov rcx, rbx
add rdx, rax
call fcn.18000b7e0
mov dword [rsi - 4], ebx
mov rcx, qword [rdi]
inc r13d
add rsi, 0x28
movzx eax, word [rcx + 6]
cmp r13d, eax
jl 0x180003000
mov rbx, qword [rcx + 0x30]
sub rbx, qword [r15 + 0x30]
je 0x180003169
cmp dword [rcx + 0xb4], r12d
jne 0x1800030df
mov eax, r12d
jmp 0x18000316e
mov rsi, qword [rdi + 8]
mov r11d, dword [rcx + 0xb0]
add r11, rsi
mov eax, dword [r11]
test eax, eax
je 0x180003169
nop dword [rax]
nop dword [rax + rax]
mov r9d, dword [r11 + 4]
lea rdx, [r11 + 8]
mov r10d, eax
mov r8d, r12d
add r10, rsi
lea rax, [r9 - 8]
test rax, 0xfffffffffffffffe
jbe 0x18000315c
nop dword [rax]
movzx eax, word [rdx]
mov ecx, eax
shr eax, 0xc
and ecx, 0xfff
cmp eax, 3
je 0x18000313e
cmp eax, 0xa
jne 0x180003142
add qword [rcx + r10], rbx
jmp 0x180003142
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 0x180003120
mov eax, r9d
add r11, rax
mov eax, dword [r11]
test eax, eax
jne 0x180003100
mov eax, 1
mov rcx, rdi
mov dword [rdi + 0x24], eax
call fcn.1800029a0
test eax, eax
je 0x180002ebe
mov rcx, rdi
call fcn.180002710
test eax, eax
je 0x180002ebe
mov rdx, qword [rdi]
mov rcx, rdx
mov eax, dword [rdx + 0xd0]
test eax, eax
je 0x1800031dc
mov rsi, qword [rdi + 8]
mov rbx, qword [rax + rsi + 0x18]
test rbx, rbx
je 0x1800031dc
mov rax, qword [rbx]
test rax, rax
je 0x1800031dc
nop word [rax + rax]
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 1]
call rax
mov rax, qword [rbx + 8]
lea rbx, [rbx + 8]
test rax, rax
jne 0x1800031c0
mov rcx, qword [rdi]
mov eax, dword [rcx + 0x28]
test eax, eax
je 0x180003221
add rax, r14
cmp dword [rdi + 0x20], r12d
je 0x180003215
xor r8d, r8d
mov rcx, r14
lea edx, [r8 + 1]
call rax
test eax, eax
jne 0x180003206
mov ecx, 0x45a
jmp 0x180002eb8
mov dword [rdi + 0x1c], 1
mov rax, rdi
jmp 0x180002db4
mov qword [rdi + 0x60], rax
mov rax, rdi
jmp 0x180002db4
mov qword [rdi + 0x60], r12
mov rax, rdi
jmp 0x180002db4
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180002dc4