Function at 0x403049
Capabilities:
Acquire debug privileges
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x29c
mov eax, dword [0x4211d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x230], ebx
call fcn.00402cbf
lea ecx, [ebp - 0x22c]
push ecx
push eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x22c], ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea eax, [ebp - 0x21c]
push eax
push 0x20
mov dword [ebp - 0x21c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4030ee
lea eax, [ebp - 0x244]
push eax
push str.SeDebugPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push ebx
push ebx
push 0x10
lea eax, [ebp - 0x248]
push eax
push ebx
push dword [ebp - 0x21c]
mov dword [ebp - 0x248], 1
mov dword [ebp - 0x23c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x22c]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp - 0x20c], eax
je 0x403324
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 4
mov edi, 0x1000
push edi
push 0x40
push ebx
push eax
call esi
push 4
push edi
push 0x200
push ebx
push dword [ebp - 0x20c]
mov dword [ebp - 0x214], eax
call esi
push 4
push edi
push 0x10
push ebx
push dword [ebp - 0x20c]
mov dword [ebp - 0x228], eax
call esi
cmp eax, ebx
mov dword [ebp - 0x218], eax
je 0x403324
cmp dword [ebp - 0x214], ebx
je 0x403324
mov eax, dword [ebp - 0x228]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push ebx
cdq
push 0x1004
push dword [ebp - 0x220]
mov dword [ebp - 0x298], 1
mov dword [ebp - 0x278], 0x200
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x27c], edx
call edi
cmp eax, ebx
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x210], ebx
jle 0x4032ca
mov esi, dword [ebp - 0x210]
push ebx
push 0x40
lea eax, [ebp - 0x298]
push eax
push dword [ebp - 0x214]
mov dword [ebp - 0x294], esi
push dword [ebp - 0x20c]
mov dword [ebp - 0x290], ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push dword [ebp - 0x214]
push esi
push 0x102d
push dword [ebp - 0x220]
call edi
push ebx
push 0x200
lea eax, [ebp - 0x208]
push eax
push dword [ebp - 0x228]
push dword [ebp - 0x20c]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp - 0x208]
push eax
lea esi, [ebp - 0x224]
call fcn.00403729
mov ecx, dword [ebp + 8]
mov eax, esi
push eax
call fcn.00403aac
test eax, eax
je 0x40326d
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
call fcn.004076ae
inc dword [ebp - 0x210]
mov eax, dword [ebp - 0x210]
cmp eax, dword [ebp - 0x234]
jl 0x4031c3
jmp 0x4032ca
push dword [ebp - 0x218]
push dword [ebp - 0x210]
push 0x100e
push dword [ebp - 0x220]
call edi
push ebx
push 0x10
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x218]
push dword [ebp - 0x20c]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov edi, dword [ebp - 0x238]
mov eax, dword [ebp - 0x224]
lea esi, [ebp - 0x258]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add eax, 0xfffffff0
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x230], 1
call fcn.004076ae
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov edi, 0x8000
push edi
push ebx
push dword [ebp - 0x214]
push dword [ebp - 0x20c]
call esi
push edi
push ebx
push dword [ebp - 0x228]
push dword [ebp - 0x20c]
call esi
push edi
push ebx
push dword [ebp - 0x218]
push dword [ebp - 0x20c]
call esi
push dword [ebp - 0x20c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004076ae
mov eax, dword [ebp - 0x230]
jmp 0x403331
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004076ae
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b301
leave
ret 8