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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
and dword [ebp - 8], 0
push 0x40
push dword [ebp + 0xc]
mov dword [ebp - 4], ecx
call fcn.10001416
test eax, eax
je 0x10001cd3
push esi
mov esi, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [esi], ax
je 0x10001aaa
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10001ac2
mov eax, dword [esi + 0x3c]
mov ecx, dword [ebp - 4]
add eax, 0xf8
push eax
push dword [ebp + 0xc]
call fcn.10001416
test eax, eax
jne 0x10001ac9
xor eax, eax
jmp 0x10001cd2
push edi
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x10001ae2
mov eax, 0x14c
cmp word [edi + 4], ax
je 0x10001af4
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10001cd1
push ebx
mov ebx, dword [edi + 0x38]
test bl, 1
jne 0x10001b54
movzx edx, word [edi + 6]
movzx eax, word [edi + 0x14]
lea eax, [eax + edi + 0x18]
test edx, edx
je 0x10001b2d
lea ecx, [eax + 0xc]
mov esi, dword [ecx + 4]
mov eax, dword [ecx]
test esi, esi
jne 0x10001b1d
add eax, ebx
jmp 0x10001b1f
add eax, esi
cmp eax, dword [ebp - 8]
jbe 0x10001b27
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x10001b10
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.dll_GetNativeSystemInfo
mov eax, dword [ebp - 0x28]
mov edx, dword [edi + 0x50]
lea esi, [edx + eax - 1]
mov edx, dword [ebp - 8]
lea ecx, [eax - 1]
not ecx
lea eax, [eax + edx - 1]
and esi, ecx
and eax, ecx
cmp esi, eax
je 0x10001b5b
push 0xc1
jmp 0x10001bad
push 4
push 0x3000
push esi
push dword [edi + 0x34]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
jne 0x10001b87
push 4
push 0x3000
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
je 0x10001bab
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 0x10001bb8
push 0x8000
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10001cbb
mov dword [esi + 4], ebx
movzx eax, word [edi + 0x16]
mov ecx, dword [ebp - 4]
shr eax, 0xd
and eax, 1
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x30], eax
push dword [edi + 0x54]
push dword [ebp + 0xc]
call fcn.10001416
test eax, eax
je 0x10001cb2
push 4
push 0x1000
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push dword [edi + 0x54]
mov dword [ebp + 0x10], eax
push dword [ebp + 8]
push eax
call fcn.1000134c
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, dword [ebp + 0x10]
add esp, 0xc
push esi
push edi
push dword [ebp + 0xc]
mov dword [esi], eax
push ecx
mov ecx, dword [ebp - 4]
mov dword [eax + 0x34], ebx
call fcn.10001434
test eax, eax
je 0x10001cb2
mov eax, dword [esi]
mov eax, dword [eax + 0x34]
sub eax, dword [edi + 0x34]
je 0x10001c5b
mov ecx, dword [ebp - 4]
push eax
push esi
call fcn.10001732
xor edi, edi
mov dword [esi + 0x18], eax
inc edi
jmp 0x10001c61
xor edi, edi
inc edi
mov dword [esi + 0x18], edi
mov ecx, dword [ebp - 4]
push esi
call fcn.100017be
test eax, eax
je 0x10001cb2
mov ecx, dword [ebp - 4]
push esi
call fcn.100015e2
test eax, eax
je 0x10001cb2
mov ecx, dword [ebp - 4]
push esi
call fcn.100016f8
test eax, eax
je 0x10001cb2
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
xor ecx, ecx
cmp eax, ecx
je 0x10001ccb
cmp dword [esi + 0x14], ecx
je 0x10001cc4
push ecx
push edi
add ebx, eax
push 0x10000000
call ebx
test eax, eax
jne 0x10001cbf
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
push esi
call fcn.100019f4
xor eax, eax
jmp 0x10001cd0
mov dword [esi + 0x10], edi
jmp 0x10001cce
add eax, ebx
mov dword [esi + 0x2c], eax
jmp 0x10001cce
mov dword [esi + 0x2c], ecx
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret 0x18