Function at 0x10009060
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0xc]
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
sub eax, 0
je 0x100090a9
sub eax, 1
jne 0x10009484
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push esi
push 0x10009e90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x10022a90]
test eax, eax
je 0x100090b9
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov al, 1
mov ecx, 0x10022a9e
xchg byte [ecx], al
cmp dword [0x10022b84], 0
je 0x1000910c
call dword [sym.imp.MSVCP140.dll__Thrd_id]
mov ecx, dword [0x10022b84]
cmp ecx, eax
jne 0x100090e3
push 5
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push 0
push ecx
push dword [0x10022b80]
call dword [sym.imp.MSVCP140.dll__Thrd_join]
add esp, 0xc
test eax, eax
je 0x10009101
push 2
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
xorps xmm0, xmm0
movlpd qword [0x10022b80], xmm0
push 0x10002960
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Stopped_ContinuousQueueProcessing_thread
call fcn.10002740
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
xor edi, edi
mov ecx, 1
mov ebx, 0x10022abc
xor eax, eax
lock cmpxchg dword [ebx], ecx
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x1000916d
nop dword [eax]
cmp edi, 0x20
jae 0x10009159
push 0
jmp 0x1000915b
push 1
call esi
inc edi
mov ecx, 1
xor eax, eax
lock cmpxchg dword [ebx], ecx
test eax, eax
jne 0x10009150
cmp dword [0x10022b40], 0
je 0x10009274
mov edi, dword [sym.imp.WS2_32.dll_WSARecv]
test edi, edi
jne 0x10009190
xor ecx, ecx
call fcn.10017a7b
jmp 0x10009274
mov ecx, dword [0x10022d08]
xor edx, edx
test ecx, ecx
je 0x10009274
mov ebx, dword [0x10022d00]
mov eax, ebx
cmp edi, dword [eax]
je 0x100091b9
inc edx
add eax, 0x2c
cmp edx, ecx
jb 0x100091a8
jmp 0x1000926f
cmp edx, 0xffffffff
je 0x1000926f
imul edi, edx, 0x2c
test byte [edi + ebx + 0x14], 2
je 0x1000926f
push 1
lea ecx, [esp + 0x18]
call fcn.100178ca
add esp, 4
test eax, eax
jne 0x1000926f
add edi, dword [0x10022d00]
mov eax, dword [edi]
mov cl, byte [edi + 0x14]
and cl, 1
lea ebx, [eax - 5]
cmove ebx, eax
movzx eax, cl
lea ecx, [esp + 0xc]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push ebx
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10009266
mov eax, dword [edi + 0xc]
test byte [edi + 0x14], 1
mov dword [ebx], eax
je 0x10009236
mov ax, word [edi + 0x10]
mov word [ebx + 4], ax
mov al, byte [edi + 0x12]
mov byte [ebx + 6], al
jmp 0x1000923c
mov al, byte [edi + 0x10]
mov byte [ebx + 4], al
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [edi + 0x14], 0xf9
lea ecx, [esp + 0x14]
call fcn.10017955
mov ebx, 0x10022abc
xor eax, eax
xchg dword [ebx], eax
xor edi, edi
mov ecx, 1
xor eax, eax
lock cmpxchg dword [ebx], ecx
test eax, eax
je 0x100092ad
nop dword [eax]
cmp edi, 0x20
jae 0x10009299
push 0
jmp 0x1000929b
push 1
call esi
inc edi
mov ecx, 1
xor eax, eax
lock cmpxchg dword [ebx], ecx
test eax, eax
jne 0x10009290
cmp dword [0x10022b40], 0
je 0x100093b4
mov edi, dword [sym.imp.WS2_32.dll_WSASend]
test edi, edi
jne 0x100092d0
xor ecx, ecx
call fcn.10017a7b
jmp 0x100093b4
mov ecx, dword [0x10022d08]
xor edx, edx
test ecx, ecx
je 0x100093b4
mov ebx, dword [0x10022d00]
mov eax, ebx
cmp edi, dword [eax]
je 0x100092f9
inc edx
add eax, 0x2c
cmp edx, ecx
jb 0x100092e8
jmp 0x100093af
cmp edx, 0xffffffff
je 0x100093af
imul edi, edx, 0x2c
test byte [edi + ebx + 0x14], 2
je 0x100093af
push 1
lea ecx, [esp + 0x18]
call fcn.100178ca
add esp, 4
test eax, eax
jne 0x100093af
add edi, dword [0x10022d00]
mov eax, dword [edi]
mov cl, byte [edi + 0x14]
and cl, 1
lea ebx, [eax - 5]
cmove ebx, eax
movzx eax, cl
lea ecx, [esp + 0x10]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push ebx
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100093a6
mov eax, dword [edi + 0xc]
test byte [edi + 0x14], 1
mov dword [ebx], eax
je 0x10009376
mov ax, word [edi + 0x10]
mov word [ebx + 4], ax
mov al, byte [edi + 0x12]
mov byte [ebx + 6], al
jmp 0x1000937c
mov al, byte [edi + 0x10]
mov byte [ebx + 4], al
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push dword [esp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [esp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [edi + 0x14], 0xf9
lea ecx, [esp + 0x14]
call fcn.10017955
mov ebx, 0x10022abc
xor eax, eax
xchg dword [ebx], eax
xor edi, edi
mov ecx, 1
xor eax, eax
lock cmpxchg dword [ebx], ecx
test eax, eax
je 0x100093ed
nop dword [eax]
cmp edi, 0x20
jae 0x100093d9
push 0
jmp 0x100093db
push 1
call esi
inc edi
mov ecx, 1
xor eax, eax
lock cmpxchg dword [ebx], ecx
test eax, eax
jne 0x100093d0
cmp dword [0x10022b40], 0
je 0x1000947a
xor ecx, ecx
call fcn.10017a7b
test eax, eax
jne 0x1000947a
mov eax, dword [0x10022cf8]
mov dword [0x10022cf8], 0
test eax, eax
je 0x10009432
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov esi, dword [eax]
push 0x8000
push 0
push eax
call edi
mov eax, esi
test esi, esi
jne 0x10009420
push dword [0x10022d00]
push 0
push dword [0x10022b40]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [0x10022b40]
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
mov dword [0x10022b40], 0
mov dword [0x10022d00], 0
mov dword [0x10022d04], 0
mov dword [0x10022d08], 0
xor ecx, ecx
xchg dword [ebx], ecx
call dword [sym.imp.KERNEL32.dll_FreeConsole]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc