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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push str.Log:GetModuleHandleA_Remote___Enter:_n
mov eax, dword [0x517b78]
push eax
call fcn.00406740
add esp, 8
mov dword [ebp - 0x2c], 0
mov ecx, 0x4123a0
sub ecx, 0x412350
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0xc], 0
je 0x4116d8
mov edx, dword [ebp + 0xc]
push edx
call fcn.0041c180
add esp, 4
add eax, 1
mov dword [ebp - 0x18], eax
jmp 0x4116df
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0xc]
lea eax, [edx + ecx + 0xc]
mov dword [ebp - 0x30], eax
push 0x40
push 0x3000
mov ecx, dword [ebp - 0x30]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x41186d
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0xc
mov dword [ebp - 0x24], edx
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
push 0x4d8584
push 0x4d8598
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.00411db0
add esp, 8
mov dword [ebp - 0x3c], eax
cmp dword [ebp + 0xc], 0
je 0x411763
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x1c], ecx
jmp 0x41176a
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0xc]
push eax
push 0x412350
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00411610
add esp, 0x10
movzx eax, al
test eax, eax
je 0x411858
push 0xc
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00411610
add esp, 0x10
movzx ecx, al
test ecx, ecx
je 0x411858
cmp dword [ebp + 0xc], 0
je 0x4117da
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00411610
add esp, 0x10
movzx eax, al
test eax, eax
je 0x411858
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x411858
push 0xffffffffffffffff
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x28], 0x54fd32fc
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x41184e
cmp dword [ebp - 0x28], 0xab02cd03
jne 0x41184e
push 0xc
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00411590
add esp, 0x10
movzx ecx, al
test ecx, ecx
je 0x41184e
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push str.Log:GetModuleHandleA_Remote___Exit._n
mov eax, dword [0x517b78]
push eax
call fcn.00406740
add esp, 8
mov eax, dword [ebp - 0x2c]
mov esp, ebp
pop ebp
ret