Function at 0x100ac050
Capabilities:
Enumerate pe sections
Get system information on windows
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
push 0x40
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.100ab850
test eax, eax
jne 0x100ac080
xor eax, eax
jmp 0x100ac471
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
movzx eax, word [edx]
cmp eax, 0x5a4d
je 0x100ac0a5
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100ac471
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x3c]
add edx, 0xf8
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.100ab850
test eax, eax
jne 0x100ac0c9
xor eax, eax
jmp 0x100ac471
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x100ac0f2
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100ac471
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 4]
cmp edx, 0x14c
je 0x100ac113
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100ac471
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x38]
and ecx, 1
je 0x100ac130
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100ac471
mov edx, dword [ebp - 8]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x1c], 0
jmp 0x100ac165
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x14]
add eax, 0x28
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 6]
cmp dword [ebp - 0x1c], edx
jae 0x100ac1a7
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x10], 0
jne 0x100ac188
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xc]
add edx, dword [ebp - 0x38]
mov dword [ebp - 0x20], edx
jmp 0x100ac197
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + 0x10]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x24]
jbe 0x100ac1a5
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
jmp 0x100ac153
lea edx, [ebp - 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x50]
mov edx, dword [ebp - 0x64]
lea eax, [ecx + edx - 1]
mov ecx, dword [ebp - 0x64]
sub ecx, 1
not ecx
and eax, ecx
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x24]
lea ecx, [eax + edx - 1]
mov edx, dword [ebp - 0x64]
sub edx, 1
not edx
and ecx, edx
cmp dword [ebp - 0x28], ecx
je 0x100ac1f6
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100ac471
push 4
push 0x3000
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x100ac242
push 4
push 0x3000
mov eax, dword [ebp - 0x28]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x100ac242
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100ac471
push 0x34
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100ac27c
push 0x8000
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100ac471
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 0x16]
and edx, 0x2000
je 0x100ac29d
mov dword [ebp - 0x2c], 1
jmp 0x100ac2a4
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x1c], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov dword [ecx + 0x20], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
mov dword [eax + 0x24], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x1c]
mov dword [edx + 0x28], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x64]
mov dword [ecx + 0x30], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.100ab850
test eax, eax
jne 0x100ac2fb
jmp 0x100ac463
push 4
push 0x1000
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x30]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x30]
add edx, dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
mov dword [eax], edx
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xc]
mov dword [edx + 0x34], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.100ab880
test eax, eax
jne 0x100ac36c
jmp 0x100ac463
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 0x34]
sub edx, dword [ecx + 0x34]
mov dword [ebp - 0x34], edx
je 0x100ac397
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.100ac4e0
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], eax
jmp 0x100ac3a1
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 1
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.100ab600
test eax, eax
jne 0x100ac3bb
jmp 0x100ac463
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.100abbc0
test eax, eax
jne 0x100ac3d5
jmp 0x100ac463
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.100ab9e0
test eax, eax
jne 0x100ac3e9
jmp 0x100ac463
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
cmp dword [edx + 0x28], 0
je 0x100ac454
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0
je 0x100ac441
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x28]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], ecx
push 0
push 1
mov edx, dword [ebp - 0xc]
push edx
call dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x100ac435
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
nop
jmp 0x100ac463
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 1
jmp 0x100ac452
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x28]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x2c], eax
jmp 0x100ac45e
mov edx, dword [ebp - 4]
mov dword [edx + 0x2c], 0
mov eax, dword [ebp - 4]
jmp 0x100ac471
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.100abd40
xor eax, eax
mov esp, ebp
pop ebp
ret 0x18