Function at 0x140002a60
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp - 0x48], 0
mov qword [rbp - 8], 0
mov qword [rbp - 0x58], 0
lea rax, [rbp - 0x58]
mov rcx, rax
call fcn.140002879
mov ecx, 0x2e495f03
call fcn.140001756
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140002ad2
lea rdx, str.IMAGE_DOS_SIGNATURE_MISMATCH_n
mov rcx, qword [str._i_v_]
call fcn.1400aec80
jmp 0x140002d79
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x30]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140002b0c
lea rdx, str.IMAGE_NT_SIGNATURE_MISMATCH_n
mov rcx, qword [str._i_v_]
call fcn.1400aec80
jmp 0x140002d79
mov rax, qword [rbp - 0x30]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x30]
add rax, rdx
add rax, 0x18
mov qword [rbp - 0x38], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x30]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jge 0x140002c02
mov eax, dword [rbp - 0xc]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x38]
add rax, rdx
lea rdx, str..text
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140002bf9
mov eax, dword [rbp - 0xc]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x38]
add rax, rdx
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
mov qword [rbp - 0x48], rax
mov rcx, qword [rbp - 0x58]
mov eax, dword [rbp - 0xc]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x38]
add rax, rdx
mov eax, dword [rax + 0xc]
mov eax, eax
add rax, rcx
mov qword [rbp - 8], rax
mov eax, dword [rbp - 0xc]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x38]
add rax, rdx
mov eax, dword [rax + 8]
mov eax, eax
mov qword [rbp - 0x50], rax
add dword [rbp - 0xc], 1
jmp 0x140002b2d
mov rax, qword [0x1400e1150]
lea rdx, [rbp - 0x5c]
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], pe_nt_image_headers64
lea rdx, [rbp - 0x50]
mov qword [rsp + 0x28], rdx
lea rdx, [rbp - 0x48]
mov qword [rsp + 0x20], rdx
mov r9, 0xffffffffffffffff
mov r8, rax
mov edx, 5
mov rcx, qword [str._0_v_]
call fcn.140001550
mov dword [rbp - 0x3c], eax
cmp dword [rbp - 0x3c], 0
je 0x140002c91
lea rdx, str.Protection_1_Error:
mov rcx, qword [str._i_v_]
call fcn.1400aec80
lea rdx, [0x1400acac0]
mov rcx, rax
call fcn.140070420
mov edx, dword [rbp - 0x3c]
mov rcx, rax
call fcn.140070640
lea rdx, [0x1400b71e1]
mov rcx, rax
call fcn.1400aec80
jmp 0x140002d79
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x48]
mov rax, qword [0x1400e1150]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rbp - 8]
mov qword [rsp + 0x20], rcx
mov r9, rdx
mov r8, rax
mov edx, 3
mov rcx, qword [sub.msvcrt.dll_memcpy]
call fcn.140001550
mov edx, dword [rbp - 0x5c]
mov rax, qword [0x1400e1150]
lea rcx, [rbp - 0x5c]
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], edx
lea rdx, [rbp - 0x50]
mov qword [rsp + 0x28], rdx
lea rdx, [rbp - 0x48]
mov qword [rsp + 0x20], rdx
mov r9, 0xffffffffffffffff
mov r8, rax
mov edx, 5
mov rcx, qword [str._0_v_]
call fcn.140001550
mov dword [rbp - 0x3c], eax
cmp dword [rbp - 0x3c], 0
je 0x140002d50
lea rdx, str.Protection_2_Error:
mov rcx, qword [str._i_v_]
call fcn.1400aec80
lea rdx, [0x1400acac0]
mov rcx, rax
call fcn.140070420
mov edx, dword [rbp - 0x3c]
mov rcx, rax
call fcn.140070640
lea rdx, [0x1400b71e1]
mov rcx, rax
call fcn.1400aec80
jmp 0x140002d79
lea rdx, str._DEBUG__UNHOOKED_NTDLL__n
mov rcx, qword [str._i_v_]
call fcn.1400aec80
mov rax, qword [rbp - 0x58]
test rax, rax
je 0x140002d78
mov rax, qword [rbp - 0x58]
mov rcx, rax
call fcn.1400b1710
nop
add rsp, 0xa0
pop rbp
ret