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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
je 0x1006ad4a
mov eax, dword [esi + 8]
cmp edi, eax
je 0x1006ad4a
test eax, eax
jle 0x1006ad47
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 8], edi
mov ebx, dword [esi + 8]
test ebx, ebx
jne 0x1006ad5f
mov eax, 0xc0000141
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x1006afef
mov edx, dword [ebx + 0x3c]
add edx, ebx
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], edx
cmp dword [edx], 0x4550
jne 0x1006afef
mov eax, 0x20b
mov dword [esp + 0x18], 0x5e
lea ecx, [esi + 0x3c]
cmp word [edx + 0x18], ax
jne 0x1006add8
mov byte [esi + 0xd], 1
lea edi, [edx + 0x108]
mov eax, dword [edx + 0x30]
mov ecx, dword [edx + 0x34]
mov dword [esi + 0x24], ecx
mov dword [esi + 0x20], eax
mov eax, dword [edx + 0x50]
mov dword [esi + 0x28], eax
mov eax, dword [edx + 0x54]
mov dword [esi + 0x30], eax
mov eax, dword [edx + 0x28]
mov dword [esi + 0x2c], eax
movzx ecx, word [edx + 0x5c]
mov dword [esp + 0x14], ecx
lea ecx, [esi + 0x3c]
mov dword [esp + 0x1c], edi
mov byte [esp + 0x13], 1
jmp 0x1006ae12
mov byte [esi + 0xd], 0
lea edi, [edx + 0xf8]
mov eax, dword [edx + 0x34]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], 0
mov eax, dword [edx + 0x50]
mov dword [esi + 0x28], eax
mov eax, dword [edx + 0x54]
mov dword [esi + 0x30], eax
mov eax, dword [edx + 0x28]
mov dword [esi + 0x2c], eax
mov dword [esp + 0x1c], edi
movzx edi, word [edx + 0x5c]
mov byte [esp + 0x13], 0
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x14]
mov eax, edx
mov dword [ecx], edi
mov ecx, dword [esp + 0x18]
movzx eax, word [eax + ecx]
mov dword [esi + 0x44], eax
mov ax, word [edx + 0x16]
shr ax, 0xd
not al
and al, 1
cmp byte [esp + 0x13], 0
mov byte [esi + 0xe], al
je 0x1006ae43
add edx, 0xf8
jmp 0x1006ae49
add edx, 0xe8
mov eax, dword [edx]
mov edi, dword [esp + 0x1c]
test eax, eax
je 0x1006af91
push 1
push eax
mov ecx, esi
call fcn.1006b7c0
test eax, eax
je 0x1006af91
test byte [eax + 0x10], 1
je 0x1006af91
sub eax, ebx
mov byte [esi + 0xf], 1
add eax, 0x10
lea ebx, [esi + 0xc4]
mov dword [esi + 0x40], eax
lea eax, [esi + 0x94]
cmp ebx, eax
je 0x1006aea3
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x1006ae9a
mov eax, dword [eax]
push ecx
push eax
mov ecx, ebx
call fcn.10050370
cmp dword [ebx + 0x20], 0
lea eax, [ebx + 0x20]
jne 0x1006aedf
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x1006af95
lea ecx, [ebx + 0x20]
push ecx
push 0x1019e3f0
push 1
push 0
push 0x10192290
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1006af95
lea eax, [ebx + 0x20]
cmp dword [ebx + 0x24], 0
lea ecx, [ebx + 0x24]
jne 0x1006af6d
cmp dword [ebx + 0x14], 8
mov edx, dword [eax]
mov eax, dword [edx]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x1c], eax
mov eax, ebx
jb 0x1006af01
mov eax, dword [ebx]
push ecx
push 0x10192280
push 0
push eax
push edx
call dword [esp + 0x30]
cmp eax, 0x80131110
jne 0x1006af66
mov ecx, dword [ebx + 0x20]
lea edx, [esp + 0x20]
mov eax, 0x13
mov dword [esp + 0x28], 4
push edx
mov word [esp + 0x24], ax
mov eax, dword [ecx]
push 0x1019e3e0
push ecx
call dword [eax + 0x18]
test eax, eax
js 0x1006af95
cmp dword [ebx + 0x14], 8
mov ecx, ebx
mov edx, dword [ebx + 0x20]
mov eax, dword [edx]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x1c], eax
jb 0x1006af55
mov ecx, dword [ebx]
lea eax, [ebx + 0x24]
push eax
push 0x10192280
push 0
push ecx
push edx
call dword [esp + 0x30]
test eax, eax
js 0x1006af95
lea ecx, [ebx + 0x24]
cmp dword [ebx + 0x28], 0
lea edx, [ebx + 0x28]
jne 0x1006af87
mov ecx, dword [ecx]
push edx
push 0x1019e400
push ecx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
js 0x1006af95
push ecx
mov ecx, ebx
call fcn.10087130
jmp 0x1006af95
mov byte [esi + 0xf], 0
mov eax, dword [esi + 0x14]
xor ecx, ecx
xor ebx, ebx
cmp cx, word [eax + 6]
jae 0x1006afe4
lea ecx, [esi + 0x48]
mov eax, dword [esi + 0x4c]
cmp eax, dword [esi + 0x50]
je 0x1006afcb
movups xmm0, xmmword [edi]
movups xmmword [eax], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [edi + 0x20]
movq qword [eax + 0x20], xmm0
add dword [esi + 0x4c], 0x28
jmp 0x1006afd5
push edi
push eax
call fcn.1006c060
lea ecx, [esi + 0x48]
mov eax, dword [esi + 0x14]
inc ebx
add edi, 0x28
movzx eax, word [eax + 6]
cmp ebx, eax
jl 0x1006afa5
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
mov eax, 0xc000007b
pop ebx
mov esp, ebp
pop ebp
ret 4