Function at 0x140157790
Capabilities:
Enumerate pe sections

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x88
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov rbx, rdx
mov byte [rsp + 0x40], 0
mov qword [r11 - 0x60], rdx
xor esi, esi
mov qword [r11 - 0x70], rsi
lea rax, [r11 - 0x64]
mov qword [r11 - 0x78], rax
mov eax, dword [rcx + 0x48]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 8]
lea r8, [r11 - 0x60]
mov edx, 0x90068
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140157806
xor al, al
jmp 0x140157c74
mov rdx, qword [rsp + 0xe8]
cmp qword [rdx], rbx
jb 0x1401577ff
lea rcx, [rdx + 0xc]
cmp dword [rcx], 0x454c4946
jne 0x1401577ff
mov eax, dword [rcx + 0x18]
add rax, rcx
mov qword [rsp + 0x58], rax
movzx ebx, word [rcx + 0x14]
add rbx, rcx
mov rbp, rsi
cmp rbx, rax
jae 0x140157c6f
movabs rcx, 0xffffffffffff
nop word [rax + rax]
cmp dword [rbx + 4], 0
jbe 0x1401579ab
mov eax, dword [rbx]
cmp eax, 0xffffffff
je 0x1401579ab
cmp eax, 0x20
jne 0x14015787c
cmp byte [rbx + 8], 0
jne 0x140157992
mov rbp, rbx
jmp 0x140157992
cmp eax, 0x30
jne 0x140157992
cmp byte [rbx + 8], 0
jne 0x140157992
movzx edi, word [rbx + 0x14]
add rdi, rbx
cmp byte [rdi + 0x41], 2
je 0x140157992
mov rsi, qword [rdi]
and rsi, rcx
cmp byte [rsp + 0x40], 0
jne 0x140157936
mov byte [rsp + 0x40], 1
movzx r9d, byte [rdi + 0x40]
lea r8, [rdi + 0x42]
mov rax, qword [rsp + 0xb0]
movsxd rdx, dword [rax + 0xac]
mov rcx, qword [rsp + 0xc8]
call fcn.1402ba94c
movzx eax, byte [rdi + 0x40]
mov rcx, qword [rsp + 0xd0]
mov dword [rcx], eax
mov rax, qword [rdi + 8]
mov rdx, qword [rsp + 0xd8]
mov qword [rdx], rax
mov rdx, qword [rsp + 0xe8]
test byte [rdx + 0x22], 2
je 0x14015791e
movsxd rax, dword [rcx]
mov rdx, qword [rsp + 0xc8]
mov r8d, 0x5c
mov word [rdx + rax*2], r8w
inc dword [rcx]
mov rax, qword [rsp + 0xc0]
mov qword [rax], rsi
cmp qword [rsp + 0xe0], 0
je 0x1401579a4
jmp 0x140157988
cmp qword [rsp + 0xe0], 0
je 0x140157992
mov ecx, 0x28
call fcn.1402b6dbc
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0xb8]
mov qword [rax], rcx
mov qword [rax + 8], rsi
mov rcx, qword [rdi + 8]
mov qword [rax + 0x10], rcx
lea rcx, [rdi + 0x42]
mov qword [rax + 0x20], rcx
movzx ecx, byte [rdi + 0x40]
mov byte [rax + 0x18], cl
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0xe0]
call fcn.140008cf0
movabs rcx, 0xffffffffffff
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, qword [rsp + 0x58]
jae 0x1401579ab
jmp 0x140157850
mov al, 1
jmp 0x140157c74
test rbp, rbp
je 0x140157c6f
xor edi, edi
movzx ebx, word [rbp + 0x14]
add rbx, rbp
mov eax, dword [rbp + 0x10]
add rax, rbp
mov qword [rsp + 0x50], rax
cmp rbx, rax
jae 0x140157c6f
cmp word [rbx + 4], 0
jbe 0x140157b8f
mov eax, dword [rbx]
cmp eax, 0xffffffff
je 0x140157b8f
cmp eax, 0x30
jne 0x140157b73
mov rsi, qword [rbx + 0x10]
and rsi, rcx
mov qword [rsp + 0x58], rsi
cmp rsi, qword [rsp + 0xb8]
je 0x140157b73
movzx eax, byte [rbx + 6]
test al, al
jne 0x140157a7f
mov rbp, qword [rsp + 0xe0]
test rbp, rbp
jne 0x140157b73
cmp byte [rsp + 0x40], bpl
jne 0x140157b73
test rdi, rdi
jne 0x140157a5d
lea ecx, [rbp + 0x10]
call fcn.1402b6dbc
mov rdi, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x140157a5b
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
call fcn.1400e29c0
mov qword [rdi], rax
jmp 0x140157a5d
xor edi, edi
movzx eax, byte [0x140429188]
mov byte [rsp + 0x20], al
lea r9, [rsp + 0x58]
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.1400e2a00
jmp 0x140157b73
cmp byte [rsp + 0x40], 0
jne 0x140157b10
mov byte [rsp + 0x40], 1
movzx r9d, al
movzx r8d, byte [rbx + 7]
add r8, rbx
mov rax, qword [rsp + 0xb0]
movsxd rdx, dword [rax + 0xac]
mov rbp, qword [rsp + 0xc8]
mov rcx, rbp
call fcn.1402ba94c
movzx eax, byte [rbx + 6]
mov rcx, qword [rsp + 0xd0]
mov dword [rcx], eax
mov rax, qword [rsp + 0xd8]
mov qword [rax], 0
mov rax, qword [rsp + 0xe8]
test byte [rax + 0x22], 2
je 0x140157af4
movsxd rax, dword [rcx]
mov edx, 0x5c
mov word [rbp + rax*2], dx
inc dword [rcx]
mov rax, qword [rsp + 0xc0]
mov qword [rax], rsi
cmp qword [rsp + 0xe0], 0
je 0x140157b8f
jmp 0x140157b73
mov rbp, qword [rsp + 0xe0]
test rbp, rbp
je 0x140157b73
mov ecx, 0x28
call fcn.1402b6dbc
mov rcx, rax
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xb8]
mov qword [rcx], rax
mov qword [rcx + 8], rsi
xor esi, esi
mov qword [rcx + 0x10], rsi
cmp byte [rbx + 6], sil
jne 0x140157b54
mov qword [rcx + 0x20], rsi
mov byte [rcx + 0x18], sil
jmp 0x140157b66
movzx eax, byte [rbx + 7]
add rax, rbx
mov qword [rcx + 0x20], rax
movzx eax, byte [rbx + 6]
mov byte [rcx + 0x18], al
lea rdx, [rsp + 0x58]
mov rcx, rbp
call fcn.140008cf0
movzx eax, word [rbx + 4]
add rbx, rax
cmp rbx, qword [rsp + 0x50]
movabs rcx, 0xffffffffffff
jb 0x1401579d1
test rdi, rdi
je 0x140157c6f
cmp byte [rsp + 0x40], 0
jne 0x140157c67
mov rax, qword [rdi]
mov rbx, qword [rax]
cmp rbx, rax
je 0x140157c67
mov rsi, qword [rsp + 0xd0]
nop word [rax + rax]
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
mov r9, qword [rsp + 0xc8]
mov r8, qword [rsp + 0xc0]
mov rdx, qword [rbx + 0x20]
mov rcx, qword [rsp + 0xb0]
call fcn.140157790
mov byte [rsp + 0x40], al
test al, al
jne 0x140157c67
cmp byte [rbx + 0x19], al
jne 0x140157c5e
mov rcx, qword [rbx + 0x10]
cmp byte [rcx + 0x19], al
jne 0x140157c3e
mov rbx, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], al
jne 0x140157c5e
nop
mov rbx, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
je 0x140157c30
jmp 0x140157c5e
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x140157c5b
cmp rbx, qword [rax + 0x10]
jne 0x140157c5b
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140157c48
mov rbx, rax
cmp rbx, qword [rdi]
jne 0x140157bc0
mov rcx, rdi
call fcn.1400d94b0
movzx eax, byte [rsp + 0x40]
add rsp, 0x88
pop rdi
pop rsi
pop rbp
pop rbx
ret