Function at 0x1003c6b0
Capabilities:
Enumerate pe sections
Get system information on windows

Disassembly:
push ebp
push edi
mov edi, edx
push esi
push ebx
sub esp, 0x8c
mov dword [esp + 0x28], eax
mov eax, dword [eax + 0x3c]
mov dword [esp + 0x34], edx
lea edx, [eax + 0xf8]
mov dword [esp + 0x2c], ecx
cmp edx, edi
ja 0x1003cb50
mov edi, dword [esp + 0x28]
lea ebp, [edi + eax]
cmp dword [ebp], 0x4550
jne 0x1003cab0
cmp word [ebp + 4], 0x14c
jne 0x1003cab0
mov esi, dword [ebp + 0x38]
test esi, 1
jne 0x1003cab0
movzx eax, word [ebp + 0x14]
xor ebx, ebx
lea edx, [ebp + eax + 0x18]
movzx eax, word [ebp + 6]
mov dword [esp + 0x24], eax
test eax, eax
je 0x1003c74d
mov dword [esp + 0x30], ebp
xor ecx, ecx
lea esi, [esi]
mov edi, dword [edx + 0x10]
mov eax, dword [edx + 0xc]
lea ebp, [esi + eax]
add eax, edi
test edi, edi
cmove eax, ebp
cmp ebx, eax
cmovb ebx, eax
add ecx, 1
add edx, 0x28
cmp dword [esp + 0x24], ecx
jne 0x1003c728
mov ebp, dword [esp + 0x30]
lea eax, [esp + 0x5c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov esi, dword [ebp + 0x50]
sub esp, 4
mov edx, dword [esp + 0x60]
lea eax, [edx - 1]
neg edx
add esi, eax
add eax, ebx
and esi, edx
and eax, edx
cmp esi, eax
jne 0x1003cab0
mov eax, dword [esp + 0xb0]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x3000
mov dword [esp + 0x10], eax
mov dword [esp + 4], esi
mov eax, dword [ebp + 0x34]
mov dword [esp], eax
call edi
mov dword [esp + 0x38], eax
test eax, eax
je 0x1003cc00
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 8], 0x40
mov dword [esp + 4], 8
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x1003cef2
mov eax, dword [esp + 0x38]
mov dword [ebx + 4], eax
movzx eax, word [ebp + 0x16]
shr ax, 0xd
and eax, 1
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0xa0]
mov dword [ebx + 0x20], eax
mov eax, dword [esp + 0xa4]
mov dword [ebx + 0x24], eax
mov eax, dword [esp + 0xa8]
mov dword [ebx + 0x28], eax
mov eax, dword [esp + 0xac]
mov dword [ebx + 0x2c], eax
mov eax, dword [esp + 0xb0]
mov dword [ebx + 0x34], eax
mov eax, dword [esp + 0x60]
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp + 0x54]
cmp dword [esp + 0x34], eax
jb 0x1003ce70
mov edi, dword [esp + 0xb0]
mov dword [esp + 4], eax
mov dword [esp + 0xc], 4
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x38]
mov dword [esp + 8], 0x1000
mov dword [esp], edi
call eax
mov esi, eax
mov eax, dword [ebp + 0x54]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x28]
mov edx, edi
add esi, dword [eax + 0x3c]
mov eax, dword [ebx + 4]
mov ecx, esi
mov dword [ebx], esi
mov dword [esp + 0x24], eax
movzx eax, word [esi + 0x14]
mov dword [esp + 0x30], esi
mov dword [esi + 0x34], edi
lea esi, [esi + eax + 0x18]
movzx eax, word [ecx + 6]
test ax, ax
je 0x1003c94a
mov dword [esp + 0x2c], ebp
mov ebp, dword [esp + 0x24]
xor edi, edi
mov edx, dword [esi + 0x10]
test edx, edx
jne 0x1003cad0
mov edx, dword [esp + 0x2c]
mov edx, dword [edx + 0x38]
test edx, edx
jle 0x1003c92b
mov eax, dword [ebx + 0x34]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x1000
mov dword [esp + 0x10], eax
mov dword [esp + 4], edx
mov eax, dword [esi + 0xc]
mov dword [esp + 0x24], edx
add eax, ebp
mov dword [esp], eax
call dword [ebx + 0x1c]
test eax, eax
je 0x1003ca90
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x24]
add eax, ebp
mov dword [esi + 8], eax
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov ecx, dword [ebx]
movzx eax, word [ecx + 6]
add edi, 1
movzx edx, ax
add esi, 0x28
cmp edx, edi
jg 0x1003c8bd
mov eax, dword [ebx + 4]
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x30], ecx
mov edx, dword [ecx + 0x34]
mov dword [esp + 0x24], eax
sub edx, dword [ebp + 0x34]
mov dword [esp + 0x2c], edx
jne 0x1003cb6f
mov dword [ebx + 0x18], 1
mov eax, dword [esp + 0x30]
mov esi, dword [eax + 0x84]
test esi, esi
je 0x1003cc56
mov edi, dword [esp + 0x24]
add edi, dword [eax + 0x80]
mov dword [esp + 0x28], edi
nop
mov eax, dword [esp + 0x28]
mov dword [esp + 4], 0x14
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
sub esp, 8
test eax, eax
jne 0x1003cc50
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1003cc50
mov edx, dword [ebx + 0x34]
add eax, dword [esp + 0x24]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [ebx + 0x24]
mov edi, eax
test eax, eax
je 0x1003cedd
mov eax, dword [ebx + 0xc]
lea eax, [eax*4 + 4]
mov dword [esp + 4], eax
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
test eax, eax
je 0x1003cf52
mov edx, dword [ebx + 0xc]
mov esi, dword [esp + 0x28]
mov dword [ebx + 8], eax
lea ecx, [edx + 1]
mov dword [ebx + 0xc], ecx
mov ecx, esi
mov dword [eax + edx*4], edi
mov ebp, dword [ecx + 0x10]
mov eax, dword [esi]
mov esi, dword [esp + 0x24]
add ebp, esi
add esi, eax
test eax, eax
cmove esi, ebp
mov eax, dword [esi]
test eax, eax
jne 0x1003ca49
jmp 0x1003cbf0
mov ecx, dword [esp + 0x24]
mov dword [esp], edi
lea eax, [ecx + eax + 2]
mov dword [esp + 4], eax
call edx
mov dword [ebp], eax
test eax, eax
je 0x1003ca6a
mov eax, dword [esi + 4]
add esi, 4
add ebp, 4
test eax, eax
je 0x1003cbf0
mov ecx, dword [ebx + 0x34]
mov edx, dword [ebx + 0x28]
mov dword [esp + 8], ecx
test eax, eax
jns 0x1003ca20
movzx eax, ax
mov dword [esp], edi
mov dword [esp + 4], eax
call edx
mov dword [ebp], eax
test eax, eax
jne 0x1003ca38
mov eax, dword [ebx + 0x34]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [ebx + 0x2c]
mov dword [esp], 0x7f
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
lea esi, [esi]
nop
mov dword [esp], ebx
xor ebx, ebx
call fcn.1003c330
add esp, 0x8c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0xc1
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi + 0x14]
add eax, edx
cmp dword [esp + 0x34], eax
jb 0x1003ce70
mov eax, dword [ebx + 0x34]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x1000
mov dword [esp + 0x10], eax
mov dword [esp + 4], edx
mov eax, dword [esi + 0xc]
add eax, ebp
mov dword [esp], eax
call dword [ebx + 0x1c]
test eax, eax
je 0x1003ca90
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
add edi, 1
add esi, 0x28
mov eax, dword [esp + 0x28]
add eax, dword [esi - 0x14]
add edx, ebp
mov dword [esp + 8], ecx
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 0x24], edx
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebx]
mov edx, dword [esp + 0x24]
movzx eax, word [ecx + 6]
mov dword [esi - 0x20], edx
movzx edx, ax
cmp edx, edi
jg 0x1003c8bd
jmp 0x1003c938
mov dword [esp], 0xd
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [esp + 0x30]
xor eax, eax
mov ebp, dword [edi + 0xa4]
test ebp, ebp
je 0x1003cbe5
mov esi, dword [esp + 0x24]
add esi, dword [edi + 0xa0]
mov eax, dword [esi]
mov dword [esp + 0x28], eax
test eax, eax
je 0x1003cbe0
mov dword [esp + 0x34], ebx
mov ebp, dword [esp + 0x24]
lea esi, [esi]
nop
mov edi, dword [esi + 4]
lea ebx, [edi - 8]
mov eax, ebx
shr eax, 1
je 0x1003cbd0
xor eax, eax
nop
movzx edx, word [esi + eax*2 + 8]
mov ecx, edx
shr cx, 0xc
cmp cx, 3
je 0x1003cea8
mov edx, ebx
add eax, 1
shr edx, 1
cmp edx, eax
ja 0x1003cbb0
add esi, edi
mov eax, dword [esi]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x1003cba0
mov ebx, dword [esp + 0x34]
mov eax, 1
mov dword [ebx + 0x18], eax
jmp 0x1003c95e
add dword [esp + 0x28], 0x14
jmp 0x1003c980
mov eax, dword [esp + 0xb0]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x3000
mov dword [esp + 0x10], eax
mov dword [esp + 4], esi
mov dword [esp], 0
call edi
mov dword [esp + 0x38], eax
test eax, eax
jne 0x1003c7b0
mov dword [esp], 0xe
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x1003ca9a
mov eax, dword [ebx]
mov dword [esp + 0x30], eax
mov ebp, dword [esp + 0x30]
mov esi, dword [ebx + 0x3c]
movzx eax, word [ebp + 0x14]
lea edi, [ebp + eax + 0x18]
mov eax, esi
mov edx, dword [edi + 8]
neg eax
mov ecx, dword [edi + 0x24]
and eax, edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x4c], eax
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x1003cca0
test cl, 0x40
jne 0x1003ce91
mov eax, ecx
and eax, 0x80
je 0x1003cca0
mov eax, dword [ebp + 0x24]
lea esi, [esi]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x30]
add edi, 0x28
mov dword [esp + 0x54], ecx
movzx eax, word [eax + 6]
mov dword [esp + 0x58], 0
mov word [esp + 0x2c], ax
cmp ax, 1
jbe 0x1003cf30
lea eax, [esp + 0x48]
mov dword [esp + 0x24], ebx
mov ecx, 1
mov ebx, esi
mov dword [esp + 0x3c], eax
jmp 0x1003cd3f
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x34], ecx
call fcn.1003d310
test eax, eax
je 0x1003ced4
mov eax, dword [edi + 0x24]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x48], ebp
mov edx, ebp
mov dword [esp + 0x4c], ebx
add edi, 0x28
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x24]
add ecx, 1
mov dword [esp + 0x50], esi
mov eax, dword [eax]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], eax
movzx eax, word [eax + 6]
mov word [esp + 0x2c], ax
movzx eax, word [esp + 0x2c]
cmp eax, ecx
jle 0x1003cdb1
mov eax, dword [esp + 0x24]
mov ebx, dword [eax + 0x3c]
mov ebp, dword [edi + 8]
mov esi, dword [edi + 0x10]
neg ebx
and ebx, ebp
test esi, esi
jne 0x1003cd63
mov esi, dword [edi + 0x24]
test esi, 0x40
je 0x1003ce58
mov eax, dword [esp + 0x30]
mov esi, dword [eax + 0x20]
cmp ebx, dword [esp + 0x28]
je 0x1003cd77
mov eax, dword [esp + 0x50]
add eax, edx
cmp ebx, eax
jae 0x1003cce0
mov ebx, dword [esp + 0x54]
mov eax, dword [edi + 0x24]
or eax, ebx
test dword [edi + 0x24], 0x2000000
je 0x1003cd91
and ebx, 0x2000000
jne 0x1003cd96
and eax, 0xfdffffff
mov dword [esp + 0x54], eax
sub ebp, edx
movzx eax, word [esp + 0x2c]
add ecx, 1
add ebp, esi
add edi, 0x28
mov dword [esp + 0x50], ebp
cmp eax, ecx
jg 0x1003cd38
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x3c]
mov eax, ebx
mov dword [esp + 0x58], 1
call fcn.1003d310
test eax, eax
je 0x1003ca90
mov edx, dword [ebx]
mov eax, dword [edx + 0xc0]
test eax, eax
je 0x1003ce13
mov edi, dword [ebx + 4]
mov esi, dword [edi + eax + 0xc]
test esi, esi
je 0x1003ce13
mov eax, dword [esi]
test eax, eax
je 0x1003ce13
lea esi, [esi]
add esi, 4
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], edi
call eax
mov eax, dword [esi]
sub esp, 0xc
test eax, eax
jne 0x1003cdf0
mov edx, dword [ebx]
mov eax, dword [edx + 0x28]
test eax, eax
je 0x1003ce85
mov edi, dword [esp + 0x38]
mov edx, dword [ebx + 0x14]
add eax, edi
test edx, edx
je 0x1003ce99
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], edi
call eax
sub esp, 0xc
test eax, eax
je 0x1003cf3d
mov dword [ebx + 0x10], 1
jmp 0x1003ca9a
and esi, 0x80
je 0x1003cd63
mov eax, dword [esp + 0x30]
mov esi, dword [eax + 0x24]
jmp 0x1003cd63
mov dword [esp], 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x1003ca90
mov dword [ebx + 0x38], 0
jmp 0x1003ca9a
mov eax, dword [ebp + 0x20]
jmp 0x1003cca0
mov dword [ebx + 0x38], eax
jmp 0x1003ca9a
and edx, 0xfff
add edx, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
add eax, 1
add dword [ebp + edx], edi
mov edi, dword [esi + 4]
lea ebx, [edi - 8]
mov edx, ebx
shr edx, 1
cmp edx, eax
ja 0x1003cbb0
jmp 0x1003cbd0
mov ebx, dword [esp + 0x24]
jmp 0x1003ca90
mov dword [esp], 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x1003ca90
mov eax, dword [esp + 0xb0]
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call dword [esp + 0xa0]
mov dword [esp], 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x1003ca9a
lea eax, [esp + 0x48]
mov dword [esp + 0x3c], eax
jmp 0x1003cdb5
mov dword [esp], 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x1003ca90
mov eax, dword [ebx + 0x34]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [ebx + 0x2c]
mov dword [esp], 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ecx
jmp 0x1003ca90