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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x1004c040]
xor eax, esp
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
lea esi, [eax + eax*2]
mov dword [esp + 0x10], eax
shl esi, 4
add esi, dword [0x1004c6b0]
mov dword [esp + 0x14], ecx
push edi
mov edi, dword [esi + 4]
test ebx, ebx
je 0x1003a9e2
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x1c]
add eax, 0xd
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0x33
call fcn.1003b180
test eax, eax
jne 0x1003a97b
mov eax, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.1003b9a6
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [esp + 0x28]
mov ecx, dword [esi + 4]
test edx, edx
je 0x1003a99c
mov eax, dword [ecx - 5]
mov dword [esi + 0x10], eax
mov ax, word [ecx - 1]
mov word [esi + 0x14], ax
mov al, byte [ecx + 1]
mov byte [esi + 0x16], al
jmp 0x1003a9a7
mov eax, dword [ecx]
mov dword [esi + 0x10], eax
mov al, byte [ecx + 4]
mov byte [esi + 0x14], al
mov al, byte [esi + 0x18]
and dl, 1
mov ecx, dword [esi + 0x1c]
and al, 0xfe
or al, dl
and ecx, 0xfffffff0
mov byte [esi + 0x18], al
mov eax, dword [esp + 0x2c]
and eax, 0xf
or ecx, eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x1c], ecx
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x24], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
mov al, byte [esi + 0x18]
and al, 1
je 0x1003a9ec
sub edi, 5
movzx eax, al
lea edx, [eax*2 + 5]
mov dword [esp + 0x10], edx
test ebx, ebx
jne 0x1003aa3e
cmp byte [edi], 0xe9
jne 0x1003aa3e
mov ecx, dword [edi + 1]
lea eax, [ecx - 3]
add eax, edi
cmp dword [esi + 0xc], eax
je 0x1003aa3e
push dword [esp + 0x18]
mov eax, dword [ecx + edi - 3]
push fcn.1003a900
push dword [esp + 0x1c]
push dword [esi + 4]
push dword [ecx + edi + 1]
call eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.1003b9a6
mov esp, ebp
pop ebp
ret 0xc
lea eax, [esp + 0x40]
push eax
push 0x40
push edx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1003aa6a
mov eax, 0xa
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.1003b9a6
mov esp, ebp
pop ebp
ret 0xc
test ebx, ebx
je 0x1003aa8c
mov byte [edi], 0xe9
mov eax, dword [esi + 0xc]
sub eax, edi
add eax, 3
mov dword [edi + 1], eax
test byte [esi + 0x18], 1
je 0x1003aaad
mov eax, dword [esi + 4]
mov word [eax], 0xf9eb
jmp 0x1003aaad
mov eax, dword [esi + 0x10]
test byte [esi + 0x18], 1
mov dword [edi], eax
je 0x1003aaa7
mov ax, word [esi + 0x14]
mov word [edi + 4], ax
mov al, byte [esi + 0x16]
mov byte [edi + 6], al
jmp 0x1003aaad
mov al, byte [esi + 0x14]
mov byte [edi + 4], al
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x44]
push dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push ebx
call fcn.1003a760
mov cl, bl
add esp, 4
add cl, cl
shl bl, 2
xor cl, byte [esi + 0x18]
xor eax, eax
and cl, 2
xor cl, byte [esi + 0x18]
xor bl, cl
and bl, 4
xor bl, cl
mov ecx, dword [esp + 0x44]
pop edi
mov byte [esi + 0x18], bl
pop esi
pop ebx
xor ecx, esp
call fcn.1003b9a6
mov esp, ebp
pop ebp
ret 0xc