Function at 0x100acd30
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.100ac530
test eax, eax
jne 0x100acd60
xor eax, eax
jmp 0x100ad151
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
movzx eax, word [edx]
cmp eax, 0x5a4d
je 0x100acd85
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100ad151
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.100ac530
test eax, eax
jne 0x100acda9
xor eax, eax
jmp 0x100ad151
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 0x100acdd2
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100ad151
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 4]
cmp edx, 0x14c
je 0x100acdf3
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100ad151
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x38]
and ecx, 1
je 0x100ace10
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100ad151
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 0x100ace45
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 0x100ace87
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x10], 0
jne 0x100ace68
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xc]
add edx, dword [ebp - 0x38]
mov dword [ebp - 0x20], edx
jmp 0x100ace77
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 0x100ace85
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
jmp 0x100ace33
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 0x100aced6
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100ad151
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 0x100acf22
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 0x100acf22
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100ad151
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 0x100acf5c
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 0x100ad151
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 0x100acf7d
mov dword [ebp - 0x2c], 1
jmp 0x100acf84
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.100ac530
test eax, eax
jne 0x100acfdb
jmp 0x100ad143
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.100ac560
test eax, eax
jne 0x100ad04c
jmp 0x100ad143
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 0x100ad077
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.100ad1c0
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], eax
jmp 0x100ad081
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 1
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.100ac2e0
test eax, eax
jne 0x100ad09b
jmp 0x100ad143
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.100ac8a0
test eax, eax
jne 0x100ad0b5
jmp 0x100ad143
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.100ac6c0
test eax, eax
jne 0x100ad0c9
jmp 0x100ad143
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
cmp dword [edx + 0x28], 0
je 0x100ad134
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0
je 0x100ad121
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 0x100ad115
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
nop
jmp 0x100ad143
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 1
jmp 0x100ad132
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 0x100ad13e
mov edx, dword [ebp - 4]
mov dword [edx + 0x2c], 0
mov eax, dword [ebp - 4]
jmp 0x100ad151
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.100aca20
xor eax, eax
mov esp, ebp
pop ebp
ret 0x18