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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [ebp + 8]
push ebx
push esi
xor ecx, ecx
push edi
mov edi, dword [eax]
xor esi, esi
cmp edi, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
sete cl
mov dword [esp + 0x18], ecx
cmp dword [0x100e1688], esi
jne 0x1006ad92
push 0x100daf3c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x800
push esi
push 0x100daf58
call fcn.1007dcf0
add esp, 0xc
mov dword [0x100e1688], 1
push 0x100daf3c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, edi
call fcn.1006a770
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], ebx
call fcn.1006a770
push 0x50
lea edx, [esp + 0x2c]
push esi
push edx
mov dword [ebp + 0xc], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call fcn.1007dcf0
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.1006ac90
mov edi, eax
add esp, 8
cmp edi, 5
jb 0x1006af98
cmp dword [ebp + 0x10], esi
je 0x1006adf5
push edi
push ebx
call fcn.1006ab20
add esp, 8
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
mov eax, ebx
call fcn.1006a7f0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1006af8d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edx, [esp + 0x14]
push edx
push 0x40
push edi
xor ecx, ecx
push ebx
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1006af75
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push 0x40
push 0x6c
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1006af47
xor ecx, ecx
lea eax, [esi + 0x2c]
test edi, edi
jbe 0x1006ae84
sub ebx, eax
mov dl, byte [ebx + eax]
mov byte [eax], dl
mov byte [esi + ecx + 0x4c], dl
inc ecx
inc eax
cmp ecx, edi
jb 0x1006ae71
mov ebx, dword [esp + 0x1c]
lea eax, [esi + edi + 0x2c]
lea ecx, [edi + ebx]
lea edx, [eax + 5]
mov dword [esp + 0x1c], ecx
cmp edx, ecx
jbe 0x1006ae9a
sub edx, ecx
jmp 0x1006aea5
mov edx, ecx
lea ecx, [eax + 5]
sub edx, ecx
mov ecx, dword [esp + 0x1c]
cmp edx, 0x7fff0000
ja 0x1006aeba
lea edx, [eax + 5]
sub ecx, edx
mov byte [eax], 0xe9
mov dword [eax + 1], ecx
jmp 0x1006aecb
mov byte [eax], 0xff
mov byte [eax + 1], 0x25
add eax, 2
lea edx, [eax + 4]
mov dword [eax], edx
mov dword [edx], ecx
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
jae 0x1006aed8
mov eax, ebx
sub eax, ecx
jmp 0x1006aedc
mov eax, ecx
sub eax, ebx
cmp eax, 0x7fff0000
jbe 0x1006af03
lea eax, [esi + 0xc]
call fcn.1006a7b0
mov edx, dword [esp + 0xc]
sub eax, esi
sub eax, 0xc
push eax
lea eax, [esi + 0xc]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea ecx, [esi + 0xc]
mov eax, ebx
call fcn.1006a7b0
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0xc]
mov dword [esi + 8], eax
push edi
lea eax, [esi + 0x2c]
push eax
push ecx
mov dword [esi + 4], edi
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp dword [esp + 0x18], 0
je 0x1006af47
lea eax, [esi + 0x2c]
test eax, eax
je 0x1006af47
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push ecx
push 0x6c
push esi
push edx
call eax
mov eax, dword [esp + 0xc]
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp dword [esp + 0x18], 0
je 0x1006af75
lea eax, [esi + 0x2c]
test eax, eax
je 0x1006af75
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push edi
push ebx
push ecx
call eax
cmp dword [esi], 0
je 0x1006af84
mov eax, dword [ebp + 8]
lea edx, [esi + 0x2c]
mov dword [eax], edx
jmp 0x1006af8d
mov ecx, esi
call fcn.1006a920
xor esi, esi
cmp dword [ebp + 0x10], 0
je 0x1006af98
call fcn.1006aa90
push 0x100daf3c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
pop edi
test esi, esi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret