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

Disassembly:
sub esp, 0x14
push ebx
mov ebx, ecx
mov eax, 0x5a4d
push ebp
push esi
push edi
mov dword [esp + 0x1c], ebx
cmp word [ebx], ax
jne 0x10002536
mov ebp, dword [ebx + 0x3c]
add ebp, ebx
cmp dword [ebp], 0x4550
jne 0x10002536
push 0x40
push 0x3000
push dword [ebp + 0x50]
push dword [ebp + 0x34]
call dword [0x10008728]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
jne 0x10002179
push 4
push 0x3000
push dword [ebp + 0x50]
push eax
call dword [0x10008728]
mov esi, eax
mov dword [esp + 0x14], eax
test esi, esi
je 0x10002536
push 4
push 0x3000
push 0x24
push 0
call dword [0x10008728]
mov edi, eax
mov dword [esp + 0x20], edi
test edi, edi
je 0x10002536
push 4
push 0x1000
mov dword [edi + 4], esi
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x100020d0
mov dword [edi + 0x18], 0x100020e0
mov dword [edi + 0x1c], 0x100020f0
mov dword [edi + 0x20], 0
push dword [ebp + 0x54]
push esi
call dword [0x10008728]
push dword [ebp + 0x54]
mov esi, eax
push ebx
push esi
call fcn.10001fd0
mov eax, dword [ebx + 0x3c]
add esp, 0xc
mov ecx, dword [esp + 0x14]
add eax, esi
mov dword [edi], eax
mov dword [esp + 0x18], 0
mov dword [eax + 0x34], ecx
xor eax, eax
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp + 0x10], edx
movzx ebx, word [ecx + 0x14]
add ebx, 0x28
cmp ax, word [ecx + 6]
jae 0x1000229c
add ebx, ecx
mov eax, dword [ebx]
test eax, eax
jne 0x1000224f
mov esi, dword [ebp + 0x38]
test esi, esi
jle 0x1000227f
mov eax, dword [ebx - 4]
push 4
push 0x1000
push esi
add eax, edx
push eax
call dword [0x10008728]
push esi
push 0
push eax
mov dword [ebx - 8], eax
call fcn.10002080
jmp 0x10002278
push 4
push 0x1000
push eax
mov eax, dword [ebx - 4]
add eax, edx
push eax
call dword [0x10008728]
push dword [ebx]
mov ecx, dword [ebx + 4]
mov esi, eax
add ecx, dword [esp + 0x20]
push ecx
push esi
call fcn.10001fd0
mov dword [ebx - 8], esi
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [edi]
add ebx, 0x28
mov esi, dword [esp + 0x18]
inc esi
mov dword [esp + 0x18], esi
movzx eax, word [ecx + 6]
cmp esi, eax
jl 0x10002220
mov edx, dword [edi + 4]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x14]
sub eax, dword [ebp + 0x34]
mov dword [esp + 0x1c], eax
je 0x1000231c
cmp dword [ecx + 0xa4], 0
jbe 0x1000231c
mov ebx, dword [ecx + 0xa0]
add ebx, edx
mov eax, dword [ebx]
test eax, eax
je 0x1000231c
mov edi, dword [esp + 0x1c]
mov ecx, dword [ebx + 4]
lea ebp, [eax + edx]
xor esi, esi
lea edx, [ebx + 8]
lea eax, [ecx - 8]
test eax, 0xfffffffe
jbe 0x1000230b
nop dword [eax]
movzx eax, word [edx]
mov ecx, eax
and ecx, 0xf000
cmp ecx, 0x3000
jne 0x100022fb
and eax, 0xfff
add dword [eax + ebp], edi
mov ecx, dword [ebx + 4]
inc esi
add edx, 2
lea eax, [ecx - 8]
shr eax, 1
cmp esi, eax
jb 0x100022e0
mov eax, dword [ebx + ecx]
add ebx, ecx
mov edx, dword [esp + 0x10]
test eax, eax
jne 0x100022c4
mov edi, dword [esp + 0x20]
mov ebx, dword [edi]
mov ebp, dword [edi + 4]
mov dword [esp + 0x10], ebp
cmp dword [ebx + 0x84], 0
jbe 0x1000240a
mov ebx, dword [ebx + 0x80]
mov eax, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
add ebx, ebp
push 0x14
push ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], eax
call eax
test eax, eax
jne 0x1000240a
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x1000240a
push dword [edi + 0x20]
add eax, ebp
push eax
mov eax, dword [edi + 0x14]
call eax
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x100023fd
mov ecx, dword [ebx]
test ecx, ecx
jne 0x10002380
mov ecx, dword [ebx + 0x10]
mov eax, dword [esp + 0x10]
mov esi, dword [ebx + 0x10]
add esi, eax
lea ebx, [ecx + eax]
mov eax, dword [ebx]
test eax, eax
je 0x100023c5
mov ecx, dword [edi + 0x20]
mov edx, dword [edi + 0x18]
push ecx
test eax, eax
jns 0x100023a2
movzx eax, ax
jmp 0x100023ab
mov ecx, dword [esp + 0x14]
add ecx, 2
add eax, ecx
push eax
push ebp
call edx
add esp, 0xc
mov dword [esi], eax
test eax, eax
je 0x100023e4
mov eax, dword [ebx + 4]
add ebx, 4
add esi, 4
test eax, eax
jne 0x10002392
mov ebx, dword [esp + 0x18]
add ebx, 0x14
push 0x14
push ebx
mov dword [esp + 0x20], ebx
call dword [esp + 0x28]
test eax, eax
jne 0x1000240a
mov ebp, dword [esp + 0x10]
jmp 0x10002354
push dword [edi + 0x20]
mov eax, dword [edi + 0x1c]
push ebp
call eax
add esp, 8
push 0x7f
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100024f3
push 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100024f3
mov ebx, dword [edi]
xor eax, eax
xor ebp, ebp
movzx esi, word [ebx + 0x14]
add esi, 0x28
cmp ax, word [ebx + 6]
jae 0x100024ad
add esi, ebx
mov edx, dword [esi + 0x14]
test edx, 0x2000000
je 0x10002440
push 0x4000
push dword [esi]
push dword [esi - 8]
call dword [0x1000874c]
jmp 0x1000249b
mov ecx, edx
mov eax, edx
shr eax, 0x1e
shr ecx, 0x1d
and eax, 1
and ecx, 1
lea ecx, [eax + ecx*2]
mov eax, edx
shr eax, 0x1f
lea eax, [eax + ecx*2]
mov ecx, dword [eax*4 + 0x100044c0]
test edx, 0x4000000
je 0x10002470
or ecx, 0x200
mov eax, dword [esi]
test eax, eax
jne 0x1000248b
test dl, 0x40
je 0x10002480
mov eax, dword [ebx + 0x20]
jmp 0x10002487
test dl, dl
jns 0x1000249b
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x1000249b
lea edx, [esp + 0x20]
push edx
push ecx
push eax
push dword [esi - 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, dword [edi]
inc ebp
add esi, 0x28
movzx eax, word [ebx + 6]
cmp ebp, eax
jl 0x10002423
mov esi, dword [ebx + 0xc0]
test esi, esi
je 0x100024d9
mov ebx, dword [edi + 4]
mov esi, dword [ebx + esi + 0xc]
test esi, esi
je 0x100024d9
mov eax, dword [esi]
test eax, eax
je 0x100024d9
push 0
push 1
push ebx
call eax
mov eax, dword [esi + 4]
lea esi, [esi + 4]
test eax, eax
jne 0x100024c8
mov eax, dword [edi]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x10002547
mov ecx, dword [esp + 0x14]
add eax, ecx
push 0
push 1
push ecx
call eax
test eax, eax
jne 0x10002540
cmp dword [edi + 0x10], 0
je 0x10002511
mov eax, dword [edi]
mov ecx, dword [edi + 4]
push 0
push 0
mov eax, dword [eax + 0x28]
push ecx
add eax, ecx
call eax
mov dword [edi + 0x10], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x10002526
push 0x8000
push 0
push eax
call dword [0x1000874c]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
mov dword [edi + 0x10], 1
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret