Function at 0x40dd90
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Get file attributes
Inject thread
Spawn thread to rwx shellcode
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x467548
push 0x43a740
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x46e560]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x84], eax
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test eax, eax
jns 0x40ddf5
push 0x30
push 0x4607e8
push str._InjectDll_DLL
jmp 0x40dfcd
test al, 0x10
jne 0x40dfd5
push esi
push 0
push 0x43a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x40de58
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x462558
lea eax, [ebp - 0x80]
push eax
call fcn.00413860
add esp, 0xc
push 0x34
push 0x4607e8
lea eax, [ebp - 0x80]
push eax
push esi
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
call edi
cmp eax, 6
jne 0x40dfd5
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x40de64
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push dword [ebp - 0x84]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x8c], eax
push 0x40
push 0x3000
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x88], eax
test eax, eax
jne 0x40ded9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4625b4
lea eax, [ebp - 0x80]
push eax
call fcn.00413860
add esp, 0xc
push 0x34
push 0x4607e8
lea eax, [ebp - 0x80]
push eax
push 0
call edi
cmp eax, 6
jne 0x40dfd5
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0x88]
push 0
push dword [ebp - 0x8c]
push dword [ebp - 0x84]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x40df07
push 0x30
push 0x4607e8
push 0x4625dc
push eax
call edi
jmp 0x40dfd5
push 0x4625f8
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0
push dword [ebp - 0x88]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x84], eax
test eax, eax
jne 0x40df7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x462614
lea eax, [ebp - 0x80]
push eax
call fcn.00413860
add esp, 0xc
push 0x34
push 0x4607e8
lea eax, [ebp - 0x80]
push eax
push 0
call edi
cmp eax, 6
jne 0x40dfd5
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0x84]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x4000
push dword [ebp - 0x8c]
push dword [ebp - 0x88]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x84]
call esi
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x40dfde
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004387e7
mov esp, ebp
pop ebp
ret 8