Function at 0x140078dce
Capabilities:
Enumerate pe sections

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov r10d, r9d
mov rsi, rdx
mov r15, rcx
mov r9d, dword [rsp + 0xd0]
mov r13d, dword [rsp + 0xc8]
mov bl, byte [rdx + 0x24]
xor r14d, r14d
test bl, 1
sete r14b
mov rax, qword [rdx]
mov edx, dword [rax]
lea ecx, [r14 + r13]
mov rax, rdx
mov qword [rsp + 0x38], rdx
add ecx, edx
mov eax, dword [rsi + 8]
mov qword [rsp + 0x40], rax
test r9d, r9d
je 0x140078e2f
mov r12d, r10d
mov ebp, r9d
sub r12d, r9d
jmp 0x140078e40
mov ebp, r9d
mov eax, dword [r15 + 0x38]
lea r12d, [rax + 1]
add eax, ecx
mov dword [r15 + 0x38], eax
mov r9d, dword [rsp + 0xc0]
mov eax, dword [r8 + 0x14]
test eax, eax
mov dword [rsp + 0x2c], ecx
mov qword [rsp + 0x50], r8
mov dword [rsp + 0x30], r10d
je 0x140078e62
inc eax
jmp 0x140078e66
mov eax, dword [r8 + 0x10]
mov dword [rsp + 0x34], eax
mov rdi, qword [r15 + 0x10]
mov eax, dword [r15 + 0x44]
dec eax
mov dword [r15 + 0x44], eax
mov dword [rsi + 0x1c], eax
test r9d, r9d
setne al
shl al, 2
or al, 1
mov rdx, qword [rsi]
mov byte [rsp + 0x20], al
mov rcx, r15
mov r8d, r12d
call fcn.14005ba1a
test bl, 1
jne 0x140078ebf
mov rax, qword [rsp + 0x38]
lea r9d, [r12 + rax]
mov r8d, dword [rsi + 0xc]
mov dword [rsp + 0x20], 0
mov rcx, rdi
mov edx, pe_nt_image_headers64
call fcn.14004e997
test r13d, r13d
jle 0x140078eee
test ebp, ebp
jne 0x140078eee
mov rax, qword [rsp + 0x38]
add eax, r12d
add r14d, eax
mov rcx, qword [r15 + 0x10]
mov dword [rsp + 0x20], r13d
mov edx, 0x4d
mov r8d, dword [rsp + 0x30]
mov r9d, r14d
call fcn.14004e997
xor ebp, ebp
mov r14d, 0
mov r13, qword [rsp + 0x40]
test r13d, r13d
jle 0x14007914a
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x20], eax
mov rcx, r15
mov rdx, rsi
mov r8, qword [rsp + 0x50]
mov r9d, r12d
call fcn.1400792b3
mov ecx, dword [r15 + 0x38]
lea r13d, [rcx + 1]
add ecx, dword [rsi + 8]
mov r14d, eax
mov dword [r15 + 0x38], ecx
mov eax, dword [rsi + 8]
mov dword [rsp + 0x4c], eax
test bl, 1
jne 0x140078f58
mov rax, qword [rsp + 0x38]
lea r8d, [r12 + rax]
mov dword [rsp + 0x20], 0
mov rcx, rdi
mov edx, 0x14
jmp 0x140078f6c
mov r8d, dword [rsi + 0xc]
mov dword [rsp + 0x20], 0
mov rcx, rdi
mov edx, 0x73
xor r9d, r9d
call fcn.14004e997
mov ebx, eax
mov eax, dword [rsi + 8]
mov dword [rsp + 0x20], eax
mov rcx, rdi
mov edx, 0x57
mov r8d, r13d
mov r9d, r12d
call fcn.14004e997
mov eax, dword [rsi + 0x18]
test eax, eax
jns 0x140078f9f
mov eax, dword [rdi + 0x90]
dec eax
mov dword [rsp + 0x30], r13d
mov rcx, qword [rdi]
cmp byte [rcx + 0x61], 0
je 0x140078fb6
lea r13, [0x1402c6528]
jmp 0x140078fc7
cdqe
lea r13, [rax + rax*2]
shl r13, 3
add r13, qword [rdi + 0x88]
mov rax, qword [r15]
cmp byte [rax + 0x61], 0
jne 0x1400792a2
mov dword [rsp + 0x48], ebx
mov eax, dword [rsp + 0x2c]
sub eax, dword [rsp + 0x4c]
mov dword [r13 + 8], eax
mov rbx, qword [r13 + 0x10]
mov rcx, qword [rbx + 0x18]
movzx r8d, word [rbx + 6]
xor edx, edx
call fcn.140202180
mov rcx, rdi
mov edx, 0xffffffff
mov r8, rbx
mov r9d, 0xfffffff7
call fcn.14004ea51
movzx eax, word [rbx + 8]
movzx r9d, word [rbx + 6]
not r9d
add r9d, eax
mov rdx, qword [rsi]
mov rcx, r15
mov r8, qword [rsp + 0x40]
call fcn.140075baf
mov qword [r13 + 0x10], rax
mov ebx, dword [rdi + 0x90]
lea r8d, [rbx + 1]
mov dword [rsp + 0x20], r8d
mov rcx, rdi
mov edx, 0x10
xor r9d, r9d
call fcn.14004e997
mov eax, dword [r15 + 0x44]
dec eax
mov dword [r15 + 0x44], eax
mov dword [rsi + 0x14], eax
mov r8d, dword [r15 + 0x38]
inc r8d
mov dword [r15 + 0x38], r8d
mov dword [rsi + 0x10], r8d
mov r9d, dword [rsi + 0x14]
xor r13d, r13d
mov dword [rsp + 0x20], r13d
mov rcx, rdi
mov edx, 0xc
call fcn.14004e997
mov r8d, dword [rsi + 0xc]
mov dword [rsp + 0x20], r13d
mov rcx, rdi
mov edx, 0x8a
xor r9d, r9d
call fcn.14004e997
mov r8d, dword [rsp + 0x34]
test r8d, r8d
je 0x1400790c1
mov r9d, dword [rsi + 0x1c]
mov dword [rsp + 0x20], 0
mov rcx, rdi
mov edx, 0x14
call fcn.14004e997
mov eax, dword [rdi + 0x90]
mov rcx, qword [rdi]
lea r13, [0x1402c6528]
cmp byte [rcx + 0x61], 0
mov rcx, r13
jne 0x1400790f8
lea ecx, [rax - 1]
mov edx, dword [rsp + 0x48]
test edx, edx
cmovns ecx, edx
movsxd rcx, ecx
lea rcx, [rcx + rcx*2]
shl rcx, 3
add rcx, qword [rdi + 0x88]
mov dword [rcx + 8], eax
mov eax, dword [rsi + 8]
mov rcx, qword [r15 + 0x10]
mov dword [rsp + 0x20], eax
mov edx, 0x4d
mov r8d, r12d
mov r9d, dword [rsp + 0x30]
call fcn.14004e997
mov eax, dword [rdi + 0x90]
mov rcx, qword [rdi]
cmp byte [rcx + 0x61], 0
jne 0x140079141
lea ecx, [rax - 1]
test ebx, ebx
cmovns ecx, ebx
movsxd rcx, ecx
lea r13, [rcx + rcx*2]
shl r13, 3
add r13, qword [rdi + 0x88]
mov dword [r13 + 8], eax
mov r13, qword [rsp + 0x40]
mov r8d, dword [rsp + 0x34]
test r8d, r8d
je 0x1400791f0
mov ebx, dword [rsi + 0xc]
mov r9d, dword [rdi + 0x90]
add r9d, 4
xor ebp, ebp
mov dword [rsp + 0x20], ebp
mov rcx, rdi
mov edx, 0x30
call fcn.14004e997
mov dword [rsp + 0x20], ebp
mov rcx, rdi
mov edx, 0x20
mov r8d, ebx
xor r9d, r9d
call fcn.14004e997
lea eax, [r12 + r13]
mov dword [rsp + 0x20], eax
mov rcx, rdi
mov edx, 0x25
mov r8d, ebx
xor r9d, r9d
call fcn.14004e997
mov ebp, eax
mov rax, qword [rdi]
cmp byte [rax + 0x61], 0
jne 0x1400791d5
mov rdx, qword [rsp + 0x38]
sub edx, r13d
mov rax, qword [rdi + 0x88]
movsxd rcx, ebp
lea rcx, [rcx + rcx*2]
mov byte [rax + rcx*8 + 1], 0xfd
mov dword [rax + rcx*8 + 0x10], edx
mov dword [rsp + 0x20], 0
mov rcx, rdi
mov edx, 0x7b
mov r8d, ebx
xor r9d, r9d
call fcn.14004e997
test r14d, r14d
jne 0x140079213
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x20], eax
mov rcx, r15
mov rdx, rsi
mov r8, qword [rsp + 0x50]
mov r9d, r12d
call fcn.1400792b3
mov r14d, eax
movzx eax, byte [rsi + 0x24]
and eax, 1
mov edx, 0x84
sub edx, eax
add r12d, r13d
mov r8d, dword [rsi + 0xc]
mov dword [rsp + 0x20], r12d
mov rcx, rdi
mov r9d, r14d
call fcn.14004e997
mov rcx, qword [rdi]
cmp byte [rcx + 0x61], 0
jne 0x14007925e
mov edx, dword [rsp + 0x2c]
sub edx, r13d
mov rcx, qword [rdi + 0x88]
cdqe
lea rax, [rax + rax*2]
mov byte [rcx + rax*8 + 1], 0xfd
mov dword [rcx + rax*8 + 0x10], edx
test ebp, ebp
je 0x1400792a2
mov eax, dword [rsi + 0x20]
test eax, eax
jne 0x14007926f
mov eax, dword [rdi + 0x90]
test ebp, ebp
jns 0x14007927b
mov ebp, dword [rdi + 0x90]
dec ebp
mov rcx, qword [rdi]
cmp byte [rcx + 0x61], 0
je 0x14007928d
lea rcx, [0x1402c6528]
jmp 0x14007929f
movsxd rcx, ebp
lea rcx, [rcx + rcx*2]
shl rcx, 3
add rcx, qword [rdi + 0x88]
mov dword [rcx + 8], eax
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret