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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x10080040]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, ecx
mov ecx, 0x5a4d
push ebx
push esi
mov ebx, edx
mov dword [esp + 0x14], eax
mov esi, dword [eax + 0x3c]
add esi, eax
mov dword [esp + 0x18], ebx
push edi
cmp word [eax], cx
je 0x100087b9
mov esi, 0x11
jmp 0x100087d1
mov eax, dword [esi]
mov ecx, 0x20b
cmp eax, 0x4550
je 0x100087ce
mov esi, 0x11
jmp 0x100087d1
mov esi, dword [esi + 0x50]
push 0x40
push 0x3000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
jne 0x100087fc
lea eax, [edi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1000a681
mov esp, ebp
pop ebp
ret
push esi
push 0
push edi
call fcn.1000bd30
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov edx, ebx
mov dword [ebx], edi
call fcn.10008620
test eax, eax
jne 0x10008830
mov eax, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1000a681
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx]
mov eax, dword [eax + 0x28]
lea edx, [ecx + eax]
mov dword [esp + 0x10], edx
test eax, eax
je 0x100088e2
mov eax, ecx
cdq
sub eax, dword [ebx + 8]
mov dword [esp + 0x28], eax
sbb edx, dword [ebx + 0xc]
cmp byte [ebx + 6], 0
mov dword [esp + 0x14], edx
jne 0x1000886a
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x10]
cmp dword [edx], 0
je 0x100088e2
mov eax, ecx
mov esi, dword [edx + 4]
lea ecx, [edx + 4]
mov dword [esp + 0x18], ecx
mov ecx, eax
test esi, esi
je 0x100088e2
mov edi, dword [edx]
add esi, 0xfffffff8
add edi, eax
shr esi, 1
je 0x100088d1
mov ebx, dword [esp + 0x28]
add edx, 8
movzx eax, word [edx]
mov ecx, eax
shr eax, 0xc
and ecx, 0xfff
cmp eax, 3
je 0x100088bc
cmp eax, 0xa
jne 0x100088bf
add dword [ecx + edi], ebx
mov eax, dword [esp + 0x14]
adc dword [ecx + edi + 4], eax
jmp 0x100088bf
add dword [ecx + edi], ebx
add edx, 2
sub esi, 1
jne 0x10008897
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov ecx, dword [ebx]
mov eax, dword [esp + 0x18]
add edx, dword [eax]
mov eax, ecx
mov dword [esp + 0x10], edx
cmp dword [edx], 0
jne 0x10008875
mov eax, dword [ebx + 0x20]
mov edx, dword [eax + 8]
mov al, byte [ebx + 6]
xor ebx, ebx
test al, al
setne bl
lea ebx, [ebx*4 + 4]
mov dword [esp + 0x24], ebx
test al, al
je 0x10008913
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0x80000000
jmp 0x10008923
mov dword [esp + 0x20], 0x80000000
mov dword [esp + 0x18], 0
cmp dword [ecx + edx + 0xc], 0
lea edi, [ecx + edx]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x28], edi
je 0x10008a51
nop dword [eax]
mov esi, dword [edi + 0xc]
add esi, dword [ebx]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x10008967
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esp + 0x10], eax
test eax, eax
je 0x10008a3d
mov eax, dword [edi]
test eax, eax
mov ecx, dword [edi + 0x10]
mov edx, dword [ebx]
cmove eax, ecx
cmp byte [ebx + 6], 0
lea esi, [ecx + edx]
mov ecx, dword [eax + edx]
lea edi, [eax + edx]
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], edi
je 0x1000898f
mov edx, dword [edi + 4]
jmp 0x10008991
xor edx, edx
mov eax, ecx
or eax, edx
je 0x10008a39
nop dword [eax + eax]
and edx, dword [esp + 0x18]
mov eax, ecx
and eax, dword [esp + 0x20]
or eax, edx
je 0x100089c0
movzx eax, cx
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
jmp 0x100089f9
mov esi, dword [ebx]
add esi, 2
add esi, ecx
push esi
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
push 0x1007d838
mov edi, eax
call fcn.10012699
mov esi, dword [esp + 0x1c]
add esp, 8
test eax, eax
jne 0x100089f9
mov dword [ebx + 0x24], esi
mov edi, 0x10008750
mov dword [ebx + 0x28], 0x10008750
cmp byte [ebx + 6], 0
mov dword [esi], edi
je 0x10008a08
mov dword [esi + 4], 0
test edi, edi
je 0x10008a63
mov edi, dword [esp + 0x1c]
add edi, dword [esp + 0x24]
add esi, dword [esp + 0x24]
cmp byte [ebx + 6], 0
mov dword [esp + 0x14], esi
mov ecx, dword [edi]
mov dword [esp + 0x1c], edi
je 0x10008a2d
mov edx, dword [edi + 4]
jmp 0x10008a2f
xor edx, edx
mov eax, ecx
or eax, edx
jne 0x100089a0
mov edi, dword [esp + 0x28]
add edi, 0x14
mov dword [esp + 0x28], edi
cmp dword [edi + 0xc], 0
jne 0x10008940
mov al, byte [ebx + 6]
test al, al
mov eax, dword [ebx]
je 0x10008a7a
mov ecx, dword [ebx + 0x18]
cdq
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x34], edx
jmp 0x10008a80
mov eax, 0x13
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1000a681
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x14]
mov dword [ecx + 0x34], eax
cmp byte [ebx + 6], 0
mov ecx, dword [ebx]
je 0x10008a8d
mov eax, dword [ebx + 0x18]
jmp 0x10008a90
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x28]
push 0
push 1
push ecx
add eax, ecx
call eax
test al, al
je 0x10008adf
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x10008adf
cmp dword [ebx + 0x28], 0
je 0x10008adf
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [esp + 0x28]
push ecx
push 0x40
push 8
push eax
mov dword [esp + 0x38], 0
call esi
mov ecx, dword [ebx + 0x24]
mov eax, dword [ebx + 0x28]
mov dword [ecx], eax
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x2c]
push 8
push dword [ebx + 0x24]
call esi
mov ecx, dword [esp + 0x2c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000a681
mov esp, ebp
pop ebp
ret