Function at 0x66cc13ba
Capabilities:
Enumerate pe sections
Parse pe header
Resolve function by hash
Resolve function by parsing pe exports

Disassembly:
push rbp
push rbx
sub rsp, 0x108
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xa0], rcx
mov qword [rbp + 0x78], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
call fcn.66cc13b0
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x50]
movzx eax, word [rax]
cmp ax, 0x5a4d
jne 0x66cc143b
mov rax, qword [rbp + 0x50]
mov eax, dword [rax + 0x3c]
cdqe
mov qword [rbp + 0x10], rax
cmp qword [rbp + 0x10], 0x3f
jbe 0x66cc143b
cmp qword [rbp + 0x10], 0x3ff
ja 0x66cc143b
mov rax, qword [rbp + 0x50]
add qword [rbp + 0x10], rax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x66cc1442
sub qword [rbp + 0x50], 1
jmp 0x66cc13fb
nop
mov dword [rbp - 0x14], 0x60
mov eax, dword [rbp - 0x14]
mov rax, qword gs:[rax]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x18]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x20]
mov qword [rbp + 0x38], rax
jmp 0x66cc1813
mov rax, qword [rbp + 0x38]
mov rax, qword [rax + 0x50]
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x38]
movzx eax, word [rax + 0x48]
mov word [rbp + 0x5e], ax
mov qword [rbp + 0x28], 0
mov rax, qword [rbp + 0x28]
mov dword [rbp - 0x24], eax
mov eax, dword [rbp - 0x24]
mov dword [rbp - 0x28], eax
mov dword [rbp - 0x2c], 0xd
and dword [rbp - 0x2c], 0x1f
mov eax, dword [rbp - 0x2c]
mov edx, dword [rbp - 0x28]
mov ecx, eax
ror edx, cl
mov eax, edx
mov eax, eax
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x30]
movzx eax, byte [rax]
cmp al, 0x60
jbe 0x66cc14e4
mov rax, qword [rbp + 0x30]
movzx eax, byte [rax]
movzx eax, al
sub eax, 0x20
cdqe
add qword [rbp + 0x28], rax
jmp 0x66cc14f2
mov rax, qword [rbp + 0x30]
movzx eax, byte [rax]
movzx eax, al
add qword [rbp + 0x28], rax
add qword [rbp + 0x30], 1
sub word [rbp + 0x5e], 1
cmp word [rbp + 0x5e], 0
jne 0x66cc149a
mov rax, qword [rbp + 0x28]
cmp eax, 0x6a4abc5b
jne 0x66cc16a3
mov rax, qword [rbp + 0x38]
mov rax, qword [rax + 0x20]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov eax, dword [rax + 0x3c]
cdqe
mov rdx, qword [rbp + 8]
add rax, rdx
mov qword [rbp], rax
mov rax, qword [rbp]
add rax, 0x88
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 8]
add rax, rdx
mov qword [rbp], rax
mov rax, qword [rbp]
mov eax, dword [rax + 0x20]
mov edx, eax
mov rax, qword [rbp + 8]
add rax, rdx
mov qword [rbp + 0x48], rax
mov rax, qword [rbp]
mov eax, dword [rax + 0x24]
mov edx, eax
mov rax, qword [rbp + 8]
add rax, rdx
mov qword [rbp + 0x40], rax
mov word [rbp + 0x5e], 3
jmp 0x66cc1693
mov rax, qword [rbp + 0x48]
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 8]
add rax, rdx
mov qword [rbp - 0x38], rax
mov ebx, 0
mov dword [rbp - 0x3c], ebx
mov eax, dword [rbp - 0x3c]
mov dword [rbp - 0x40], eax
mov dword [rbp - 0x44], 0xd
and dword [rbp - 0x44], 0x1f
mov eax, dword [rbp - 0x44]
mov edx, dword [rbp - 0x40]
mov ecx, eax
ror edx, cl
mov eax, edx
mov ebx, eax
mov rax, qword [rbp - 0x38]
movzx eax, byte [rax]
movsx eax, al
add ebx, eax
add qword [rbp - 0x38], 1
mov rax, qword [rbp - 0x38]
movzx eax, byte [rax]
test al, al
jne 0x66cc159e
mov eax, ebx
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0xec0e4e8e
je 0x66cc1600
cmp dword [rbp - 4], 0x7c0dfcaa
je 0x66cc1600
cmp dword [rbp - 4], 0x91afca54
jne 0x66cc1689
mov rax, qword [rbp]
mov eax, dword [rax + 0x1c]
mov edx, eax
mov rax, qword [rbp + 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp + 0x40]
movzx eax, word [rax]
movzx eax, ax
shl rax, 2
add qword [rbp - 0x10], rax
cmp dword [rbp - 4], 0xec0e4e8e
jne 0x66cc1644
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 8]
add rax, rdx
mov qword [rbp + 0x78], rax
jmp 0x66cc167e
cmp dword [rbp - 4], 0x7c0dfcaa
jne 0x66cc1662
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 8]
add rax, rdx
mov qword [rbp + 0x70], rax
jmp 0x66cc167e
cmp dword [rbp - 4], 0x91afca54
jne 0x66cc167e
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 8]
add rax, rdx
mov qword [rbp + 0x68], rax
movzx eax, word [rbp + 0x5e]
sub eax, 1
mov word [rbp + 0x5e], ax
add qword [rbp + 0x48], 4
add qword [rbp + 0x40], 2
cmp word [rbp + 0x5e], 0
jne 0x66cc1586
jmp 0x66cc17ec
mov rax, qword [rbp + 0x28]
cmp eax, 0x3cfa685d
jne 0x66cc17ec
mov rax, qword [rbp + 0x38]
mov rax, qword [rax + 0x20]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov eax, dword [rax + 0x3c]
cdqe
mov rdx, qword [rbp + 8]
add rax, rdx
mov qword [rbp], rax
mov rax, qword [rbp]
add rax, 0x88
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 8]
add rax, rdx
mov qword [rbp], rax
mov rax, qword [rbp]
mov eax, dword [rax + 0x20]
mov edx, eax
mov rax, qword [rbp + 8]
add rax, rdx
mov qword [rbp + 0x48], rax
mov rax, qword [rbp]
mov eax, dword [rax + 0x24]
mov edx, eax
mov rax, qword [rbp + 8]
add rax, rdx
mov qword [rbp + 0x40], rax
mov word [rbp + 0x5e], 1
jmp 0x66cc17e1
mov rax, qword [rbp + 0x48]
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 8]
add rax, rdx
mov qword [rbp - 0x50], rax
mov ebx, 0
mov dword [rbp - 0x54], ebx
mov eax, dword [rbp - 0x54]
mov dword [rbp - 0x58], eax
mov dword [rbp - 0x5c], 0xd
and dword [rbp - 0x5c], 0x1f
mov eax, dword [rbp - 0x5c]
mov edx, dword [rbp - 0x58]
mov ecx, eax
ror edx, cl
mov eax, edx
mov ebx, eax
mov rax, qword [rbp - 0x50]
movzx eax, byte [rax]
movsx eax, al
add ebx, eax
add qword [rbp - 0x50], 1
mov rax, qword [rbp - 0x50]
movzx eax, byte [rax]
test al, al
jne 0x66cc173e
mov eax, ebx
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0x534c0ab8
jne 0x66cc17d7
mov rax, qword [rbp]
mov eax, dword [rax + 0x1c]
mov edx, eax
mov rax, qword [rbp + 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp + 0x40]
movzx eax, word [rax]
movzx eax, ax
shl rax, 2
add qword [rbp - 0x10], rax
cmp dword [rbp - 4], 0x534c0ab8
jne 0x66cc17cc
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 8]
add rax, rdx
mov qword [rbp + 0x60], rax
movzx eax, word [rbp + 0x5e]
sub eax, 1
mov word [rbp + 0x5e], ax
add qword [rbp + 0x48], 4
add qword [rbp + 0x40], 2
cmp word [rbp + 0x5e], 0
jne 0x66cc1726
cmp qword [rbp + 0x78], 0
je 0x66cc1808
cmp qword [rbp + 0x70], 0
je 0x66cc1808
cmp qword [rbp + 0x68], 0
je 0x66cc1808
cmp qword [rbp + 0x60], 0
jne 0x66cc1820
mov rax, qword [rbp + 0x38]
mov rax, qword [rax]
mov qword [rbp + 0x38], rax
cmp qword [rbp + 0x38], 0
jne 0x66cc147a
jmp 0x66cc1821
nop
mov rax, qword [rbp + 0x50]
mov eax, dword [rax + 0x3c]
cdqe
mov rdx, qword [rbp + 0x50]
add rax, rdx
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x50]
mov edx, eax
mov rax, qword [rbp + 0x68]
mov r9d, 0x40
mov r8d, 0x3000
mov ecx, 0
call rax
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x54]
mov eax, eax
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 8]
mov qword [rbp + 0x28], rax
jmp 0x66cc189b
mov rax, qword [rbp + 0x30]
lea rdx, [rax + 1]
mov qword [rbp + 0x30], rdx
mov rcx, rax
mov rax, qword [rbp + 0x28]
lea rdx, [rax + 1]
mov qword [rbp + 0x28], rdx
mov rdx, rax
movzx eax, byte [rcx]
mov byte [rdx], al
mov rax, qword [rbp + 0x38]
lea rdx, [rax - 1]
mov qword [rbp + 0x38], rdx
test rax, rax
jne 0x66cc1878
mov rax, qword [rbp + 0x10]
add rax, 0x18
mov rdx, rax
mov rax, qword [rbp + 0x10]
movzx eax, word [rax + 0x14]
movzx eax, ax
add rax, rdx
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x10]
movzx eax, word [rax + 6]
movzx eax, ax
mov qword [rbp + 0x18], rax
jmp 0x66cc194a
mov rax, qword [rbp + 0x38]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp + 8]
add rax, rdx
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x38]
mov eax, dword [rax + 0x14]
mov edx, eax
mov rax, qword [rbp + 0x50]
add rax, rdx
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x38]
mov eax, dword [rax + 0x10]
mov eax, eax
mov qword [rbp + 0x20], rax
jmp 0x66cc1934
mov rax, qword [rbp + 0x28]
lea rdx, [rax + 1]
mov qword [rbp + 0x28], rdx
mov rcx, rax
mov rax, qword [rbp + 0x30]
lea rdx, [rax + 1]
mov qword [rbp + 0x30], rdx
mov rdx, rax
movzx eax, byte [rcx]
mov byte [rdx], al
mov rax, qword [rbp + 0x20]
lea rdx, [rax - 1]
mov qword [rbp + 0x20], rdx
test rax, rax
jne 0x66cc1911
add qword [rbp + 0x38], 0x28
mov rax, qword [rbp + 0x18]
lea rdx, [rax - 1]
mov qword [rbp + 0x18], rdx
test rax, rax
jne 0x66cc18da
mov rax, qword [rbp + 0x10]
add rax, 0x90
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x30]
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 8]
add rax, rdx
mov qword [rbp + 0x28], rax
jmp 0x66cc1abb
mov rax, qword [rbp + 0x28]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp + 8]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp + 0x78]
mov rcx, rdx
call rax
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x28]
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 8]
add rax, rdx
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 0x28]
mov eax, dword [rax + 0x10]
mov edx, eax
mov rax, qword [rbp + 8]
add rax, rdx
mov qword [rbp + 0x38], rax
jmp 0x66cc1aa6
cmp qword [rbp + 0x20], 0
je 0x66cc1a67
mov rax, qword [rbp + 0x20]
mov rax, qword [rax]
test rax, rax
jns 0x66cc1a67
mov rax, qword [rbp + 0x50]
mov eax, dword [rax + 0x3c]
cdqe
mov rdx, qword [rbp + 0x50]
add rax, rdx
mov qword [rbp], rax
mov rax, qword [rbp]
add rax, 0x88
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 0x50]
add rax, rdx
mov qword [rbp], rax
mov rax, qword [rbp]
mov eax, dword [rax + 0x1c]
mov edx, eax
mov rax, qword [rbp + 0x50]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp + 0x20]
mov rax, qword [rax]
movzx eax, ax
mov rdx, qword [rbp]
mov edx, dword [rdx + 0x10]
mov edx, edx
sub rax, rdx
shl rax, 2
add qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [rbp + 0x38]
mov rdx, qword [rbp + 0x50]
add rdx, rcx
mov qword [rax], rdx
jmp 0x66cc1a95
mov rax, qword [rbp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rbp + 8]
add rax, rdx
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x30]
lea rdx, [rax + 2]
mov rcx, qword [rbp + 0x50]
mov rax, qword [rbp + 0x70]
call rax
mov rdx, rax
mov rax, qword [rbp + 0x38]
mov qword [rax], rdx
add qword [rbp + 0x38], 8
cmp qword [rbp + 0x20], 0
je 0x66cc1aa6
add qword [rbp + 0x20], 8
mov rax, qword [rbp + 0x38]
mov rax, qword [rax]
test rax, rax
jne 0x66cc19d1
add qword [rbp + 0x28], 0x14
mov rax, qword [rbp + 0x28]
mov eax, dword [rax + 0xc]
test eax, eax
jne 0x66cc1985
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x30]
mov rdx, qword [rbp + 8]
sub rdx, rax
mov rax, rdx
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x10]
add rax, 0xb0
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x30]
mov eax, dword [rax + 4]
test eax, eax
je 0x66cc1cc1
mov rax, qword [rbp + 0x30]
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 8]
add rax, rdx
mov qword [rbp + 0x28], rax
jmp 0x66cc1cb2
mov rax, qword [rbp + 0x28]
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 8]
add rax, rdx
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x28]
mov eax, dword [rax + 4]
mov eax, eax
sub rax, 8
shr rax, 1
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x28]
add rax, 8
mov qword [rbp + 0x20], rax
jmp 0x66cc1c90
mov rax, qword [rbp + 0x20]
movzx eax, byte [rax + 1]
and eax, 0xfffffff0
cmp al, 0xa0
jne 0x66cc1b9b
mov rax, qword [rbp + 0x20]
movzx eax, word [rax]
and ax, 0xfff
movzx eax, ax
mov rdx, qword [rbp + 0x38]
add rax, rdx
mov rdx, qword [rax]
mov rax, qword [rbp + 0x20]
movzx eax, word [rax]
and ax, 0xfff
movzx eax, ax
mov rcx, qword [rbp + 0x38]
add rax, rcx
mov rcx, rax
mov rax, qword [rbp + 0x50]
add rax, rdx
mov qword [rcx], rax
jmp 0x66cc1c8b
mov rax, qword [rbp + 0x20]
movzx eax, byte [rax + 1]
and eax, 0xfffffff0
cmp al, 0x30
jne 0x66cc1beb
mov rax, qword [rbp + 0x20]
movzx eax, word [rax]
and ax, 0xfff
movzx eax, ax
mov rdx, qword [rbp + 0x38]
add rax, rdx
mov edx, dword [rax]
mov rax, qword [rbp + 0x50]
mov r8d, eax
mov rax, qword [rbp + 0x20]
movzx eax, word [rax]
and ax, 0xfff
movzx eax, ax
mov rcx, qword [rbp + 0x38]
add rax, rcx
mov rcx, rax
lea eax, [rdx + r8]
mov dword [rcx], eax
jmp 0x66cc1c8b
mov rax, qword [rbp + 0x20]
movzx eax, byte [rax + 1]
and eax, 0xfffffff0
cmp al, 0x10
jne 0x66cc1c3e
mov rax, qword [rbp + 0x20]
movzx eax, word [rax]
and ax, 0xfff
movzx eax, ax
mov rdx, qword [rbp + 0x38]
add rax, rdx
movzx edx, word [rax]
mov rax, qword [rbp + 0x50]
shr rax, 0x10
mov r8d, eax
mov rax, qword [rbp + 0x20]
movzx eax, word [rax]
and ax, 0xfff
movzx eax, ax
mov rcx, qword [rbp + 0x38]
add rax, rcx
mov rcx, rax
lea eax, [rdx + r8]
mov word [rcx], ax
jmp 0x66cc1c8b
mov rax, qword [rbp + 0x20]
movzx eax, byte [rax + 1]
and eax, 0xfffffff0
cmp al, 0x20
jne 0x66cc1c8b
mov rax, qword [rbp + 0x20]
movzx eax, word [rax]
and ax, 0xfff
movzx eax, ax
mov rdx, qword [rbp + 0x38]
add rax, rdx
movzx edx, word [rax]
mov rax, qword [rbp + 0x50]
mov r8d, eax
mov rax, qword [rbp + 0x20]
movzx eax, word [rax]
and ax, 0xfff
movzx eax, ax
mov rcx, qword [rbp + 0x38]
add rax, rcx
mov rcx, rax
lea eax, [rdx + r8]
mov word [rcx], ax
add qword [rbp + 0x20], 2
mov rax, qword [rbp + 0x30]
lea rdx, [rax - 1]
mov qword [rbp + 0x30], rdx
test rax, rax
jne 0x66cc1b4d
mov rax, qword [rbp + 0x28]
mov eax, dword [rax + 4]
mov eax, eax
add qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
mov eax, dword [rax + 4]
test eax, eax
jne 0x66cc1b15
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x28]
mov edx, eax
mov rax, qword [rbp + 8]
add rax, rdx
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x60]
mov r8d, 0
mov edx, 0
mov rcx, 0xffffffffffffffff
call rax
mov rax, qword [rbp + 0x38]
mov rcx, qword [rbp + 8]
mov r8, qword [rbp + 0xa0]
mov edx, 1
call rax
mov rax, qword [rbp + 0x38]
add rsp, 0x108
pop rbx
pop rbp
ret