Function at 0x1008b030
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x184
mov eax, dword [0x101b9578]
push ebx
mov ebx, dword [esp + 0x18c]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push esi
mov esi, dword [esp + 0x198]
push edi
mov dword [esp + 0x190], eax
xor eax, eax
push eax
mov ecx, 0x10
lea edi, [esp + 0x154]
push 0x40
rep stosd dword es:[edi], eax
lea eax, [esp + 0x158]
push eax
push esi
push ebx
mov dword [esp + 0x24], 0
call ebp
test eax, eax
je 0x1008b4ff
mov edx, dword [esp + 0x18c]
xor eax, eax
mov ecx, 0x3e
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
xor edi, edi
push edi
push 0xf8
lea ecx, [esp + 0x38]
push ecx
add edx, esi
push edx
push ebx
call ebp
test eax, eax
je 0x1008b4ff
cmp word [esp + 0x48], 0x10b
je 0x1008b0ce
push 9
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1008b4ff
cmp word [esp + 0x36], 0
movzx eax, word [esp + 0x44]
mov ecx, dword [esp + 0x18c]
mov dword [esp + 0x100], edi
mov dword [esp + 0x104], edi
lea eax, [eax + ecx + 0x18]
mov dword [esp + 0x18], 0
jbe 0x1008b1d0
add esi, eax
jmp 0x1008b110
mov ebp, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea ebx, [ebx]
xor edx, edx
mov dword [esp + 0x128], edx
mov dword [esp + 0x12c], edx
mov dword [esp + 0x130], edx
mov dword [esp + 0x134], edx
mov dword [esp + 0x138], edx
mov dword [esp + 0x13c], edx
mov dword [esp + 0x140], edx
mov dword [esp + 0x144], edx
mov dword [esp + 0x148], edx
push edx
push 0x28
lea eax, [esp + 0x130]
push eax
push esi
push ebx
mov dword [esp + 0x160], edx
call ebp
test eax, eax
je 0x1008b4ff
mov eax, dword [esp + 0x108]
test eax, eax
mov eax, dword [esp + 0x138]
jne 0x1008b1a8
mov edx, dword [esp + 0xb0]
mov ecx, dword [esp + 0x134]
cmp edx, ecx
jb 0x1008b1a8
lea ebp, [eax + ecx]
cmp edx, ebp
jae 0x1008b1a8
mov dword [esp + 0x108], ecx
mov dword [esp + 0x10c], eax
mov ecx, dword [esp + 0x13c]
add eax, ecx
cmp edi, eax
jae 0x1008b1b7
mov edi, eax
mov eax, dword [esp + 0x18]
movzx edx, word [esp + 0x36]
inc eax
add esi, 0x28
cmp eax, edx
mov dword [esp + 0x18], eax
jb 0x1008b104
mov esi, dword [esp + 0x1a4]
mov ecx, dword [esp + 0xb4]
lea eax, [esi + esi*4]
shl eax, 2
mov dword [esp + 0x1c], eax
lea eax, [ecx + eax + 0x1b]
and eax, 0xfffffff8
mov ebx, esi
shl ebx, 4
add ebx, eax
mov ebp, ebx
xor edi, edi
test esi, esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], ebp
jbe 0x1008b23a
jmp 0x1008b210
mov edx, dword [esp + 0x1a0]
mov eax, dword [edx + edi*4]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1008b220
sub eax, edx
add eax, 4
and eax, 0xfffffffc
add ebp, eax
inc edi
cmp edi, esi
jb 0x1008b210
mov dword [esp + 0x18], ebp
push ebp
call fcn.1015297a
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x14], edi
je 0x1008b4ff
xor eax, eax
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x19c]
add eax, edi
add eax, dword [esp + 0x4c]
add eax, dword [esp + 0x5c]
add eax, ecx
cmp ecx, eax
mov edx, ecx
jae 0x1008b286
mov edx, eax
mov edi, dword [esp + 0x198]
push ebp
call fcn.1008ac40
add esp, 4
test eax, eax
mov dword [esp + 0x2c], eax
je 0x1008b4f2
mov ebp, dword [esp + 0x19c]
mov ecx, eax
mov eax, dword [esp + 0xb0]
sub ecx, ebp
test eax, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 0
je 0x1008b317
mov edx, dword [esp + 0xb4]
lea ecx, [esp + 0x24]
push ecx
push 0x40
push edx
add eax, ebp
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1008b4f2
mov eax, dword [esp + 0xb4]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push 0
push eax
mov eax, dword [esp + 0xb8]
add ecx, edx
push ecx
add eax, ebp
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1008b4f2
mov ecx, dword [esp + 0x20]
xor ebp, ebp
test esi, esi
jbe 0x1008b3e6
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x28]
add esi, 4
add ecx, edi
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x14]
lea edi, [edi + ecx + 4]
lea ebx, [ebx]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1a0]
mov ecx, dword [edx + ebp*4]
sub eax, ebx
cmp eax, 0x7fffffff
ja 0x1008b4f2
push ecx
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [ebx + eax]
push ecx
call fcn.1008aa80
test eax, eax
jl 0x1008b4f2
mov ecx, dword [esp + 0x1c]
mov dword [esi - 4], ecx
mov dword [edi], 0
mov eax, SysReAllocString
mov dword [edi - 4], eax
lea edx, [ecx + 8]
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0x1a0]
mov dword [edi + 4], eax
xor eax, eax
mov dword [edi + 8], eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov eax, dword [esp + 0x20]
add eax, ebx
mov dword [esi + 8], eax
mov eax, dword [edx + ebp*4]
lea edx, [eax + 1]
mov dword [esp + 0x28], edx
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1008b3b4
sub eax, dword [esp + 0x28]
add eax, 4
and eax, 0xfffffffc
add ebx, eax
mov eax, dword [esp + 0x1a4]
inc ebp
add ecx, 0x10
add edi, 0x10
add esi, 0x14
cmp ebp, eax
mov dword [esp + 0x1c], ecx
jb 0x1008b340
mov esi, eax
mov eax, 0xcccccccd
mul dword [esp + 0xb4]
shr edx, 4
xor ecx, ecx
add edx, esi
je 0x1008b414
mov eax, dword [esp + 0x14]
nop
cmp dword [eax], 0
jne 0x1008b40c
mov esi, dword [eax + 0x10]
test esi, esi
je 0x1008b414
inc ecx
add eax, 0x14
cmp ecx, edx
jb 0x1008b400
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x198]
push 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push eax
push ecx
push esi
call ebx
test eax, eax
je 0x1008b4f2
mov eax, dword [esp + 0x108]
test eax, eax
jne 0x1008b45a
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x108], edx
mov dword [esp + 0x10c], eax
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x19c]
mov edx, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea eax, [esp + 0x24]
push eax
push 0x40
mov dword [esp + 0xb8], ecx
mov ecx, dword [esp + 0x8c]
push ecx
push edi
push esi
mov dword [esp + 0xc8], edx
call ebp
test eax, eax
je 0x1008b4f2
push 0
push 0x40
lea edx, [esp + 0x158]
push edx
push edi
push esi
mov dword [esp + 0x9c], 0
call ebx
test eax, eax
je 0x1008b4f2
mov ecx, dword [esp + 0x18c]
push 0
push 0xf8
lea eax, [esp + 0x38]
push eax
add ecx, edi
push ecx
push esi
call ebx
test eax, eax
je 0x1008b4f2
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x24]
push edx
push eax
push ecx
push edi
push esi
call ebp
test eax, eax
je 0x1008b4f2
mov dword [esp + 0x10], 1
mov edx, dword [esp + 0x14]
push edx
call fcn.10152975
add esp, 4
mov ecx, dword [esp + 0x190]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
call fcn.1010122d
add esp, 0x184
ret