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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x10
mov dword [eax], 0
mov eax, dword [ebp + 8]
push edi
mov edi, dword [eax]
test edi, edi
jne 0x419658
push str.Cant_inject_a_dll_in_a_process_which_is_not_open_n
push 2
call fcn.0047ed4d
add esp, 4
push eax
call fcn.00416e60
add esp, 8
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
push esi
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x41967e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
mov esi, eax
call fcn.0047ed4d
mov ecx, str.GetModuleHandleW_failed___lu__n
jmp 0x4196a5
push str.LoadLibraryW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4196bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
mov esi, eax
call fcn.0047ed4d
mov ecx, str.GetProcAddress_failed___lu__n
add esp, 4
push esi
push ecx
push eax
call fcn.00416e60
add esp, 0xc
xor al, al
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4196c1
push ebx
sub ecx, edx
sar ecx, 1
push 4
push 0x3000
lea esi, [ecx*2 + 2]
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
mov dword [ebp - 8], ebx
test ebx, ebx
jne 0x419719
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
mov esi, eax
call fcn.0047ed4d
push esi
push str.VirtualAllocEx_failed___lu__n
push eax
call fcn.00416e60
add esp, 0x10
xor al, al
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 8]
push eax
push esi
push dword [ebp + 0xc]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x419820
cmp esi, dword [ebp + 8]
jne 0x419820
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push ebx
push dword [ebp - 4]
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThreadEx]
mov ebx, eax
test ebx, ebx
jne 0x41977e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
mov esi, eax
call fcn.0047ed4d
push esi
push str.CreateRemoteThreadEx_failed___lu__n
push eax
call fcn.00416e60
add esp, 0x10
xor al, al
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], eax
test eax, eax
je 0x4197bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
mov esi, eax
call fcn.0047ed4d
push esi
push dword [ebp - 4]
push str.WaitForSingleObject_failed_reason:__lu__error:__lu_n
push eax
call fcn.00416e60
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
push 0x8000
push 0
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x41980f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
mov esi, eax
call fcn.0047ed4d
push esi
push str.GetExitCodeThread_failed___lu__n
push eax
call fcn.00416e60
add esp, 0x10
xor al, al
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
pop ebx
pop esi
mov dword [ecx], eax
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
mov esi, eax
call fcn.0047ed4d
push esi
push str.WriteProcessMemory_failed___lu__n
push eax
call fcn.00416e60
add esp, 0x10
push 0x8000
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
pop ebx
pop esi
xor al, al
pop edi
mov esp, ebp
pop ebp
ret