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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, 0x5a4d
xor ebx, ebx
cmp word [esi], ax
je 0x10001ac0
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10001ced
mov eax, dword [esi + 0x3c]
add eax, 0xf8
push eax
call fcn.100015ea
test eax, eax
je 0x10001ab9
push edi
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x10001b4a
mov eax, 0x14c
cmp word [edi + 4], ax
jne 0x10001b4a
test byte [edi + 0x38], 1
jne 0x10001b4a
movzx edx, word [edi + 6]
movzx eax, word [edi + 0x14]
lea eax, [eax + edi + 0x18]
test edx, edx
jbe 0x10001b25
lea ecx, [eax + 0xc]
mov dword [ebp - 4], edx
mov esi, dword [ecx + 4]
mov eax, dword [ecx]
test esi, esi
jne 0x10001b15
add eax, dword [edi + 0x38]
jmp 0x10001b17
add eax, esi
cmp eax, ebx
jbe 0x10001b1d
mov ebx, eax
add ecx, 0x28
dec dword [ebp - 4]
jne 0x10001b07
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [ebp - 0x28]
mov edx, dword [edi + 0x50]
lea ecx, [eax - 1]
lea esi, [edx + eax - 1]
not ecx
lea eax, [eax + ebx - 1]
and esi, ecx
and eax, ecx
cmp esi, eax
je 0x10001b51
push 0xc1
jmp 0x10001ba5
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x3000
push esi
push dword [edi + 0x34]
call ebx
mov dword [ebp - 4], eax
test eax, eax
jne 0x10001b7d
push 4
push 0x3000
push esi
push eax
call ebx
mov dword [ebp - 4], eax
test eax, eax
je 0x10001ba3
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 0x10001bb0
push 0x8000
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10001cd4
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
movzx eax, word [edi + 0x16]
and dword [esi + 0x28], 0
shr eax, 0xd
and eax, 1
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], 0x10001a72
mov dword [esi + 0x20], 0x10001a7d
mov dword [esi + 0x24], 0x10001a8c
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x30], eax
push dword [edi + 0x54]
call fcn.100015ea
test eax, eax
je 0x10001ccf
push 4
push 0x1000
push dword [edi + 0x54]
push dword [ebp - 4]
call ebx
mov ecx, dword [edi + 0x54]
test ecx, ecx
jbe 0x10001c1d
mov ebx, dword [ebp + 8]
mov edx, eax
sub ebx, eax
mov dword [ebp - 8], ecx
mov cl, byte [ebx + edx]
mov byte [edx], cl
inc edx
dec dword [ebp - 8]
jne 0x10001c12
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x3c]
push esi
add eax, edx
mov edx, dword [ebp - 4]
push edi
mov dword [esi], eax
push ecx
mov dword [eax + 0x34], edx
call fcn.10001606
test eax, eax
je 0x10001ccf
mov eax, dword [esi]
mov eax, dword [eax + 0x34]
sub eax, dword [edi + 0x34]
je 0x10001c54
push eax
mov eax, esi
call fcn.100018af
mov dword [esi + 0x18], eax
jmp 0x10001c5b
mov dword [esi + 0x18], 1
call fcn.10001937
test eax, eax
je 0x10001ccf
push esi
call fcn.100017a7
test eax, eax
je 0x10001ccf
mov eax, dword [esi]
mov ebx, dword [esi + 4]
add eax, 0xc0
mov eax, dword [eax]
test eax, eax
je 0x10001c98
mov edi, dword [eax + ebx + 0xc]
test edi, edi
je 0x10001c98
jmp 0x10001c92
push 0
push 1
push ebx
call eax
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x10001c88
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x10001ce6
mov ecx, dword [ebp - 4]
add eax, ecx
cmp dword [esi + 0x14], 0
je 0x10001ce1
push dword [0x10057314]
push dword [0x10057310]
push dword [0x1005730c]
call eax
test eax, eax
jne 0x10001cd8
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.10001db0
xor eax, eax
jmp 0x10001cec
mov dword [esi + 0x10], 1
jmp 0x10001cea
mov dword [esi + 0x2c], eax
jmp 0x10001cea
and dword [esi + 0x2c], 0
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4