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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ac
mov eax, dword [0x1001f004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x18c], eax
xor edi, edi
mov eax, dword [ebp + 0xc]
mov ebx, edx
push 0x40
mov dword [ebp - 0x188], eax
mov esi, ecx
lea eax, [ebp - 0x170]
mov dword [ebp - 0x174], ebx
push edi
push eax
mov dword [ebp - 0x180], esi
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0x40
lea eax, [ebp - 0x170]
push eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push esi
call ebx
test eax, eax
je 0x10001395
cmp dword [ebp - 8], 0x40
jb 0x10001395
push 0xf8
lea eax, [ebp - 0x130]
push edi
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0xf8
lea eax, [ebp - 0x130]
push eax
mov eax, dword [ebp - 0x134]
add eax, dword [ebp - 0x174]
push eax
push esi
call ebx
test eax, eax
je 0x10001395
cmp dword [ebp - 8], 0xf8
jb 0x10001395
mov eax, 0x10b
cmp word [ebp - 0x118], ax
je 0x100013a8
push 9
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100073c8
mov esp, ebp
pop ebp
ret
movzx ecx, word [ebp - 0x11c]
xor esi, esi
mov eax, dword [ebp - 0x134]
add ecx, 0x18
add eax, ecx
mov dword [ebp - 0x60], edi
xor ecx, ecx
mov dword [ebp - 0x5c], edi
cmp cx, word [ebp - 0x12a]
jae 0x10001442
mov edi, dword [ebp - 0x174]
add edi, eax
lea eax, [ebp - 8]
xorps xmm0, xmm0
push eax
push 0x28
lea eax, [ebp - 0x34]
movq qword [ebp - 0x14], xmm0
push eax
push edi
push dword [ebp - 0x180]
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
call ebx
test eax, eax
je 0x10001681
cmp dword [ebp - 8], 0x28
jb 0x10001681
cmp dword [ebp - 0x58], 0
jne 0x10001433
mov edx, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0x28]
cmp edx, ecx
jb 0x10001433
mov ebx, dword [ebp - 0x24]
lea eax, [ebx + ecx]
cmp edx, eax
jae 0x1000142d
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
movzx eax, word [ebp - 0x12a]
inc esi
add edi, 0x28
cmp esi, eax
jb 0x100013d5
mov ebx, dword [ebp - 0x188]
mov eax, 0xcccccccd
mul dword [ebp - 0xac]
lea ecx, [ebx + ebx*4]
xor esi, esi
shr edx, 4
xor edi, edi
shl ecx, 2
mov dword [ebp - 0x194], ecx
add ecx, 7
mov dword [ebp - 0x178], esi
lea eax, [edx + edx*4]
xor edx, edx
shl eax, 2
mov dword [ebp - 0x198], eax
add eax, ecx
and eax, 0xfffffff8
mov ecx, ebx
shl ecx, 4
add ecx, eax
mov dword [ebp - 0x190], eax
mov eax, dword [ebp - 0x188]
mov ebx, ecx
mov dword [ebp - 0x17c], ecx
mov dword [ebp - 0x184], ebx
cmp eax, 2
jb 0x1000150c
lea ebx, [eax - 1]
nop dword [eax + eax]
mov ecx, dword [ebp - 0x18c]
mov ecx, dword [ecx + edx*4]
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100014c0
sub ecx, esi
lea eax, [ecx + 4]
and eax, 0xfffffffc
add dword [ebp - 0x178], eax
mov eax, dword [ebp - 0x18c]
mov ecx, dword [eax + edx*4 + 4]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100014e2
sub ecx, esi
add edx, 2
lea eax, [ecx + 4]
and eax, 0xfffffffc
add edi, eax
cmp edx, ebx
jb 0x100014b0
mov esi, dword [ebp - 0x178]
mov ebx, dword [ebp - 0x184]
mov eax, dword [ebp - 0x188]
cmp edx, eax
jae 0x10001535
mov eax, dword [ebp - 0x18c]
mov ecx, dword [eax + edx*4]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001520
sub ecx, edx
lea ebx, [ecx + 4]
and ebx, 0xfffffffc
add ebx, dword [ebp - 0x17c]
lea eax, [esi + edi]
add ebx, eax
push ebx
mov dword [ebp - 0x184], ebx
call fcn.100073db
push ebx
push 0
push eax
mov dword [ebp - 0x178], eax
call sub.ntdll.dll_memset
mov edx, dword [ebp - 0x174]
lea eax, [ebp - 0x28]
mov ebx, dword [ebp - 0x10c]
add esp, 0x10
add ebx, edx
mov dword [ebp - 0x10], 0
add ebx, dword [ebp - 0x110]
xorps xmm0, xmm0
add ebx, dword [ebp - 0x114]
add ebx, dword [ebp - 0x104]
push 0x1c
cmp edx, ebx
movq qword [ebp - 0x18], xmm0
push eax
cmovae ebx, edx
push ebx
push dword [ebp - 0x180]
movups xmmword [ebp - 0x28], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x10001658
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edx, dword [ebp - 0x1c]
mov eax, edx
and eax, 0xfff
cmp eax, 0xfff
je 0x1000165e
cmp dword [ebp - 0x18], 0x10000
mov ecx, dword [ebp - 0x28]
jne 0x10001627
cmp ecx, ebx
lea eax, [edx + ecx]
mov esi, ebx
cmova esi, ecx
add esi, 0xffff
and esi, 0xffff0000
cmp esi, eax
jae 0x10001627
nop dword [eax]
push 4
push 0x3000
push dword [ebp - 0x184]
push esi
push dword [ebp - 0x180]
call edi
mov dword [ebp - 0x1ac], eax
test eax, eax
jne 0x10001696
mov edx, dword [ebp - 0x1c]
add esi, 0x10000
mov ecx, dword [ebp - 0x28]
lea eax, [edx + ecx]
cmp esi, eax
jb 0x100015f0
lea eax, [edx + ecx]
mov dword [ebp - 0x10], 0
push 0x1c
lea ecx, [ebp - 0x28]
xorps xmm0, xmm0
push ecx
push eax
push dword [ebp - 0x180]
movups xmmword [ebp - 0x28], xmm0
movq qword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
jne 0x100015b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
push dword [ebp - 0x178]
call fcn.100073d6
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100073c8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor esi, esi
pop edi
mov eax, esi
xor ecx, ebp
pop esi
pop ebx
call fcn.100073c8
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x174]
mov edi, eax
mov ecx, dword [ebp - 0xb0]
sub edi, edx
mov ebx, dword [ebp - 0x178]
mov dword [ebp - 0x1a0], edi
mov dword [ebp - 0xc], 0
test ecx, ecx
je 0x100016f2
mov esi, dword [ebp - 0x198]
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x194]
push esi
add eax, ebx
push eax
lea eax, [ecx + edx]
push eax
push dword [ebp - 0x180]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1000165e
cmp dword [ebp - 8], esi
jb 0x1000165e
xor ecx, ecx
mov dword [ebp - 0x19c], ecx
cmp dword [ebp - 0x188], ecx
jbe 0x1000187c
lea eax, [ebx + 4]
mov dword [ebp - 0x198], eax
mov eax, dword [ebp - 0x190]
lea edx, [edi + eax]
add eax, 4
add eax, ebx
mov dword [ebp - 0x190], edx
mov dword [ebp - 0x194], eax
nop dword [eax]
mov eax, dword [ebp - 0x18c]
mov edx, dword [ebp - 0x184]
lea eax, [eax + ecx*4]
mov ecx, dword [ebp - 0x17c]
mov dword [ebp - 0x1a8], eax
mov eax, dword [eax]
sub edx, ecx
je 0x1000165e
cmp edx, 0x7fffffff
ja 0x1000165e
lea esi, [ebx + ecx]
mov edi, edx
mov ebx, 0x7ffffffe
mov ecx, esi
sub ebx, edx
sub eax, esi
mov dword [ebp - 0x1a4], eax
lea eax, [edi + ebx]
test eax, eax
je 0x100017a0
mov eax, dword [ebp - 0x1a4]
mov al, byte [ecx + eax]
test al, al
je 0x1000179c
mov byte [ecx], al
inc ecx
sub edi, 1
jne 0x10001777
mov byte [ecx - 1], 0
jmp 0x1000165e
test edi, edi
je 0x10001793
mov byte [ecx], 0
test esi, esi
je 0x100017c9
cmp edx, 2
jb 0x100017c9
nop dword [eax]
cmp byte [esi], 0x3f
jne 0x100017bb
cmp byte [esi + 1], 0x3f
je 0x100017c4
dec edx
inc esi
cmp edx, 2
jae 0x100017b0
jmp 0x100017c9
mov word [esi], 0x3233
mov ebx, dword [ebp - 0x198]
mov esi, dword [ebp - 0x194]
mov edi, dword [ebp - 0x190]
mov ecx, dword [ebp - 0x1a8]
mov dword [ebx - 4], edi
mov dword [esi - 4], 0x80000001
mov dword [esi], 0
lea eax, [edi + 8]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x1a0]
add eax, dword [ebp - 0x17c]
mov dword [esi + 4], 0x80000001
mov dword [esi + 8], 0
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], eax
mov ecx, dword [ecx]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001826
sub ecx, edx
add edi, 0x10
add esi, 0x10
mov dword [ebp - 0x190], edi
add ebx, 0x14
mov dword [ebp - 0x194], esi
mov dword [ebp - 0x198], ebx
lea eax, [ecx + 4]
mov ecx, dword [ebp - 0x19c]
and eax, 0xfffffffc
inc ecx
add dword [ebp - 0x17c], eax
mov dword [ebp - 0x19c], ecx
cmp ecx, dword [ebp - 0x188]
jae 0x10001876
mov ebx, dword [ebp - 0x178]
jmp 0x10001730
mov edi, dword [ebp - 0x1a0]
mov ebx, dword [ebp - 0x180]
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push dword [ebp - 0x17c]
push dword [ebp - 0x178]
push dword [ebp - 0x1ac]
push ebx
call esi
test eax, eax
je 0x1000165e
cmp dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x184]
jne 0x100018b9
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], eax
push 0x1c
mov dword [ebp - 0xac], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 0xb0], edi
mov edi, dword [ebp - 0xdc]
push eax
push dword [ebp - 0x174]
movups xmmword [ebp - 0x28], xmm0
push ebx
movq qword [ebp - 0x18], xmm0
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x1000165e
test byte [ebp - 0x14], 0xf0
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x40
mov eax, 4
cmovne eax, ecx
push eax
push edi
push dword [ebp - 0x174]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push ebx
call edi
test eax, eax
je 0x1000165e
push 0
push 0x40
lea eax, [ebp - 0x170]
mov dword [ebp - 0xd8], 0
push eax
push dword [ebp - 0x174]
push ebx
call esi
test eax, eax
je 0x1000165e
push 0
push 0xf8
lea eax, [ebp - 0x130]
push eax
mov eax, dword [ebp - 0x134]
add eax, dword [ebp - 0x174]
push eax
push ebx
call esi
test eax, eax
je 0x1000165e
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0xdc]
push dword [ebp - 0x174]
push ebx
call edi
test eax, eax
je 0x1000165e
mov esi, 1
jmp 0x10001660