Function at 0x1113c580
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
sub esp, 0x2e4
push ebx
mov ebx, dword [esp + 0x2ec]
push ebp
push esi
push edi
mov ecx, 0x54
xor eax, eax
lea edi, [esp + 0x1a4]
xor esi, esi
push ebx
rep stosd dword es:[edi], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1a8], 0x150
call fcn.1113c360
add esp, 4
mov ebp, eax
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x6c]
push eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x70]
push 0x40
push eax
push ebp
push ebx
mov dword [esp + 0x48], ebp
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1113cc09
cmp word [esp + 0x6c], 0x5a4d
mov ecx, 0x10
lea esi, [esp + 0x6c]
lea edi, [esp + 0x1b8]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x1a8], ebp
jne 0x1113cbfa
mov edx, dword [esp + 0xa8]
mov ecx, 0x3e
xor eax, eax
lea edi, [esp + 0xac]
rep stosd dword es:[edi], eax
push eax
lea ecx, [esp + 0xb0]
push 0xf8
add edx, ebp
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1113cbfa
mov eax, dword [esp + 0xa8]
mov ecx, 0x3e
lea esi, [esp + 0xac]
lea edi, [esp + 0x1f8]
rep movsd dword es:[edi], dword [esi]
lea ecx, [eax + ebp]
mov dword [esp + 0x1ac], ecx
mov ecx, dword [esp + 0xac]
cmp ecx, 0x4550
jne 0x1113cbfa
mov ecx, dword [esp + 0x12c]
xor edx, edx
cmp ecx, edx
je 0x1113cbfa
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0x17c], edx
and ecx, 0xffff
cmp word [esp + 0xb2], dx
mov dword [esp + 0x180], edx
mov dword [esp + 0x10], edx
lea eax, [ecx + eax + 0x18]
mov dword [esp + 0x20], edx
jbe 0x1113c754
lea esi, [eax + ebp]
jmp 0x1113c6c9
xor edx, edx
push edx
lea edx, [esp + 0x48]
push 0x28
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x4c]
push edx
push esi
rep stosd dword es:[edi], eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1113cbfa
mov eax, dword [esp + 0x184]
test eax, eax
mov eax, dword [esp + 0x54]
jne 0x1113c721
mov edx, dword [esp + 0x12c]
mov ecx, dword [esp + 0x50]
cmp edx, ecx
jb 0x1113c721
lea edi, [eax + ecx]
cmp edx, edi
jae 0x1113c721
mov dword [esp + 0x184], ecx
mov dword [esp + 0x188], eax
mov ecx, dword [esp + 0x58]
add eax, ecx
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jae 0x1113c733
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0xb2]
inc eax
and edx, 0xffff
add esi, 0x28
cmp eax, edx
mov dword [esp + 0x20], eax
jb 0x1113c6c7
lea eax, [esp + 0xac]
push eax
push ebp
push ebx
call fcn.1113cc40
mov edx, dword [esp + 0x13c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x30c]
add esp, 0xc
mov ebp, eax
lea ecx, [eax + eax*4]
shl ecx, 2
shl ebp, 4
lea esi, [edx + ecx + 7]
mov dword [esp + 0x2c], ecx
and esi, 0xfffffff8
add ebp, esi
mov edi, ebp
test eax, eax
mov dword [esp + 0x1c], edi
jbe 0x1113c7ce
mov edx, dword [esp + 0x2fc]
mov dword [esp + 0x10], eax
mov edi, dword [edx]
or ecx, 0xffffffff
xor eax, eax
add edx, 4
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
not ecx
add ecx, 3
and ecx, 0xfffffffc
add edi, ecx
dec eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
jne 0x1113c7a5
push edi
call fcn.1113f6a0
mov edx, eax
add esp, 4
test edx, edx
mov dword [esp + 0x24], edx
je 0x1113cbfa
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0xcc]
mov edx, dword [esp + 0xd0]
mov edi, dword [esp + 0x34]
add eax, edx
mov edx, dword [esp + 0xc8]
mov ecx, edi
add eax, edx
mov edx, dword [esp + 0xd8]
add eax, edx
add eax, edi
cmp edi, eax
jae 0x1113c829
mov ecx, eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
push ebx
call fcn.1113ce00
xor ecx, ecx
add esp, 0xc
cmp eax, ecx
mov dword [esp + 0x38], eax
je 0x1113cbed
mov eax, dword [esp + 0x12c]
mov edx, dword [esp + 0x130]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1b4], ecx
lea ecx, [esp + 0x18]
add eax, edi
push ecx
push 0x40
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1113cbed
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x130]
sub eax, edi
mov dword [esp + 0x1b4], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
push 0
push edx
mov edx, dword [esp + 0x134]
add eax, ecx
add edx, edi
push eax
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1113cbed
mov eax, dword [esp + 0x300]
mov dword [esp + 0x2c], 0
test eax, eax
jbe 0x1113c9e5
mov eax, dword [esp + 0x2fc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x24]
lea ebx, [ecx + esi]
lea edx, [eax + 4]
lea esi, [esi + eax + 4]
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x24]
sub eax, ebp
lea ecx, [ecx + ebp]
mov dword [esp + 0x28], ecx
mov ecx, 0
mov dword [esp + 0x40], ecx
je 0x1113c970
mov ecx, dword [esp + 0x20]
mov cl, byte [ecx]
test cl, cl
je 0x1113c947
mov edi, dword [esp + 0x28]
mov byte [edi], cl
mov ecx, edi
mov edi, dword [esp + 0x20]
inc ecx
inc edi
dec eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], edi
jne 0x1113c916
mov eax, ecx
dec eax
mov dword [esp + 0x28], eax
mov eax, 0x57
jmp 0x1113c95f
test eax, eax
jne 0x1113c95b
mov eax, dword [esp + 0x28]
dec eax
mov dword [esp + 0x28], eax
mov eax, 0x57
jmp 0x1113c95f
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
test eax, eax
mov byte [ecx], 0
jl 0x1113cbed
xor ecx, ecx
mov eax, 0x80000001
mov dword [edx - 4], ebx
lea edi, [ebx + 8]
mov dword [esi - 4], eax
mov dword [esi], ecx
mov dword [edx + 0xc], edi
mov dword [esi + 4], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 8], ecx
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x30]
add eax, ebp
add ebx, 0x10
mov dword [edx + 8], eax
mov edi, dword [ecx]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
not ecx
add ecx, 3
add esi, 0x10
and ecx, 0xfffffffc
add edx, 0x14
add ebp, ecx
mov ecx, dword [esp + 0x300]
inc eax
add edi, 4
cmp eax, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edi
jb 0x1113c8f0
mov ebx, dword [esp + 0x2f8]
mov edi, dword [esp + 0x34]
mov eax, 0xcccccccd
xor ecx, ecx
mul dword [esp + 0x130]
mov eax, dword [esp + 0x300]
shr edx, 4
add edx, eax
test edx, edx
jbe 0x1113ca1b
mov eax, dword [esp + 0x24]
cmp dword [eax], 0
jne 0x1113ca13
mov esi, dword [eax + 0x10]
test esi, esi
je 0x1113ca1b
inc ecx
add eax, 0x14
cmp ecx, edx
jb 0x1113ca07
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
push 0
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push ecx
push edx
push ebx
call ebp
test eax, eax
je 0x1113cbed
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x12c], eax
mov eax, dword [esp + 0x194]
test eax, eax
mov dword [esp + 0x130], ecx
je 0x1113caee
mov ecx, dword [esp + 0x198]
test ecx, ecx
je 0x1113caee
push 0
lea edx, [esp + 0x48]
lea esi, [eax + edi]
push 0x14
push edx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1113cbed
lea eax, [esi + 0x10]
lea ecx, [esp + 0x18]
mov dword [esp + 0x1b0], eax
mov eax, dword [esp + 0x54]
push ecx
push 4
mov dword [esp + 0x2f8], eax
push 0x14
and al, 0xfe
push esi
push ebx
mov dword [esp + 0x68], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1113cbed
push 0
lea edx, [esp + 0x48]
push 0x14
push edx
push esi
push ebx
call ebp
test eax, eax
je 0x1113cbed
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x18]
push eax
push ecx
push 0x14
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1113cbed
mov eax, dword [esp + 0x100]
lea edx, [esp + 0x18]
push edx
push 0x40
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1113cbed
push 0
lea ecx, [esp + 0x70]
push 0x40
push ecx
push edi
push ebx
mov word [esp + 0x9c], 0
call ebp
test eax, eax
je 0x1113cbed
mov eax, dword [esp + 0xa8]
push 0
lea edx, [esp + 0xb0]
push 0xf8
add eax, edi
push edx
push eax
push ebx
call ebp
test eax, eax
je 0x1113cbed
lea ecx, [esp + 0xac]
push ecx
push edi
push ebx
call fcn.1113cc40
mov esi, dword [esp + 0x48]
push esi
push eax
call fcn.1113cc20
mov edx, dword [esp + 0x9c]
push eax
push edx
call fcn.1113cc20
add esp, 0x1c
mov word [esp + 0x88], ax
lea eax, [esp + 0x6c]
push 0
push 0x40
push eax
push edi
push ebx
call ebp
test eax, eax
je 0x1113cbed
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x100]
lea ecx, [esp + 0x18]
push ecx
push edx
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1113cbed
lea ecx, [esp + 0xac]
push ecx
push edi
push ebx
call fcn.1113cc40
add esp, 0xc
cmp si, ax
jne 0x1113cbed
lea edx, [esp + 0x1a4]
push 0x150
push edx
push 0x11187560
push ebx
call fcn.1113cfd0
test eax, eax
je 0x1113cbed
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x24]
push eax
call fcn.1113f6ae
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2e4
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2e4
ret