Function at 0x405f60
Capabilities:
Check if file exists
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b530
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x44d7b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x4060d8
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x405fa0
sub eax, edx
sar eax, 1
je 0x4060d8
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4060d8
mov eax, dword [ebp + 0xc]
push eax
push ebx
push 0x1fffff
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
jne 0x406049
cmp dword [0x451d4c], ebx
jne 0x4060d8
mov dword [0x451d4c], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea esi, [ebp - 0x14]
call fcn.004045f0
push eax
lea ecx, [ebp + 8]
push str.OP_Error:
push ecx
mov dword [ebp - 4], ebx
call fcn.00406db0
add esp, 0xc
push ebx
mov byte [ebp - 4], 1
mov edx, dword [eax]
push ebx
push edx
call fcn.0040f612
lea ecx, [ebp + 8]
call fcn.00404f40
mov ecx, esi
call fcn.00404f40
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x406050
push 4
sub eax, edx
sar eax, 1
push 0x1000
lea esi, [eax + eax + 2]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
jne 0x4060ec
cmp dword [0x451d4c], eax
jne 0x4060d1
mov dword [0x451d4c], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea esi, [ebp - 0x14]
call fcn.004045f0
push eax
lea eax, [ebp + 8]
push str.VA_Error:
push eax
mov dword [ebp - 4], 2
call fcn.00406db0
add esp, 0xc
push ebx
mov byte [ebp - 4], 3
mov ecx, dword [eax]
push ebx
push ecx
call fcn.0040f612
lea ecx, [ebp + 8]
call fcn.00404f40
mov ecx, esi
call fcn.00404f40
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
push 0
push esi
push edx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x40616e
cmp dword [0x451d4c], eax
jne 0x40615a
mov dword [0x451d4c], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea esi, [ebp - 0x14]
call fcn.004045f0
push eax
lea eax, [ebp + 8]
push str.WPM_Error:
push eax
mov dword [ebp - 4], 4
call fcn.00406db0
add esp, 0xc
push 0
mov byte [ebp - 4], 5
mov ecx, dword [eax]
push 0
push ecx
call fcn.0040f612
lea ecx, [ebp + 8]
call fcn.00404f40
lea ecx, [ebp - 0x14]
call fcn.00404f40
push 0x8000
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x4060d1
push 0x443474
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40618d
push 0x443488
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4061d9
cmp dword [0x451d4c], 0
jne 0x40615a
mov dword [0x451d4c], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea esi, [ebp - 0x14]
call fcn.004045f0
push eax
lea edx, [ebp + 8]
push str.GPA_Error:
push edx
mov dword [ebp - 4], 6
call fcn.00406db0
add esp, 0xc
push 0
mov byte [ebp - 4], 7
mov eax, dword [eax]
push 0
push eax
jmp 0x406145
push 0
push 0
push ebx
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x406240
cmp dword [0x451d4c], eax
jne 0x40615a
mov dword [0x451d4c], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea esi, [ebp - 0x14]
call fcn.004045f0
push eax
lea ecx, [ebp + 8]
push str.CRT_Error:
push ecx
mov dword [ebp - 4], 8
call fcn.00406db0
add esp, 0xc
push 0
mov byte [ebp - 4], 9
mov edx, dword [eax]
push 0
push edx
jmp 0x406145
mov esi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x10]
push eax
push 1
call esi
test eax, eax
je 0x406291
jmp 0x406260
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
lea edx, [ebp - 0x30]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x10]
push eax
push 1
call esi
test eax, eax
jne 0x406260
push 0x8000
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ecx, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push edi
call esi
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret