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

Disassembly:
sub esp, 0x28
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
push ebx
push ebp
push esi
mov esi, dword [edx + 0x3c]
cmp esi, eax
push edi
mov dword [esp + 0x10], esi
jae 0x10003fd3
test esi, esi
je 0x10003fd3
cmp dword [esi + edx], 0x4550
jne 0x10003fd3
cmp word [esi + edx + 4], 0x14c
jne 0x10003fd3
cmp word [esi + edx + 0x18], 0x10b
jne 0x10003fd3
xor ebp, ebp
mov ecx, 6
mov bp, word [esi + edx + 6]
xor eax, eax
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], 0
rep stosd dword es:[edi], eax
mov edi, dword [esi + edx + 0x34]
mov ebx, dword [esi + edx + 0x50]
lea eax, [esp + 0x1c]
push 0x1c
push eax
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x10003ea6
cmp dword [esp + 0x30], 1
jne 0x10003ea6
cmp dword [esp + 0x2c], 0x10000
jne 0x10003ea6
cmp dword [esp + 0x28], ebx
ja 0x10003ea8
xor edi, edi
push 0x40
push 0x2000
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call edi
test eax, eax
je 0x10003fd3
push 0x40
push 0x1000
push ebx
push eax
call edi
lea ecx, [ebp + ebp*4]
mov ebx, eax
mov edi, ebx
lea ecx, [esi + ecx*8 + 0xf8]
mov esi, dword [esp + 0x3c]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
test ebp, ebp
rep movsb byte es:[edi], byte [esi]
jle 0x10003f24
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
lea eax, [eax + ecx + 0x10c]
mov esi, dword [eax]
mov edi, dword [esp + 0x3c]
mov ecx, dword [eax - 4]
add esi, edi
mov edi, dword [eax - 8]
mov edx, ecx
add edi, ebx
add eax, 0x28
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
dec ebp
rep movsb byte es:[edi], byte [esi]
jne 0x10003f00
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x40], 1
mov eax, dword [eax + ecx + 0x80]
add eax, ebx
add eax, 0x10
cmp dword [eax], 0
je 0x10003fdd
mov ebp, eax
mov eax, dword [esp + 0x40]
test eax, eax
je 0x10003fc2
mov eax, dword [ebp - 4]
add eax, ebx
cmp byte [eax], 0
je 0x10003fc2
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10003fc2
mov esi, dword [ebp]
add esi, ebx
mov eax, dword [esi]
test eax, eax
je 0x10003fb0
test eax, 0x80000000
jne 0x10003f82
lea eax, [eax + ebx + 2]
jmp 0x10003f87
and eax, 0xffff
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10003fa1
mov dword [esi], eax
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
jne 0x10003f75
jmp 0x10003fb0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esp + 0x40], 0
mov eax, dword [ebp + 0x14]
add ebp, 0x14
test eax, eax
jne 0x10003f4b
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x10003fdd
mov edx, dword [esp + 0x14]
push 0x4000
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + edi + 0xa0]
mov eax, dword [ecx + ebx]
add ecx, ebx
test eax, eax
je 0x1000403e
mov eax, dword [ecx + 4]
test eax, eax
je 0x1000403e
add eax, 0xfffffff8
lea esi, [ecx + 8]
shr eax, 1
test eax, eax
jle 0x10004036
mov edx, eax
mov ax, word [esi]
mov ebp, eax
and ebp, 0xf000
cmp ebp, 0x3000
jne 0x10004030
mov ebp, dword [ecx]
and eax, 0xfff
add eax, ebx
add eax, ebp
mov ebp, ebx
sub ebp, dword [esp + 0x18]
add dword [eax], ebp
add esi, 2
dec edx
jne 0x1000400a
add ecx, dword [ecx + 4]
cmp dword [ecx], 0
jne 0x10003ff5
mov ecx, dword [esp + 0x10]
push 0
push 1
push ebx
mov eax, dword [ecx + edi + 0x28]
add eax, ebx
call eax
test eax, eax
je 0x10003fc2
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x28
ret