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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r12
push r13
push r14
sub rsp, 0x50
xor r13d, r13d
mov eax, 0x5a4d
cmp word [0x140035cb0], ax
mov ebx, r13d
mov edi, r13d
jne 0x14000dbe0
mov rcx, qword [0x140035cec]
movsxd rax, ecx
add rax, 0x108
cmp rax, 0x4f3200
jbe 0x14000d725
lea ecx, [r13 + 0xd]
call qword [sym.imp.kernel32.dll_SetLastError]
xor eax, eax
jmp 0x14000d924
movsxd r14, ecx
lea r12, [0x140035cb0]
add r14, r12
cmp dword [r14], 0x4550
jne 0x14000dbe0
mov eax, 0x8664
cmp word [r14 + 4], ax
jne 0x14000dbe0
mov eax, dword [r14 + 0x38]
test al, 1
jne 0x14000dbe0
movzx ecx, word [r14 + 0x14]
mov r9d, eax
movzx eax, word [r14 + 6]
add rcx, 0x24
cmp r13w, ax
jae 0x14000d7a5
add rcx, r14
mov r8d, eax
nop dword [rax + rax]
mov eax, dword [rcx + 4]
mov edx, dword [rcx]
test eax, eax
jne 0x14000d78f
lea rax, [r9 + rdx]
jmp 0x14000d791
add eax, edx
cmp rax, rbx
cmovbe rax, rbx
add rcx, 0x28
mov rbx, rax
sub r8, 1
jne 0x14000d780
lea rcx, [rsp + 0x20]
call qword [sym.imp.kernel32.dll_GetNativeSystemInfo]
mov edx, dword [rsp + 0x24]
mov eax, dword [r14 + 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 0x14000dbe0
mov rcx, qword [r14 + 0x30]
mov r9d, 4
mov qword [rsp + 0x88], r15
mov r8d, 0x3000
mov rdx, rbp
mov qword [rsp + 0x80], rsi
call qword [sym.imp.kernel32.dll_VirtualAlloc]
mov r15, rax
test rax, rax
jne 0x14000d82e
lea r9d, [rax + 4]
mov r8d, 0x3000
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.kernel32.dll_VirtualAlloc]
mov r15, rax
test rax, rax
je 0x14000d907
movabs rbx, 0xffffffff00000000
lea rcx, [r15 + rbp]
mov rax, r15
and rcx, rbx
and rax, rbx
cmp rax, rcx
jae 0x14000d8a2
nop word [rax + rax]
mov ecx, 0x10
call fcn.140019570
mov rsi, rax
test rax, rax
je 0x14000d969
mov qword [rax], rdi
mov r9d, 4
mov r8d, 0x3000
mov qword [rax + 8], r15
mov rdx, rbp
xor ecx, ecx
mov rdi, rax
call qword [sym.imp.kernel32.dll_VirtualAlloc]
mov r15, rax
test rax, rax
je 0x14000d940
lea rcx, [rax + rbp]
and rax, rbx
and rcx, rbx
cmp rax, rcx
jb 0x14000d850
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 0x14000d9ac
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.kernel32.dll_VirtualFree]
test rdi, rdi
je 0x14000d907
nop dword [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.140016c14
mov rdi, rbx
test rbx, rbx
jne 0x14000d8e0
mov ecx, 0xe
call qword [sym.imp.kernel32.dll_SetLastError]
xor eax, eax
mov rsi, qword [rsp + 0x80]
mov r15, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r14
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.140016c14
mov rsi, rbx
test rbx, rbx
jne 0x14000d940
jmp 0x14000d907
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.kernel32.dll_VirtualFree]
test rdi, rdi
je 0x14000d907
nop
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.140016c14
mov rdi, rbx
test rbx, rbx
jne 0x14000d980
jmp 0x14000d907
mov qword [rax + 8], r15
movzx eax, word [r14 + 0x16]
shr eax, 0xd
and eax, 1
mov qword [rsi + 0x58], r13
mov dword [rsi + 0x20], eax
lea rax, [0x14000d680]
mov qword [rsi + 0x28], rax
lea rax, [sub.kernel32.dll_VirtualFree]
mov qword [rsi + 0x30], rax
lea rax, [0x14000d6a0]
mov qword [rsi + 0x38], rax
lea rax, [0x14000d6b0]
mov qword [rsi + 0x40], rax
lea rax, [0x14000d6c0]
mov qword [rsi + 0x48], rax
mov eax, dword [rsp + 0x24]
mov dword [rsi + 0x68], eax
mov qword [rsi + 0x70], rdi
cmp dword [r14 + 0x54], 0x4f3200
jbe 0x14000da26
mov ecx, 0xd
call qword [sym.imp.kernel32.dll_SetLastError]
mov rcx, rsi
call fcn.14000dda0
jmp 0x14000d912
mov edx, dword [r14 + 0x54]
mov r9d, 4
mov r8d, 0x1000
mov rcx, r15
call qword [sym.imp.kernel32.dll_VirtualAlloc]
mov r8d, dword [r14 + 0x54]
mov rdx, r12
mov rcx, rax
mov rbx, rax
call fcn.14000fb70
movsxd rcx, dword [0x140035cec]
mov r9, rsi
add rcx, rbx
mov r8, r14
mov qword [rsi], rcx
mov qword [rcx + 0x30], r15
call fcn.14000d130
test eax, eax
je 0x14000da19
mov rax, qword [rsi]
mov rbx, qword [rax + 0x30]
sub rbx, qword [r14 + 0x30]
je 0x14000db19
cmp dword [rax + 0xb4], r13d
jne 0x14000da93
mov eax, r13d
jmp 0x14000db1e
mov r11d, dword [rax + 0xb0]
mov rdi, qword [rsi + 8]
add r11, rdi
mov eax, dword [r11]
test eax, eax
je 0x14000db19
nop dword [rax + rax]
mov r9d, dword [r11 + 4]
lea rdx, [r11 + 8]
mov r10d, eax
mov r8d, r13d
add r10, rdi
lea rax, [r9 - 8]
test rax, 0xfffffffffffffffe
jbe 0x14000db0c
nop dword [rax]
movzx eax, word [rdx]
mov ecx, eax
shr eax, 0xc
and ecx, 0xfff
cmp eax, 3
je 0x14000daee
cmp eax, 0xa
jne 0x14000daf2
add qword [rcx + r10], rbx
jmp 0x14000daf2
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 0x14000dad0
mov eax, r9d
add r11, rax
mov eax, dword [r11]
test eax, eax
jne 0x14000dab0
mov eax, 1
mov rcx, rsi
mov dword [rsi + 0x24], eax
call fcn.14000d500
test eax, eax
je 0x14000da19
mov rcx, rsi
call fcn.14000d270
test eax, eax
je 0x14000da19
mov rax, qword [rsi]
mov ecx, dword [rax + 0xd0]
test ecx, ecx
je 0x14000db7d
mov rdi, qword [rsi + 8]
mov rbx, qword [rcx + rdi + 0x18]
test rbx, rbx
je 0x14000db7d
mov rax, qword [rbx]
test rax, rax
je 0x14000db7d
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 0x14000db64
mov rax, qword [rsi]
mov ecx, dword [rax + 0x28]
test ecx, ecx
je 0x14000dbd4
lea rax, [r15 + rcx]
cmp dword [rsi + 0x20], r13d
je 0x14000dbc8
xor r8d, r8d
mov rcx, r15
lea edx, [r8 + 1]
call rax
test eax, eax
jne 0x14000dbb9
mov ecx, 0x45a
call qword [sym.imp.kernel32.dll_SetLastError]
mov rcx, rsi
call fcn.14000dda0
jmp 0x14000d912
mov dword [rsi + 0x1c], 1
mov rax, rsi
jmp 0x14000d914
mov qword [rsi + 0x60], rax
mov rax, rsi
jmp 0x14000d914
mov qword [rsi + 0x60], r13
mov rax, rsi
jmp 0x14000d914
mov ecx, 0xc1
call qword [sym.imp.kernel32.dll_SetLastError]
xor eax, eax
jmp 0x14000d924