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

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push 0x40
mov esi, dword [ebp + 0x3c]
push 0x1000
add esi, ebp
mov dword [esp + 0x18], esi
mov edi, dword [esi + 0x50]
push edi
push 0
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
jne 0x10008339
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
xor edx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esi + 0x104]
mov dx, word [esi + 6]
mov eax, ecx
mov esi, ebp
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test edx, edx
rep movsb byte es:[edi], byte [esi]
jle 0x100083a5
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], edx
lea eax, [ecx + 0x10c]
mov ecx, dword [eax - 4]
mov esi, dword [eax]
mov edi, dword [eax - 8]
mov edx, ecx
add esi, ebp
add edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add eax, 0x28
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
dec ecx
mov dword [esp + 0x1c], ecx
jne 0x1000837d
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x84]
test eax, eax
jbe 0x10008431
mov eax, dword [edx + 0x80]
add eax, ebx
add eax, 0xc
cmp dword [eax], 0
je 0x10008431
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x1c], eax
jmp 0x100083d3
mov eax, dword [esp + 0x1c]
mov esi, dword [eax + 4]
mov eax, dword [eax]
add eax, ebx
add esi, ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100084b6
mov eax, dword [esi]
test eax, eax
je 0x1000841d
test eax, 0x80000000
je 0x10008401
and eax, 0xffff
jmp 0x10008405
lea eax, [eax + ebx + 2]
push eax
push edi
call ebp
test eax, eax
je 0x100084d1
mov dword [esi], eax
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
jne 0x100083f3
mov eax, dword [esp + 0x1c]
add eax, 0x14
mov dword [esp + 0x1c], eax
cmp dword [eax], 0
jne 0x100083cf
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0xa4]
test eax, eax
jbe 0x100084a3
mov eax, dword [edx + 0xa0]
mov esi, dword [edx + 0x34]
mov ecx, ebx
add eax, ebx
sub ecx, esi
mov dword [esp + 0x14], ecx
mov ecx, dword [eax]
test ecx, ecx
je 0x100084a3
mov edx, dword [eax + 4]
lea edi, [ecx + ebx]
sub edx, 8
lea ebp, [eax + 8]
shr edx, 1
test edx, edx
jle 0x10008497
mov esi, ebp
mov dword [esp + 0x1c], edx
mov ax, word [esi]
mov ecx, eax
and eax, 0xfffff000
and ecx, 0xfff
cmp ax, 0x3000
jne 0x10008489
mov eax, dword [esp + 0x14]
add dword [ecx + edi], eax
mov eax, dword [esp + 0x1c]
add esi, 2
dec eax
mov dword [esp + 0x1c], eax
jne 0x1000846c
mov ecx, dword [ebp + edx*2]
lea eax, [ebp + edx*2]
test ecx, ecx
jne 0x10008454
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [ecx], ebx
mov eax, 1
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x14]
push 0x4000
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push ebx
call fcn.1000b6f0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret