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

Disassembly:
sub esp, 0x28
push ebp
push str.GetNativeSystemInfo
push str.Kernel32.dll
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [esp + 0x38]
cmp edx, 0x40
mov dword [esp + 4], eax
jae 0x10007e0b
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebp
add esp, 0x28
ret 0x1c
mov ecx, dword [esp + 0x34]
cmp word [ecx], 0x5a4d
je 0x10007e2a
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebp
add esp, 0x28
ret 0x1c
push edi
mov edi, dword [ecx + 0x3c]
lea eax, [edi + 0xf8]
cmp edx, eax
jae 0x10007e4a
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop ebp
add esp, 0x28
ret 0x1c
mov eax, dword [edi + ecx]
add edi, ecx
cmp eax, 0x4550
je 0x10007e6b
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop ebp
add esp, 0x28
ret 0x1c
cmp word [edi + 4], 0x14c
jne 0x10007e56
test byte [edi + 0x38], 1
jne 0x10007e56
movzx ecx, word [edi + 0x14]
lea edx, [ecx + edi + 0x18]
movzx ecx, word [edi + 6]
test ecx, ecx
push ebx
push esi
jbe 0x10007eac
add edx, 0xc
mov ebx, ecx
mov esi, dword [edx + 4]
test esi, esi
mov ecx, dword [edx]
jne 0x10007e9e
add ecx, dword [edi + 0x38]
jmp 0x10007ea0
add ecx, esi
cmp ecx, ebp
jbe 0x10007ea6
mov ebp, ecx
add edx, 0x28
dec ebx
jne 0x10007e90
lea edx, [esp + 0x14]
push edx
call dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 0x50]
lea eax, [ecx - 1]
lea esi, [edx + ecx - 1]
not eax
lea ecx, [ecx + ebp - 1]
and esi, eax
and ecx, eax
cmp esi, ecx
je 0x10007ee8
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x28
ret 0x1c
mov edx, dword [edi + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x3000
push esi
push edx
call ebx
mov ebp, eax
test ebp, ebp
jne 0x10007f13
push 4
push 0x3000
push esi
push eax
call ebx
mov ebp, eax
test ebp, ebp
je 0x10007f37
push 0x34
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x10007f4b
push 0x8000
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x28
ret 0x1c
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
xor eax, eax
mov dword [esi + 4], ebp
mov ax, word [edi + 0x16]
mov dword [esi + 0x1c], ecx
mov ecx, dword [esp + 0x54]
mov dword [esi + 0x20], edx
mov dword [esi + 0x28], ecx
shr eax, 0xd
and eax, 1
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x50]
mov dword [esi + 0x24], eax
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x44]
mov dword [esi + 0x30], edx
mov ecx, dword [edi + 0x54]
call fcn.100077f0
test eax, eax
je 0x10008049
mov eax, dword [edi + 0x54]
push 4
push 0x1000
push eax
push ebp
call ebx
mov edx, dword [edi + 0x54]
mov ecx, dword [esp + 0x40]
mov ebx, eax
call fcn.10007760
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 0x3c]
mov edx, dword [esp + 0x44]
push esi
push edi
add ebx, ecx
push edx
mov dword [esi], ebx
push eax
mov dword [ebx + 0x34], ebp
call fcn.10007810
test eax, eax
je 0x10008049
mov eax, dword [esi]
mov eax, dword [eax + 0x34]
sub eax, dword [edi + 0x34]
je 0x10007fe6
push eax
mov eax, esi
call fcn.10007b70
mov dword [esi + 0x18], eax
jmp 0x10007fed
mov dword [esi + 0x18], 1
mov edi, esi
call fcn.10007c10
test eax, eax
je 0x10008049
mov ecx, dword [esp + 0x3c]
push esi
push ecx
call fcn.100079d0
test eax, eax
je 0x10008049
mov eax, esi
call fcn.10007b30
test eax, eax
je 0x10008049
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
test eax, eax
je 0x1000807e
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x1000806d
mov ecx, dword [0x10086768]
mov edx, dword [0x10086764]
add ebp, eax
mov eax, dword [0x1008676c]
push eax
push ecx
push edx
call ebp
test eax, eax
jne 0x1000805a
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.100081e0
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x28
ret 0x1c
mov dword [esi + 0x10], 1
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x28
ret 0x1c
add eax, ebp
mov dword [esi + 0x2c], eax
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x28
ret 0x1c
mov dword [esi + 0x2c], 0
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x28
ret 0x1c