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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff84
push ebx
xor ecx, ecx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x487938
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 8], edx
mov dl, 1
mov eax, dword [0x47d67c]
call fcn.0048cea4
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
xor eax, eax
push ebp
push 0x487916
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4188cc]
call fcn.00403c34
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.0041cf54
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
push 0x40
push 0x1000
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x50]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x54]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
call fcn.00407bfc
mov eax, dword [ebp - 0x14]
add eax, 4
add eax, 0x14
mov edx, dword [ebp - 0x18]
movzx edx, word [edx + 0x14]
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 6]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
dec eax
test eax, eax
jb 0x4876e6
inc eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
shl eax, 3
lea eax, [eax + eax*4]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x34]
call fcn.00407c04
push ebp
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
call fcn.00487574
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0x14]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x34]
call fcn.00407bfc
inc dword [ebp - 0x24]
dec dword [ebp - 0x74]
jne 0x487686
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
sub edx, dword [eax + 0x34]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xa4]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xa0]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
jmp 0x48777c
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 4]
sub eax, 8
shr eax, 1
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x44]
add eax, 8
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x48]
dec eax
test eax, eax
jb 0x487776
inc eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x4c]
test byte [eax + 1], 0xf0
je 0x487765
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
add eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x4c]
mov dx, word [edx]
and dx, 0xfff
movzx edx, dx
add eax, edx
mov edx, dword [ebp - 0x38]
add dword [eax], edx
mov eax, dword [ebp - 0x4c]
add eax, 2
mov dword [ebp - 0x4c], eax
inc dword [ebp - 0x50]
dec dword [ebp - 0x74]
jne 0x48773f
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x44]
ja 0x487715
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x80]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov dl, 1
mov eax, dword [0x4180ec]
call fcn.00403c34
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
jmp 0x4878ac
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
je 0x4877df
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x60]
call fcn.0041a68c
mov eax, dword [ebp - 0x58]
cmp dword [eax + 4], 0
jne 0x4877f9
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + 0x10]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x64], eax
jmp 0x487897
mov eax, dword [ebp - 0x58]
mov eax, dword [eax]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x64], eax
jmp 0x487897
mov eax, dword [ebp - 0x64]
test byte [eax + 3], 0x80
je 0x487821
mov eax, dword [ebp - 0x64]
mov eax, dword [eax]
and eax, 0xffff
mov dword [ebp - 0x68], eax
jmp 0x48785c
mov eax, dword [ebp - 0x64]
mov eax, dword [eax]
add eax, dword [ebp - 0x1c]
add eax, 2
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x64]
push eax
lea eax, [ebp - 0x78]
mov edx, dword [ebp - 0x68]
call fcn.00404c44
mov eax, dword [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
mov edx, dword [ebp - 0x5c]
call fcn.00404c44
mov edx, dword [ebp - 0x7c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
pop ecx
call fcn.0048cf54
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x48787c
mov eax, dword [ebp - 0x64]
mov edx, dword [ebp - 0x6c]
mov dword [eax], edx
jmp 0x48788e
mov eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 0x64]
mov dword [edx], eax
mov eax, dword [ebp - 0x64]
add eax, 4
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
cmp dword [eax], 0
jne 0x487809
mov eax, dword [ebp - 0x58]
add eax, 0x14
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
cmp dword [eax + 0xc], 0
jne 0x4877b3
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x50]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x28]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
je 0x4878f7
push 0
push 1
mov eax, dword [ebp - 0x1c]
push eax
call dword [ebp - 0x70]
push 0
push 2
mov eax, dword [ebp - 0x1c]
push eax
call dword [ebp - 0x70]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 4], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48791d
mov eax, dword [ebp - 0xc]
call fcn.00403c64
ret