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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rdi
push r12
push r13
push r15
sub rsp, 0x68
mov r12, rdx
mov r13, rcx
xor edx, edx
mov ebx, edx
mov edi, edx
cmp r12, 0x40
jb 0x1400028f7
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140002ebf
movsxd rcx, dword [rcx + 0x3c]
lea rax, [rcx + 0x108]
cmp r12, rax
jae 0x140002912
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x68
pop r15
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret
cmp dword [rcx + r13], 0x4550
lea r15, [rcx + r13]
jne 0x140002ebf
mov eax, 0x8664
cmp word [r15 + 4], ax
jne 0x140002ebf
mov eax, dword [r15 + 0x38]
test al, 1
jne 0x140002ebf
movzx ecx, word [r15 + 0x14]
mov r9d, eax
movzx eax, word [r15 + 6]
add rcx, 0x24
cmp dx, ax
jae 0x140002985
add rcx, r15
mov r8d, eax
nop dword [rax]
mov eax, dword [rcx + 4]
mov edx, dword [rcx]
test eax, eax
jne 0x14000296f
lea rax, [r9 + rdx]
jmp 0x140002971
add eax, edx
cmp rax, rbx
cmovbe rax, rbx
add rcx, 0x28
mov rbx, rax
sub r8, 1
jne 0x140002960
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 0x140002ebf
mov rcx, qword [r15 + 0x30]
mov r9d, 4
mov qword [rsp + 0xa0], rsi
mov r8d, 0x3000
mov rdx, rbp
mov qword [rsp + 0x60], r14
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
test rax, rax
jne 0x140002a0b
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 0x140002af8
movabs rbx, 0xffffffff00000000
lea rcx, [r14 + rbp]
mov rax, r14
and rcx, rbx
and rax, rbx
cmp rax, rcx
jae 0x140002a83
nop word [rax + rax]
mov ecx, 0x10
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140002b5a
mov qword [rax], rdi
mov r9d, 4
mov r8d, 0x3000
mov qword [rax + 8], r14
mov rdx, rbp
xor ecx, ecx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
test rax, rax
je 0x140002b20
lea rcx, [rax + rbp]
and rax, rbx
and rcx, rbx
cmp rax, rcx
jb 0x140002a30
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 qword [rsp + 0xb8], rax
mov rsi, rax
test rax, rax
jne 0x140002bad
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test rdi, rdi
je 0x140002af8
mov rsi, qword [rsp + 0xd8]
nop dword [rax]
mov rcx, qword [rdi + 8]
mov r9, rsi
xor edx, edx
mov r8d, 0x8000
call sub.KERNEL32.dll_VirtualFree
mov rbx, qword [rdi]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, rbx
test rbx, rbx
jne 0x140002ad0
mov ecx, 0xe
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rsi, qword [rsp + 0xa0]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
pop r15
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret
mov rdi, qword [rsp + 0xd8]
nop dword [rax + rax]
mov rcx, qword [rsi + 8]
mov r9, rdi
xor edx, edx
mov r8d, 0x8000
call sub.KERNEL32.dll_VirtualFree
mov rbx, qword [rsi]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rsi, rbx
test rbx, rbx
jne 0x140002b30
jmp 0x140002af8
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test rdi, rdi
je 0x140002af8
mov rsi, qword [rsp + 0xd8]
nop dword [rax + rax]
mov rcx, qword [rdi + 8]
mov r9, rsi
xor edx, edx
mov r8d, 0x8000
call sub.KERNEL32.dll_VirtualFree
mov rbx, qword [rdi]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, rbx
test rbx, rbx
jne 0x140002b80
jmp 0x140002af8
mov qword [rax + 8], r14
movzx eax, word [r15 + 0x16]
shr eax, 0xd
and eax, 1
mov dword [rsi + 0x20], eax
lea rax, [0x140002890]
mov qword [rsi + 0x28], rax
lea rax, [sub.KERNEL32.dll_VirtualFree]
mov qword [rsi + 0x30], rax
lea rax, [fcn.1400032e0]
mov qword [rsi + 0x38], rax
lea rax, [0x140003250]
mov qword [rsi + 0x40], rax
lea rax, [0x140003260]
mov qword [rsi + 0x48], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsi + 0x58], rax
mov eax, dword [rsp + 0x34]
mov dword [rsi + 0x68], eax
mov qword [rsi + 0x70], rdi
mov edx, dword [r15 + 0x54]
cmp r12, rdx
jae 0x140002c2e
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rsi
call fcn.140003080
jmp 0x140002b03
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 sub.VCRUNTIME140.dll_memcpy
movsxd rax, dword [r13 + 0x3c]
add rax, rbx
mov qword [rsi], rax
mov qword [rax + 0x30], r14
xor eax, eax
mov rcx, qword [rsi]
mov r12d, eax
mov rbp, qword [rsi + 8]
movzx edi, word [rcx + 0x14]
add rdi, 0x24
cmp ax, word [rcx + 6]
jae 0x140002d41
add rdi, rcx
mov edx, dword [rdi + 4]
test edx, edx
jne 0x140002cd5
movsxd rax, dword [r15 + 0x38]
test eax, eax
jle 0x140002d28
mov ecx, dword [rdi]
lea r9d, [rdx + 4]
mov rbx, rax
add rcx, rbp
mov rax, qword [rsi + 0x58]
mov rdx, rbx
mov r8d, 0x1000
mov qword [rsp + 0x20], rax
call qword [rsi + 0x28]
test rax, rax
je 0x140002c21
mov ecx, dword [rdi]
mov r8, rbx
add rcx, rbp
xor edx, edx
mov dword [rdi - 4], ecx
call sub.VCRUNTIME140.dll_memset
jmp 0x140002d28
mov eax, dword [rdi + 8]
add eax, edx
cmp qword [rsp + 0xa8], rax
jb 0x140002c16
mov ecx, dword [rdi]
mov r9d, 4
mov rax, qword [rsi + 0x58]
add rcx, rbp
mov r8d, 0x1000
mov qword [rsp + 0x20], rax
call qword [rsi + 0x28]
test rax, rax
je 0x140002c21
mov ebx, dword [rdi]
mov edx, dword [rdi + 8]
add rbx, rbp
mov r8d, dword [rdi + 4]
mov rcx, rbx
add rdx, r13
call sub.VCRUNTIME140.dll_memcpy
mov dword [rdi - 4], ebx
mov rcx, qword [rsi]
inc r12d
add rdi, 0x28
movzx eax, word [rcx + 6]
cmp r12d, eax
jl 0x140002c84
xor eax, eax
mov rbx, qword [rcx + 0x30]
sub rbx, qword [r15 + 0x30]
je 0x140002df1
cmp dword [rcx + 0xb4], 0
je 0x140002df6
mov rdi, qword [rsi + 8]
mov r11d, dword [rcx + 0xb0]
add r11, rdi
mov eax, dword [r11]
test eax, eax
je 0x140002df1
xor esi, esi
nop word [rax + rax]
mov r10d, dword [r11 + 4]
lea rdx, [r11 + 8]
mov r9d, eax
mov r8d, esi
add r9, rdi
lea rax, [r10 - 8]
test rax, 0xfffffffffffffffe
jbe 0x140002ddc
nop dword [rax]
movzx eax, word [rdx]
mov ecx, eax
shr eax, 0xc
and ecx, 0xfff
cmp eax, 3
je 0x140002dbe
cmp eax, 0xa
jne 0x140002dc2
add qword [rcx + r9], rbx
jmp 0x140002dc2
add dword [rcx + r9], ebx
mov r10d, dword [r11 + 4]
inc r8d
add rdx, 2
mov eax, r8d
lea rcx, [r10 - 8]
shr rcx, 1
cmp rax, rcx
jb 0x140002da0
mov eax, r10d
add r11, rax
mov eax, dword [r11]
test eax, eax
jne 0x140002d80
mov rsi, qword [rsp + 0xb8]
mov eax, 1
mov rcx, rsi
mov dword [rsi + 0x24], eax
call fcn.140002700
test eax, eax
je 0x140002c21
mov rcx, rsi
call fcn.140002470
test eax, eax
je 0x140002c21
mov rdx, qword [rsi]
mov rcx, rdx
mov eax, dword [rdx + 0xd0]
test eax, eax
je 0x140002e5c
mov rdi, qword [rsi + 8]
mov rbx, qword [rax + rdi + 0x18]
test rbx, rbx
je 0x140002e5c
mov rax, qword [rbx]
test rax, rax
je 0x140002e5c
nop
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 0x140002e40
mov rcx, qword [rsi]
mov eax, dword [rcx + 0x28]
test eax, eax
je 0x140002eaf
add rax, r14
cmp dword [rsi + 0x20], 0
je 0x140002ea3
xor r8d, r8d
mov rcx, r14
lea edx, [r8 + 1]
call rax
test eax, eax
jne 0x140002e94
mov ecx, 0x45a
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rsi
call fcn.140003080
jmp 0x140002b03
mov dword [rsi + 0x1c], 1
mov rax, rsi
jmp 0x140002b05
mov qword [rsi + 0x60], rax
mov rax, rsi
jmp 0x140002b05
mov qword [rsi + 0x60], 0
mov rax, rsi
jmp 0x140002b05
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x68
pop r15
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret