Function at 0x140001dd0
Capabilities:
Enumerate pe sections
Get system information on windows
Parse pe header

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
cmp rdx, 0x3f
ja 0x140001df0
mov ecx, 0xd
jmp 0x140001fed
mov r14, rcx
movzx eax, word [rcx]
cmp eax, 0x5a4d
jne 0x140001fe8
mov rbx, rdx
movsxd r13, dword [r14 + 0x3c]
lea rax, [r13 + 0x108]
cmp rax, rdx
ja 0x140001de6
cmp dword [r14 + r13], 0x4550
jne 0x140001fe8
add r13, r14
movzx eax, word [r13 + 4]
cmp eax, 0x8664
jne 0x140001fe8
mov r15, r9
mov r9d, dword [r13 + 0x38]
test r9b, 1
jne 0x140001fe8
mov r12, r8
movzx r8d, word [r13 + 6]
test r8d, r8d
je 0x140001e6b
movzx ecx, word [r13 + 0x14]
lea rdx, [rcx + r13]
add rdx, 0x18
cmp r8w, 1
jne 0x140001e6f
xor ebp, ebp
jmp 0x140001eb2
xor ebp, ebp
jmp 0x140001ed0
mov ecx, r8d
and ecx, 0xfffffffe
xor ebp, ebp
mov esi, dword [rdx + 0xc]
mov eax, dword [rdx + 0x10]
lea edi, [rsi + rax]
add rsi, r9
test eax, eax
cmove rdi, rsi
cmp rdi, rbp
cmovbe rdi, rbp
mov eax, dword [rdx + 0x38]
mov esi, dword [rdx + 0x34]
lea ebp, [rsi + rax]
add rsi, r9
test eax, eax
cmove rbp, rsi
cmp rbp, rdi
cmovbe rbp, rdi
add rdx, 0x50
add ecx, 0xfffffffe
jne 0x140001e77
test r8b, 1
je 0x140001ed0
mov eax, dword [rdx + 0xc]
mov ecx, dword [rdx + 0x10]
add r9, rax
add eax, ecx
test ecx, ecx
cmove rax, r9
cmp rax, rbp
cmova rbp, rax
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [rsp + 0x3c]
mov ecx, dword [r13 + 0x50]
lea rsi, [rax + rcx]
dec rsi
lea rcx, [rax + rbp]
dec rcx
neg rax
and rsi, rax
and rax, rcx
cmp rsi, rax
jne 0x140001fe8
mov rdi, qword [rsp + 0xe8]
mov rcx, qword [r13 + 0x30]
mov qword [rsp + 0x20], rdi
mov rdx, rsi
mov r8d, 0x3000
mov r9d, 4
call r12
test rax, rax
jne 0x140001f4d
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov rdx, rsi
mov r8d, 0x3000
mov r9d, 4
call r12
test rax, rax
je 0x1400020ea
mov qword [rsp + 0x30], r13
xor ebp, ebp
mov rdx, rax
shr rdx, 0x20
mov rdi, rax
lea rcx, [rax + rsi]
shr rcx, 0x20
cmp rdx, rcx
jae 0x140002009
mov ecx, 0x10
call fcn.1400069c4
test rax, rax
je 0x1400020a6
mov r13, rax
mov qword [rax], rbp
mov qword [rax + 8], rdi
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x20], rax
xor ecx, ecx
mov rdx, rsi
mov r8d, 0x3000
mov r9d, 4
call r12
mov rbp, r13
test rax, rax
jne 0x140001f54
mov rdi, qword [rsp + 0xe8]
mov rcx, qword [r13 + 8]
xor edx, edx
mov r8d, 0x8000
mov r9, rdi
call r15
mov rsi, qword [r13]
mov rcx, r13
call fcn.1400069b0
mov r13, rsi
test rsi, rsi
jne 0x140001fbd
jmp 0x1400020ea
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
mov rax, rsi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, pe_nt_image_headers64
mov rcx, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x1400020f4
mov rsi, rax
mov qword [rax + 8], rdi
mov r13, qword [rsp + 0x30]
movzx eax, word [r13 + 0x16]
shr eax, 0xd
and eax, 1
mov dword [rsi + 0x20], eax
mov qword [rsi + 0x28], r12
mov qword [rsi + 0x30], r15
mov rax, qword [rsp + 0xd0]
mov qword [rsi + 0x38], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsi + 0x40], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsi + 0x48], rax
mov r9, qword [rsp + 0xe8]
mov qword [rsi + 0x58], r9
mov eax, dword [rsp + 0x3c]
mov dword [rsi + 0x68], eax
mov qword [rsi + 0x70], rbp
mov edx, dword [r13 + 0x54]
mov ecx, 0xd
cmp rdx, rbx
jbe 0x14000212d
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400021ec
mov rcx, rdi
xor edx, edx
mov r8d, 0x8000
mov rdi, qword [rsp + 0xe8]
mov r9, rdi
call r15
test rbp, rbp
je 0x1400020ea
mov rcx, qword [rbp + 8]
xor edx, edx
mov r8d, 0x8000
mov r9, rdi
call r15
mov rsi, qword [rbp]
mov rcx, rbp
call fcn.1400069b0
mov rbp, rsi
test rsi, rsi
jne 0x1400020c4
mov ecx, 0xe
jmp 0x140001fed
xor esi, esi
mov rcx, rdi
xor edx, edx
mov r8d, 0x8000
mov rdi, qword [rsp + 0xe8]
mov r9, rdi
call r15
mov rcx, rbp
mov rdx, r15
mov r8, rdi
call fcn.140002220
mov ecx, 0xe
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140001ff5
mov qword [rsp + 0x20], r9
mov rcx, rdi
mov r15, rdi
mov r8d, 0x1000
mov r9d, 4
call r12
mov rbp, rax
mov r8d, dword [r13 + 0x54]
mov rcx, rax
mov rdx, r14
call fcn.1400043e0
movsxd rax, dword [r14 + 0x3c]
lea rcx, [rax + rbp]
mov qword [rsi], rcx
mov qword [rbp + rax + 0x30], rdi
mov rcx, r14
mov rdx, rbx
mov r8, r13
mov r9, rsi
call fcn.140002270
test eax, eax
je 0x1400021ec
mov rax, qword [rsi]
mov rdx, qword [rax + 0x30]
mov eax, 1
sub rdx, qword [r13 + 0x30]
je 0x140002198
mov rcx, rsi
call fcn.1400023a0
mov dword [rsi + 0x24], eax
mov rcx, rsi
call fcn.140002450
test eax, eax
je 0x1400021ec
mov rcx, rsi
call fcn.1400025c0
test eax, eax
je 0x1400021ec
mov rcx, rsi
call fcn.140002840
mov rax, qword [rsi]
mov ebp, dword [rax + 0x28]
test rbp, rbp
je 0x1400021f9
add rbp, rdi
cmp dword [rsi + 0x20], 0
je 0x140002206
mov rcx, rdi
mov edx, 1
xor r8d, r8d
call rbp
test eax, eax
je 0x14000220f
mov dword [rsi + 0x1c], 1
jmp 0x140001ff5
mov rcx, rsi
call fcn.140002890
jmp 0x140001ff3
mov qword [rsi + 0x60], 0
jmp 0x140001ff5
mov qword [rsi + 0x60], rbp
jmp 0x140001ff5
mov ecx, 0x45a
jmp 0x14000209b