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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1003e020]
xor eax, ebp
mov dword [ebp - 8], eax
mov cl, byte [ebp + 0x10]
mov eax, dword [ebp + 0xc]
test cl, cl
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, eax
movzx ebx, cl
mov ecx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0x18], 0
jne 0x100033d6
xor dl, dl
jmp 0x100033f4
lea edx, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
push edx
push 0x40
push ebx
push eax
mov dword [ebp - 0x18], eax
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
mov eax, dword [ebp + 0xc]
setne dl
mov byte [ebp - 0xc], dl
mov dh, byte [esi]
mov byte [ebp - 0x1d], dh
test dl, dl
je 0x10003419
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x1c]
push edx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x18]
call ecx
mov eax, dword [ebp + 0xc]
mov dh, byte [ebp - 0x1d]
movzx ecx, dh
sub ecx, 0xe8
je 0x1000351b
sub ecx, 1
je 0x1000351b
sub ecx, 0x16
jne 0x10003502
xor edx, edx
lea esi, [eax + 1]
mov dword [ebp - 0x18], edx
test ebx, ebx
jne 0x1000344a
xor cl, cl
jmp 0x10003469
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
push eax
push 0x40
push ebx
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 0x18]
test eax, eax
mov eax, dword [ebp + 0xc]
setne cl
mov byte [ebp - 0xc], cl
mov ch, byte [esi]
mov byte [ebp - 0x1d], ch
test cl, cl
je 0x10003490
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp + 0xc]
mov ch, byte [ebp - 0x1d]
cmp ch, 0x15
je 0x1000349a
cmp ch, 0x25
jne 0x10003502
shl ebx, 2
lea esi, [eax + 2]
xor edx, edx
mov dword [ebp - 0x18], edx
test ebx, ebx
jne 0x100034b3
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor al, al
jmp 0x100034d1
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
push eax
push 0x40
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
mov dword [ebp - 0x18], esi
call ebx
mov edx, dword [ebp - 0x18]
test eax, eax
setne al
mov byte [ebp - 0xc], al
mov esi, dword [esi]
test al, al
je 0x100034eb
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
push ecx
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
push edx
call ebx
mov ecx, dword [esi]
mov eax, edi
mov dword [edi], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000d62d
mov esp, ebp
pop ebp
ret
mov dword [edi], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000d62d
mov esp, ebp
pop ebp
ret
shl ebx, 2
lea esi, [eax + 1]
xor ecx, ecx
mov dword [ebp - 0x18], ecx
test ebx, ebx
jne 0x10003534
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor al, al
jmp 0x10003552
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
push eax
push 0x40
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
mov dword [ebp - 0x18], esi
call ebx
mov ecx, dword [ebp - 0x18]
test eax, eax
setne al
mov byte [ebp - 0xc], al
mov edx, dword [esi]
mov dword [ebp - 0x24], edx
test al, al
je 0x10003572
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x1c]
push edx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
push ecx
call ebx
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 8]
lea eax, [esi + 4]
add eax, edx
xor ecx, ebp
mov dword [edi], eax
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.1000d62d
mov esp, ebp
pop ebp
ret