Function at 0x1003c2d
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa38
mov eax, dword [0x1011660]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
pop ecx
mov dword [ebp - 0x938], eax
xor eax, eax
cmp dword [ebp + 0x18], eax
push 0x3e
lea edi, [ebp - 0x910]
rep stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0xa38]
rep stosd dword es:[edi], eax
push 0xa
pop ecx
lea edi, [ebp - 0x82c]
mov dword [ebp - 0x920], ebx
mov dword [ebp - 0x91c], esi
rep stosd dword es:[edi], eax
jne 0x1003c8e
mov dword [ebp - 0x92c], ebx
jmp 0x1003cc7
lea eax, [ebp - 0x918]
push eax
push 0x40
lea eax, [ebp - 0x910]
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x10040e4
cmp dword [ebp - 0x918], 0x40
jne 0x10040e4
lea eax, [ebp - 0x910]
mov dword [ebp - 0x92c], eax
mov eax, dword [ebp - 0x92c]
cmp word [eax], 0x5a4d
jne 0x10040f3
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x10040f3
lea ecx, [eax + 0xf8]
cmp ecx, dword [ebp + 0x14]
jae 0x10040f3
cmp dword [ebp + 0x18], 0
jne 0x1003d03
lea esi, [eax + ebx]
mov dword [ebp - 0x918], esi
jmp 0x1003d43
lea ecx, [ebp - 0x918]
push ecx
mov edi, 0xf8
push edi
lea ecx, [ebp - 0xa38]
push ecx
add eax, esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x10040d3
cmp dword [ebp - 0x918], edi
jne 0x10040d3
lea eax, [ebp - 0xa38]
mov dword [ebp - 0x918], eax
mov esi, eax
cmp dword [esi], 0x4550
jne 0x10040f3
mov ax, word [esi + 6]
test ax, ax
je 0x10040f3
cmp ax, 0x400
jae 0x10040f3
and dword [ebp - 0x924], 0
movzx ecx, ax
test ecx, ecx
jle 0x10040f3
and dword [ebp - 0x928], 0
jmp 0x1003d87
mov ebx, dword [ebp - 0x920]
cmp dword [ebp + 0x18], 0
jne 0x1003dc1
movzx eax, word [esi + 0x14]
add eax, dword [ebp - 0x928]
mov edx, dword [ebp + 0x14]
lea eax, [eax + esi + 0x18]
add edx, ebx
cmp eax, edx
jae 0x10040f3
lea ecx, [ecx + ecx*4]
lea ecx, [eax + ecx*8]
cmp ecx, edx
jae 0x10040f3
mov ebx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
jmp 0x1003e4c
mov ecx, dword [ebp - 0x92c]
mov edi, dword [ebp - 0x91c]
lea eax, [ebp - 0x93c]
push eax
push 0x28
lea eax, [ebp - 0x82c]
push eax
movzx eax, word [esi + 0x14]
add eax, dword [ebp - 0x928]
add eax, dword [ecx + 0x3c]
lea eax, [eax + edi + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1003e03
cmp dword [ebp - 0x93c], 0x28
je 0x1003e14
push edi
push dword [ebp - 0x924]
push 0x1001838
jmp 0x10040eb
mov eax, dword [ebp - 0x824]
test eax, eax
mov ebx, dword [ebp - 0x820]
mov ecx, dword [ebp - 0x81c]
mov dword [ebp - 0x914], eax
jne 0x1003e36
mov dword [ebp - 0x914], ecx
cmp dword [ebp - 0x914], ecx
jae 0x1003e44
mov dword [ebp - 0x914], ecx
cmp dword [ebp - 0x914], eax
jae 0x1003e52
mov dword [ebp - 0x914], eax
mov eax, dword [ebp - 0x914]
mov edi, 0x400
cmp eax, edi
jb 0x100406f
cmp ebx, dword [ebp + 0x14]
jae 0x100406f
cmp eax, dword [ebp + 0x14]
jae 0x100406f
add eax, ebx
cmp eax, dword [ebp + 0x14]
jae 0x100406f
lea eax, [ebp - 0x8d0]
push eax
call fcn.0100e0b0
cmp dword [ebp + 0x18], 0
jne 0x1003e9e
mov eax, dword [ebp - 0x920]
add eax, ebx
jmp 0x1003ef0
xor eax, eax
mov ecx, 0x100
lea edi, [ebp - 0x404]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x934]
push eax
mov edi, 0x400
push edi
lea eax, [ebp - 0x404]
push eax
mov eax, dword [ebp - 0x91c]
add eax, ebx
push eax
push dword [ebp - 0x920]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x100405b
cmp dword [ebp - 0x934], edi
jne 0x100405b
lea eax, [ebp - 0x404]
push edi
push eax
lea eax, [ebp - 0x8d0]
push eax
call fcn.0100e1a0
lea eax, [ebp - 0x85c]
push eax
lea eax, [ebp - 0x8d0]
push eax
call fcn.0100e2d0
push 0x1003bc7
push 0x30
push 0xa
lea eax, [ebp - 0x85c]
push 0x1011440
push eax
call fcn.01005b92
mov edi, eax
add esp, 0x14
test edi, edi
je 0x100404f
lea eax, [ebp - 0x8d0]
push eax
call fcn.0100e0b0
mov edi, dword [edi + 0x14]
cmp dword [ebp - 0x914], edi
jbe 0x1003f55
mov dword [ebp - 0x914], edi
xor eax, eax
cmp dword [ebp + 0x18], eax
jne 0x1003f7c
push dword [ebp - 0x914]
mov eax, dword [ebp - 0x920]
add eax, ebx
push eax
lea eax, [ebp - 0x8d0]
push eax
call fcn.0100e1a0
jmp 0x1004013
cmp dword [ebp - 0x914], eax
jbe 0x1004013
mov ecx, dword [ebp - 0x91c]
lea edi, [ecx + ebx]
mov esi, dword [ebp - 0x914]
lea ecx, [eax + 0x400]
cmp ecx, esi
mov dword [ebp - 0x930], ecx
jbe 0x1003fab
sub esi, eax
jmp 0x1003fb0
mov esi, 0x400
lea ecx, [ebp - 0x940]
push ecx
push esi
lea ecx, [ebp - 0x804]
push ecx
add eax, edi
push eax
push dword [ebp - 0x920]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1003ffe
cmp dword [ebp - 0x940], esi
jne 0x1003ffe
push esi
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x8d0]
push eax
call fcn.0100e1a0
mov eax, dword [ebp - 0x930]
cmp eax, dword [ebp - 0x914]
jb 0x1003f91
jmp 0x1004013
push esi
push ebx
push dword [ebp - 0x91c]
push 0x10017a8
call fcn.010036a7
add esp, 0x10
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x8d0]
push eax
call fcn.0100e2d0
push 0x1003beb
push 0x30
push 0xa
lea eax, [ebp - 0x85c]
push 0x1011440
push eax
call fcn.01005b92
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x100408e
mov esi, dword [ebp - 0x918]
cmp dword [ebp + 0x18], 0
je 0x10040f3
jmp 0x100406f
push ebx
push dword [ebp - 0x91c]
push 0x1001720
call fcn.010036a7
add esp, 0xc
movzx ecx, word [esi + 6]
inc dword [ebp - 0x924]
add dword [ebp - 0x928], 0x28
cmp dword [ebp - 0x924], ecx
jl 0x1003d81
jmp 0x10040f3
movsx eax, byte [esi + 0x2c]
push 3
pop ecx
cdq
idiv ecx
push dword [edx*4 + 0x1011430]
push dword [ebp - 0x938]
push 0x10016ec
call fcn.010036a7
movsx eax, byte [esi + 0x2c]
add esp, 0xc
mov dword [0x10121f8], eax
cdq
push 3
pop ecx
idiv ecx
mov eax, 0xfffffc17
mov dword [edx*4 + 0x10121e0], 1
jmp 0x10040f5
mov eax, dword [ebp - 0x92c]
push esi
push dword [eax + 0x3c]
push 0x1001658
jmp 0x10040eb
push esi
push ebx
push 0x10015d0
call fcn.010036a7
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100524b
leave
ret 0x14