Function at 0x41bf80
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push 0xffffffffffffffff
push 0x41ddc9
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x426304]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [esp + 0x44]
push eax
push 0
push 0x42a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x3c], 0
test esi, esi
jne 0x41c004
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x48], str.Could_not_get_handle_to_process.
call fcn.0040680e
mov byte [esp + 0x3c], 1
mov dword [esp + 0x1c], vtable.std::runtime_error.0
mov byte [esp + 0x3c], 0
push 0x424220
lea edx, [esp + 0x20]
push edx
call fcn.0040b8f9
mov eax, dword [ebx + 0x10]
push 4
push 0x1000
lea ebp, [eax + eax + 2]
push ebp
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], esi
mov byte [esp + 0x3c], 2
test edi, edi
jne 0x41c066
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], str.Could_not_allocate_memory_in_remote_process.
call fcn.0040680e
mov byte [esp + 0x3c], 3
mov dword [esp + 0x28], vtable.std::runtime_error.0
mov byte [esp + 0x3c], 2
push 0x424220
lea ecx, [esp + 0x2c]
push ecx
call fcn.0040b8f9
cmp dword [ebx + 0x14], 8
jb 0x41c06e
mov ebx, dword [ebx]
push 0
push ebp
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x41c0b5
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], str.Could_not_write_to_memory_in_remote_process.
call fcn.0040680e
mov byte [esp + 0x3c], 4
mov dword [esp + 0x28], vtable.std::runtime_error.0
mov byte [esp + 0x3c], 2
push 0x424220
lea eax, [esp + 0x2c]
push eax
call fcn.0040b8f9
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor ebx, ebx
cmp eax, ebx
jne 0x41c0fd
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], str.Could_not_get_handle_to_Kernel32.
call fcn.0040680e
mov byte [esp + 0x3c], 5
mov dword [esp + 0x28], vtable.std::runtime_error.0
mov byte [esp + 0x3c], 2
push 0x424220
lea edx, [esp + 0x2c]
push edx
call fcn.0040b8f9
push 0x422614
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
jne 0x41c12a
push str.Could_not_get_pointer_to_LoadLibraryW.
lea ecx, [esp + 0x2c]
call fcn.004010b0
push 0x424220
lea eax, [esp + 0x2c]
push eax
call fcn.0040b8f9
push ebx
push ebx
push edi
push eax
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ebp, eax
mov dword [esp + 0x44], ebp
mov byte [esp + 0x3c], 6
cmp ebp, ebx
jne 0x41c163
push str.Could_not_create_thread_in_remote_process.
lea ecx, [esp + 0x2c]
call fcn.004010b0
push 0x424220
lea ecx, [esp + 0x2c]
push ecx
call fcn.0040b8f9
push 0xffffffffffffffff
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [esp + 0x14]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x41c199
push str.Could_not_get_thread_exit_code.
lea ecx, [esp + 0x2c]
call fcn.004010b0
push 0x424220
lea eax, [esp + 0x2c]
push eax
call fcn.0040b8f9
cmp dword [esp + 0x14], ebx
jne 0x41c1bc
push str.Call_to_LoadLibraryW_in_remote_process_failed.
lea ecx, [esp + 0x2c]
call fcn.004010b0
push 0x424220
lea ecx, [esp + 0x2c]
push ecx
call fcn.0040b8f9
mov byte [esp + 0x3c], 2
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebp
mov dword [esp + 0x44], ebx
mov byte [esp + 0x3c], 0
push 0x8000
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x3c], 0xffffffff
push esi
call ebp
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 4