Function at 0x401486
Capabilities:
Create thread
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
nop
nop
nop
nop
nop
nop
push dword [ebp + 0x10]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
test eax, eax
mov dword [ebp - 4], eax
jne 0x4014ab
leave
ret
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
and dword [ebp - 0x1c], 0
mov ebx, 0x1000
push ebx
push eax
mov dword [ebp - 8], eax
call fcn.00401ac8
mov edi, 0x10000
mov esi, eax
push edi
push dword [ebp - 8]
call fcn.00401ac8
push ebx
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
call fcn.00401ac8
push ebx
mov dword [ebp - 0x14], eax
push dword [ebp - 4]
call fcn.00401ac8
add esp, 0x20
mov dword [ebp - 0x18], eax
test esi, esi
je 0x40168a
cmp dword [ebp - 0x10], 0
je 0x40168a
cmp dword [ebp - 0x14], 0
je 0x40168a
test eax, eax
je 0x40168a
push str.kernel32.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push edi
push 0
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push 0
push edi
push dword [ebp - 0xc]
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
push 9
push 0x403040
push edi
push dword [ebp - 0xc]
call fcn.0040172e
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
add esp, 0x10
test eax, eax
je 0x401570
mov ecx, dword [ebp + 0x10]
add eax, ecx
jmp 0x40157a
push 0x40308c
push dword [ebp + 0x10]
call edi
push dword [ebp - 0xc]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
push str.OpenEventA
push dword [ebp + 0x10]
call edi
push 0x403078
mov dword [esi + 8], eax
push dword [ebp + 0x10]
call edi
push 0x40306c
mov dword [esi + 0xc], eax
push dword [ebp + 0x10]
call edi
push str.FreeLibrary
mov dword [esi + 0x10], eax
push dword [ebp + 0x10]
call edi
push str.DeleteFileA
mov dword [esi + 0x14], eax
push dword [ebp + 0x10]
call edi
mov dword [esi + 4], eax
lea eax, [esi + 0x18]
test eax, eax
je 0x4015e1
push dword [ebp + 8]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea eax, [esi + 0x11c]
test eax, eax
je 0x4015f6
push dword [ebp + 0xc]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea eax, [esi + 0x220]
push str.68483277
push eax
call sub.MSVCRT.dll_strcpy
mov edi, fcn.00401486
mov eax, 0x401412
sub edi, eax
push edi
push dword [ebp - 0x10]
push eax
push dword [ebp - 8]
call fcn.00401773
add esp, 0x18
test eax, eax
je 0x401671
push 0x230
push esi
push dword [ebp - 0x14]
push dword [ebp - 4]
call fcn.0040178c
add esp, 0x10
test eax, eax
je 0x401671
push edi
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp - 4]
call fcn.0040178c
add esp, 0x10
test eax, eax
je 0x401671
xor eax, eax
push eax
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 0x400
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CreateRemoteThread]
mov dword [ebp - 0x1c], eax
push ebx
push esi
push dword [ebp - 8]
call fcn.00401ae0
push ebx
push dword [ebp - 0x10]
push dword [ebp - 8]
call fcn.00401ae0
add esp, 0x18
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret