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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
xor ecx, ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x578dce
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
call fcn.00407198
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00578510
cmp al, 1
je 0x578da3
mov eax, dword [ebp - 8]
push eax
push 0
push 0x2000000
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x578da3
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x578b77
mov eax, dword [ebp - 0x38]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
add eax, eax
inc eax
mov dword [ebp - 0x18], eax
push 4
push 0x1000
mov eax, dword [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x578bb7
cmp dword [ebp - 0x1c], 0
je 0x578da3
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x578da3
call fcn.00541598
cmp eax, 0x3c
jb 0x578bd9
push 0x578ddc
push 0x578e00
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.0040f748
mov dword [ebp - 0x30], eax
push 0x578e0c
push 0x578e28
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.0040f748
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x578da3
call fcn.00541598
cmp eax, 0x3c
jb 0x578c0f
cmp dword [ebp - 0x30], 0
je 0x578da3
xor eax, eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_WriteProcessMemory
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x578c63
push 0x8000
push 0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_VirtualFreeEx
cmp dword [ebp - 0x1c], 0
je 0x578da3
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x578da3
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
call fcn.00541598
cmp eax, 0x3c
jb 0x578c9b
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 0
push 0x2000000
lea eax, [ebp - 0x20]
push eax
call dword [ebp - 0x30]
cmp dword [ebp - 0x20], 0
je 0x578cab
call fcn.00541598
cmp eax, 0x3c
jae 0x578cc9
lea eax, [ebp - 0x2c]
push eax
push 0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CreateRemoteThread
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x578d31
lea eax, [ebp - 0x3c]
push eax
call sub.kernel32.dll_GetLastError_2
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x50]
call fcn.004276dc
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0x11
lea edx, [ebp - 0x4c]
mov ecx, 1
mov eax, 0x578e48
call fcn.004230e0
mov eax, dword [ebp - 0x3c]
xor edx, edx
call fcn.00575d64
push 0x8000
push 0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_VirtualFreeEx
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x578da3
lea eax, [ebp - 0x54]
push eax
call sub.kernel32.dll_GetLastError_2
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x58]
call fcn.004276dc
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0x11
lea edx, [ebp - 0x4c]
mov ecx, 1
mov eax, 0x578eb4
call fcn.004230e0
mov eax, dword [ebp - 0x54]
xor edx, edx
call fcn.00575d64
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_GetExitCodeThread
cmp dword [ebp - 0x1c], 0
je 0x578d90
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CloseHandle_1
cmp dword [ebp - 0x20], 0
je 0x578d9f
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle_1
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x578dd5
lea eax, [ebp - 0x58]
mov edx, 3
call fcn.00406dd0
lea eax, [ebp - 0x3c]
call fcn.00406d70
lea eax, [ebp - 0x34]
call fcn.00406d70
ret