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

Disassembly:
sub esp, 0x198
mov eax, dword [0x100df3e0]
xor eax, esp
mov dword [esp + 0x194], eax
mov eax, dword [esp + 0x19c]
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
push 0x40
lea ecx, [esp + 0x168]
mov esi, edx
push ebp
push ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x28], ebp
call fcn.10070d10
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
add esp, 0xc
push ebp
push 0x40
lea edx, [esp + 0x16c]
push edx
push esi
push edi
call ebx
test eax, eax
je 0x1006c602
push 0xf8
lea eax, [esp + 0x48]
push ebp
push eax
call fcn.10070d10
mov edx, dword [esp + 0x1ac]
add esp, 0xc
push ebp
push 0xf8
lea ecx, [esp + 0x4c]
push ecx
lea eax, [esi + edx]
push eax
push edi
call ebx
test eax, eax
je 0x1006c602
cmp word [esp + 0x5c], 0x10b
je 0x1006c61d
push 9
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebp
mov ecx, dword [esp + 0x1a4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1006e071
add esp, 0x198
ret
movzx edx, word [esp + 0x58]
mov eax, dword [esp + 0x1a0]
xor ecx, ecx
cmp word [esp + 0x4a], cx
mov dword [esp + 0x114], ecx
mov dword [esp + 0x118], ecx
mov dword [esp + 0x14], ecx
lea eax, [edx + eax + 0x18]
mov dword [esp + 0x10], ecx
jbe 0x1006c71f
add esi, eax
jmp 0x1006c65a
mov ebp, dword [esp + 0x1c]
xor ecx, ecx
push ecx
xor eax, eax
push 0x28
lea ecx, [esp + 0x144]
push ecx
push esi
push edi
mov dword [esp + 0x150], eax
mov dword [esp + 0x154], eax
mov dword [esp + 0x158], eax
mov dword [esp + 0x15c], eax
mov dword [esp + 0x160], eax
mov dword [esp + 0x164], eax
mov dword [esp + 0x168], eax
mov dword [esp + 0x16c], eax
mov dword [esp + 0x170], eax
mov dword [esp + 0x174], eax
call ebx
test eax, eax
je 0x1006c602
cmp dword [esp + 0x11c], 0
mov eax, dword [esp + 0x14c]
jne 0x1006c6f1
mov edx, dword [esp + 0xc4]
mov ecx, dword [esp + 0x148]
cmp edx, ecx
jb 0x1006c6f1
lea ebp, [eax + ecx]
cmp edx, ebp
jae 0x1006c6f1
mov dword [esp + 0x11c], ecx
mov dword [esp + 0x120], eax
mov edx, dword [esp + 0x150]
add eax, edx
cmp dword [esp + 0x14], eax
jae 0x1006c704
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
movzx ecx, word [esp + 0x4a]
add eax, 1
add esi, 0x28
cmp eax, ecx
mov dword [esp + 0x10], eax
jb 0x1006c654
mov ebp, dword [esp + 0x1b0]
mov edx, dword [esp + 0xc8]
lea ebx, [ebp + ebp*4]
add ebx, ebx
add ebx, ebx
lea eax, [edx + ebx + 0x1b]
and eax, 0xfffffff8
mov esi, ebp
shl esi, 4
add esi, eax
mov edi, esi
xor ecx, ecx
test ebp, ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
jbe 0x1006c792
jmp 0x1006c760
mov eax, dword [esp + 0x30]
mov eax, dword [eax + ecx*4]
lea ebx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1006c770
sub eax, ebx
add eax, 4
and eax, 0xfffffffc
add ecx, 1
add edi, eax
cmp ecx, ebp
jb 0x1006c760
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x14], edi
push edi
call fcn.1006dddd
add esp, 4
test eax, eax
mov dword [esp + 0x18], eax
je 0x1006ca32
push edi
push 0
push eax
call fcn.10070d10
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x74]
lea eax, [ecx + edx]
add eax, dword [esp + 0x70]
add esp, 0xc
add eax, dword [esp + 0x60]
add eax, dword [esp + 0x70]
cmp ecx, eax
jae 0x1006c7d0
mov ecx, eax
push edi
mov edi, dword [esp + 0x30]
call fcn.1006c100
add esp, 4
test eax, eax
mov dword [esp + 0x3c], eax
je 0x1006ca25
mov ecx, dword [esp + 0x34]
mov edi, eax
mov eax, dword [esp + 0xc4]
sub edi, ecx
test eax, eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], 0
je 0x1006c82f
mov edx, dword [esp + 0xc8]
push 0
push edx
mov edx, dword [esp + 0x20]
add ebx, edx
push ebx
add ecx, eax
mov eax, dword [esp + 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1006ca25
xor ebx, ebx
test ebp, ebp
jbe 0x1006c921
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
add ebp, 4
add edi, eax
mov dword [esp + 0x24], edi
lea edi, [eax + ecx + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
mov edx, dword [edx + ebx*4]
sub eax, esi
cmp eax, 0x7fffffff
mov dword [esp + 0x40], eax
ja 0x1006ca25
mov ecx, dword [esp + 0x18]
push edx
add ecx, esi
push eax
push ecx
mov dword [esp + 0x44], ecx
call fcn.1006bef0
test eax, eax
jl 0x1006ca25
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov esi, 0x100b98a4
call fcn.1006c210
test eax, eax
jl 0x1006ca25
mov esi, dword [esp + 0x24]
xor eax, eax
mov dword [ebp - 4], esi
mov dword [edi], eax
mov ecx, SysReAllocString
mov dword [edi - 4], ecx
lea edx, [esi + 8]
mov dword [ebp + 0xc], edx
mov edx, dword [esp + 0x30]
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [edi + 8], eax
mov dword [ebp], eax
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x20]
add eax, ecx
mov dword [ebp + 8], eax
mov eax, dword [edx + ebx*4]
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1006c8e0
sub eax, ecx
add eax, 4
and eax, 0xfffffffc
add dword [esp + 0x10], eax
add esi, 0x10
add ebx, 1
add edi, 0x10
add ebp, 0x14
cmp ebx, dword [esp + 0x1b0]
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x10]
jb 0x1006c852
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x1b0]
mov eax, 0xcccccccd
mul dword [esp + 0xc8]
shr edx, 4
xor ecx, ecx
add edx, ebp
je 0x1006c955
mov eax, dword [esp + 0x18]
lea ebx, [ebx]
cmp dword [eax], 0
jne 0x1006c94b
cmp dword [eax + 0x10], 0
je 0x1006c955
add ecx, 1
add eax, 0x14
cmp ecx, edx
jb 0x1006c940
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push esi
mov esi, dword [esp + 0x34]
push eax
push ecx
push esi
call ebx
test eax, eax
je 0x1006ca25
cmp dword [esp + 0x11c], 0
jne 0x1006c993
mov edx, dword [esp + 0x14]
mov dword [esp + 0x11c], edi
mov dword [esp + 0x120], edx
mov edx, dword [esp + 0x98]
mov eax, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea ecx, [esp + 0x28]
push ecx
push 0x40
mov dword [esp + 0xcc], edi
mov edi, dword [esp + 0x3c]
push edx
push edi
push esi
mov dword [esp + 0xdc], eax
call ebp
test eax, eax
je 0x1006ca25
push 0
push 0x40
lea eax, [esp + 0x16c]
push eax
push edi
push esi
mov dword [esp + 0xb0], 0
call ebx
test eax, eax
je 0x1006ca25
mov edx, dword [esp + 0x1a0]
push 0
push 0xf8
lea ecx, [esp + 0x4c]
push ecx
lea eax, [edi + edx]
push eax
push esi
call ebx
test eax, eax
je 0x1006ca25
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x98]
lea ecx, [esp + 0x28]
push ecx
push edx
push eax
push edi
push esi
call ebp
test eax, eax
je 0x1006ca25
mov dword [esp + 0x1c], 1
mov ecx, dword [esp + 0x18]
push ecx
call fcn.1006e080
add esp, 4
mov eax, dword [esp + 0x1c]
jmp 0x1006c604