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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
cmp dword [0x1003c114], 0
push ebx
mov ebx, dword [ebp + 8]
jne 0x1001651b
push esi
push edi
call fcn.10016220
mov edi, dword [0x1003d4c0]
add edi, 0x40
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
je 0x10016366
mov eax, method.EncryptMemory.virtual_32
test eax, eax
je 0x10016366
lea ecx, [ebp - 4]
push ecx
push 0x40
push 4
push edi
call esi
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x20]
push edx
push eax
push 4
push edi
mov dword [edi], method.EncryptMemory.virtual_32
call esi
mov edi, dword [0x1003d4c0]
add edi, 0x44
je 0x10016398
mov ecx, method.EncryptMemory.virtual_32
test ecx, ecx
je 0x10016398
lea edx, [ebp - 8]
push edx
push 0x40
push 4
push edi
call esi
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x24]
push eax
push ecx
push 4
push edi
mov dword [edi], method.EncryptMemory.virtual_32
call esi
mov edi, dword [0x1003d4c0]
add edi, 0x48
je 0x100163ca
mov edx, method.EncryptMemory.virtual_32
test edx, edx
je 0x100163ca
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push edi
call esi
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 0x28]
push ecx
push edx
push 4
push edi
mov dword [edi], method.EncryptMemory.virtual_32
call esi
mov edi, dword [0x1003d4c0]
add edi, 0x4c
je 0x100163fc
mov eax, method.EncryptMemory.virtual_32
test eax, eax
je 0x100163fc
lea ecx, [ebp - 0x10]
push ecx
push 0x40
push 4
push edi
call esi
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x2c]
push edx
push eax
push 4
push edi
mov dword [edi], method.EncryptMemory.virtual_32
call esi
mov edi, dword [0x1003d4c0]
add edi, 0x50
je 0x1001642e
mov ecx, method.EncryptMemory.virtual_32
test ecx, ecx
je 0x1001642e
lea edx, [ebp - 0x14]
push edx
push 0x40
push 4
push edi
call esi
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x30]
push eax
push ecx
push 4
push edi
mov dword [edi], method.EncryptMemory.virtual_32
call esi
mov edi, dword [0x1003d4c0]
add edi, 0x54
je 0x10016460
mov edx, method.EncryptMemory.virtual_32
test edx, edx
je 0x10016460
lea eax, [ebp - 0x18]
push eax
push 0x40
push 4
push edi
call esi
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x34]
push ecx
push edx
push 4
push edi
mov dword [edi], method.EncryptMemory.virtual_32
call esi
mov edi, dword [0x1003d4c0]
add edi, 0x58
je 0x10016492
mov eax, method.EncryptMemory.virtual_32
test eax, eax
je 0x10016492
lea ecx, [ebp - 0x1c]
push ecx
push 0x40
push 4
push edi
call esi
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x38]
push edx
push eax
push 4
push edi
mov dword [edi], method.EncryptMemory.virtual_32
call esi
cmp dword [0x1003d4bc], 0
jne 0x100164c6
mov ecx, dword [0x1003d99c]
mov eax, dword [0x10040c88]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
add eax, 0x2e0
push eax
call edx
push eax
mov edi, 7
call fcn.10007ff0
add esp, 4
mov dword [0x1003d4bc], eax
mov ecx, dword [0x1003d99c]
mov edx, dword [0x10040c88]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add edx, 0x2e0
push edx
call eax
mov edi, eax
test edi, edi
je 0x1001650f
lea ecx, [ebp - 4]
push ecx
push 0x40
push 1
push edi
call esi
push 1
push 0x1003435c
push edi
call dword [sym.imp.MSVCR100.dll_memmove]
mov eax, dword [ebp - 4]
add esp, 0xc
lea edx, [ebp - 4]
push edx
push eax
push 1
push edi
call esi
pop edi
mov dword [0x1003c114], 1
pop esi
call fcn.1000f680
call fcn.1000f860
call fcn.1000e560
push ebx
call fcn.1000e8c0
call fcn.100141f0
mov ecx, ebx
call fcn.1000f2d0
call fcn.10012200
push ebx
call fcn.10011e60
push ebx
call fcn.100112b0
mov ecx, ebx
call fcn.10011880
push ebx
call fcn.10011a90
add esp, 0x10
call fcn.100139a0
call fcn.100138a0
call fcn.10014540
call fcn.10013ce0
call fcn.10013e60
call fcn.10014940
call fcn.10012650
call fcn.10012570
call fcn.10012450
call fcn.10014780
call fcn.10011b90
call fcn.10014870
call fcn.10014390
call fcn.10014020
call fcn.100140c0
call fcn.100152b0
call fcn.10015120
call fcn.10015500
mov ecx, ebx
call fcn.10015340
call fcn.10014a70
call fcn.10015030
call fcn.10014d90
pop ebx
mov esp, ebp
pop ebp
ret