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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r12
push r13
push r15
sub rsp, 0x70
mov rax, qword [0x14022b0c0]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ebp, ebp
mov eax, 0x5a4d
cmp word [0x1400f5580], ax
mov ebx, ebp
mov edi, ebp
jne 0x140075a06
mov rcx, qword [0x1400f55bc]
movsxd rax, ecx
add rax, 0x108
cmp rax, 0x27841
jbe 0x140075470
lea ecx, [rbp + 0xd]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140075674
movsxd r13, ecx
lea r12, [0x1400f5580]
add r13, r12
cmp dword [r13], 0x4550
jne 0x140075a06
mov eax, 0x8664
cmp word [r13 + 4], ax
jne 0x140075a06
mov eax, dword [r13 + 0x38]
test al, 1
jne 0x140075a06
movzx ecx, word [r13 + 0x14]
mov r9d, eax
movzx eax, word [r13 + 6]
add rcx, 0x24
cmp bp, ax
jae 0x1400754e8
add rcx, r13
mov r8d, eax
mov eax, dword [rcx + 4]
mov edx, dword [rcx]
test eax, eax
jne 0x1400754d2
lea rax, [r9 + rdx]
jmp 0x1400754d4
add eax, edx
cmp rax, rbx
cmovbe rax, rbx
add rcx, 0x28
mov rbx, rax
sub r8, 1
jne 0x1400754c3
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edx, dword [rsp + 0x34]
mov eax, dword [r13 + 0x50]
lea r15, [rdx - 1]
add r15, rax
lea rcx, [rdx - 1]
not rcx
lea rax, [rdx - 1]
add rax, rbx
and r15, rcx
and rax, rcx
cmp r15, rax
jne 0x140075a06
mov rcx, qword [r13 + 0x30]
mov r9d, 4
mov qword [rsp + 0xa8], r14
mov r8d, 0x3000
mov rdx, r15
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0x20], rbp
call sub.KERNEL32.dll_VirtualAlloc
mov r14, rax
test rax, rax
jne 0x140075579
lea r9d, [rax + 4]
mov qword [rsp + 0x20], rbp
mov r8d, 0x3000
mov rdx, r15
xor ecx, ecx
call sub.KERNEL32.dll_VirtualAlloc
mov r14, rax
test rax, rax
je 0x140075657
movabs rbx, 0xffffffff00000000
lea rcx, [r14 + r15]
mov rax, r14
and rcx, rbx
and rax, rbx
cmp rax, rcx
jae 0x1400755eb
mov ecx, 0x10
call fcn.14005b7f0
mov rsi, rax
test rax, rax
je 0x1400756c9
mov qword [rax], rdi
mov r9d, 4
mov r8d, 0x3000
mov qword [rax + 8], r14
mov rdx, r15
mov qword [rsp + 0x20], rbp
xor ecx, ecx
mov rdi, rax
call sub.KERNEL32.dll_VirtualAlloc
mov r14, rax
test rax, rax
je 0x1400756a0
lea rcx, [rax + r15]
and rax, rbx
and rcx, rbx
cmp rax, rcx
jb 0x140075595
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 rsi, rax
test rax, rax
jne 0x14007571c
xor r9d, r9d
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call sub.KERNEL32.dll_VirtualFree
test rdi, rdi
je 0x140075657
nop word [rax + rax]
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.140059050
mov rdi, rbx
test rbx, rbx
jne 0x140075630
mov ecx, 0xe
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rsi, qword [rsp + 0xa0]
mov r14, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140046990
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r13
pop r12
pop rdi
pop rbp
ret
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.140059050
mov rsi, rbx
test rbx, rbx
jne 0x1400756a0
jmp 0x140075657
xor r9d, r9d
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call sub.KERNEL32.dll_VirtualFree
test rdi, rdi
je 0x140075657
nop word [rax + rax]
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.140059050
mov rdi, rbx
test rbx, rbx
jne 0x1400756f0
jmp 0x140075657
mov qword [rax + 8], r14
movzx eax, word [r13 + 0x16]
shr eax, 0xd
and eax, 1
mov qword [rsi + 0x58], rbp
mov dword [rsi + 0x20], eax
lea rax, [sub.KERNEL32.dll_VirtualAlloc]
mov qword [rsi + 0x28], rax
lea rax, [sub.KERNEL32.dll_VirtualFree]
mov qword [rsi + 0x30], rax
lea rax, [0x140075a60]
mov qword [rsi + 0x38], rax
lea rax, [0x140075a50]
mov qword [rsi + 0x40], rax
lea rax, [0x140075a40]
mov qword [rsi + 0x48], rax
mov eax, dword [rsp + 0x34]
mov dword [rsi + 0x68], eax
mov qword [rsi + 0x70], rdi
mov edx, dword [r13 + 0x54]
call fcn.1400761a0
test eax, eax
je 0x140075913
mov edx, dword [r13 + 0x54]
mov r9d, 4
mov r8d, 0x1000
mov qword [rsp + 0x20], rbp
mov rcx, r14
call sub.KERNEL32.dll_VirtualAlloc
mov r8d, dword [r13 + 0x54]
mov rdx, r12
mov rcx, rax
mov rbx, rax
call fcn.1400e0e50
movsxd rcx, dword [0x1400f55bc]
mov r9, rsi
add rcx, rbx
mov r8, r13
mov qword [rsi], rcx
mov qword [rcx + 0x30], r14
call fcn.140076060
test eax, eax
je 0x140075913
mov rax, qword [rsi]
mov rbx, qword [rax + 0x30]
sub rbx, qword [r13 + 0x30]
je 0x140075879
cmp dword [rax + 0xb4], ebp
jne 0x1400757f8
mov eax, ebp
jmp 0x14007587e
mov r11d, dword [rax + 0xb0]
mov rdi, qword [rsi + 8]
add r11, rdi
mov eax, dword [r11]
test eax, eax
je 0x140075879
nop dword [rax]
mov r9d, dword [r11 + 4]
lea rdx, [r11 + 8]
mov r10d, eax
mov r8d, ebp
add r10, rdi
lea rax, [r9 - 8]
test rax, 0xfffffffffffffffe
jbe 0x14007586c
nop dword [rax]
movzx eax, word [rdx]
mov ecx, eax
shr eax, 0xc
and ecx, 0xfff
cmp eax, 3
je 0x14007584e
cmp eax, 0xa
jne 0x140075852
add qword [rcx + r10], rbx
jmp 0x140075852
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 0x140075830
mov eax, r9d
add r11, rax
mov eax, dword [r11]
test eax, eax
jne 0x140075810
mov eax, 1
mov rcx, rsi
mov dword [rsi + 0x24], eax
call fcn.140075a90
test eax, eax
je 0x140075913
mov rcx, rsi
call fcn.140075d90
test eax, eax
je 0x140075913
mov rax, qword [rsi]
mov ecx, dword [rax + 0xd0]
test ecx, ecx
je 0x1400758d9
mov rdi, qword [rsi + 8]
mov rbx, qword [rcx + rdi + 0x18]
test rbx, rbx
je 0x1400758d9
mov rax, qword [rbx]
test rax, rax
je 0x1400758d9
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 0x1400758c0
mov rax, qword [rsi]
mov ecx, dword [rax + 0x28]
test ecx, ecx
je 0x1400759fa
lea rax, [r14 + rcx]
cmp dword [rsi + 0x20], ebp
je 0x1400759ee
xor r8d, r8d
mov rcx, r14
lea edx, [r8 + 1]
call rax
test eax, eax
jne 0x1400759df
mov ecx, 0x45a
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [rsi + 0x1c], ebp
je 0x14007592e
mov rax, qword [rsi]
xor r8d, r8d
mov rcx, qword [rsi + 8]
xor edx, edx
mov r9d, dword [rax + 0x28]
add r9, rcx
call r9
mov rcx, qword [rsi + 0x50]
call fcn.140059050
cmp qword [rsi + 0x10], rbp
je 0x140075978
cmp dword [rsi + 0x18], ebp
jle 0x14007596f
mov rbx, rbp
nop word [rax + rax]
mov rax, qword [rsi + 0x10]
mov rcx, qword [rbx + rax]
test rcx, rcx
je 0x140075964
mov rdx, qword [rsi + 0x58]
call qword [rsi + 0x48]
inc ebp
add rbx, 8
cmp ebp, dword [rsi + 0x18]
jl 0x140075950
mov rcx, qword [rsi + 0x10]
call fcn.140059050
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x140075990
mov r9, qword [rsi + 0x58]
xor edx, edx
mov r8d, 0x8000
call qword [rsi + 0x30]
mov rdi, qword [rsi + 0x70]
mov rbp, qword [rsi + 0x58]
mov r14, qword [rsi + 0x30]
test rdi, rdi
je 0x1400759c6
mov rcx, qword [rdi + 8]
mov r9, rbp
xor edx, edx
mov r8d, 0x8000
call r14
mov rbx, qword [rdi]
mov rcx, rdi
call fcn.140059050
mov rdi, rbx
test rbx, rbx
jne 0x1400759a1
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x140075662
mov dword [rsi + 0x1c], 1
mov rax, rsi
jmp 0x140075664
mov qword [rsi + 0x60], rax
mov rax, rsi
jmp 0x140075664
mov qword [rsi + 0x60], rbp
mov rax, rsi
jmp 0x140075664
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140075674