Function at 0x401460
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Link many functions at runtime
Self delete

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4169b4
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x41f004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x288], ecx
mov dword [ebp - 0x298], ecx
mov dword [ebp - 0x2a0], ecx
lea edi, [ecx + 4]
mov byte [ecx], 0
xor eax, eax
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 4], eax
xor edx, edx
lea eax, [ecx + 0x1c]
mov dword [eax], 0
mov dword [ebp - 0x294], eax
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], dx
lea eax, [ecx + 0x34]
mov dword [eax], edx
mov dword [ebp - 0x298], eax
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], 7
mov word [eax], dx
mov dword [ecx + 0x4c], edx
mov dword [ecx + 0x5c], edx
mov dword [ecx + 0x60], 7
mov word [ecx + 0x4c], dx
lea eax, [ecx + 0x64]
mov dword [eax], edx
mov dword [ebp - 0x29c], eax
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], 7
mov word [eax], dx
lea eax, [ecx + 0x7c]
xor ecx, ecx
mov dword [eax], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], 7
mov word [eax], cx
push 0x41c9b8
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
push str.KtmW32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 0x290], esi
test esi, esi
je 0x40157a
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x28c], eax
test eax, eax
jne 0x401588
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x288]
mov byte [eax], 0
jmp 0x401a70
push str.CreateTransaction
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [0x4203cc], eax
test eax, eax
je 0x40157a
push str.CommitTransaction
push dword [ebp - 0x290]
call esi
mov dword [0x4203c0], eax
test eax, eax
je 0x40157a
push str.MoveFileTransactedW
push dword [ebp - 0x28c]
call esi
mov dword [0x4203d0], eax
test eax, eax
je 0x40157a
push str.CreateFileTransactedW
push dword [ebp - 0x28c]
call esi
mov dword [0x4203c8], eax
test eax, eax
je 0x40157a
push str.DeleteFileTransactedW
push dword [ebp - 0x28c]
call esi
mov dword [0x4203c4], eax
test eax, eax
je 0x40157a
lea ecx, [ebp - 0x230]
call fcn.004011a0
mov esi, eax
cmp edi, esi
je 0x401671
mov ecx, dword [edi + 0x14]
cmp ecx, 8
jb 0x401641
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x401637
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401ac2
mov eax, edx
push ecx
push eax
call fcn.00402779
add esp, 8
mov dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 7
mov word [edi], ax
movups xmm0, xmmword [esi]
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x4016b1
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4016a7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401ac2
push edx
push ecx
call fcn.00402779
add esp, 8
mov eax, dword [ebp - 0x288]
cmp dword [eax + 0x14], 0
je 0x401580
mov eax, dword [edi + 0x10]
mov esi, 1
cmp eax, esi
mov ecx, esi
mov edx, edi
cmovb ecx, eax
cmp dword [edi + 0x14], 8
jb 0x4016da
mov edx, dword [edi]
sub eax, ecx
mov dword [edi + 0x10], eax
lea eax, [eax*2 + 2]
push eax
lea eax, [edx + ecx*2]
push eax
push edx
call fcn.00404fc0
mov eax, dword [ebp - 0x288]
add esp, 0xc
mov edx, dword [edi + 0x10]
mov ecx, dword [eax + 0x14]
dec ecx
mov dword [ebp - 0x290], ecx
cmp edx, ecx
jb 0x401ac7
mov eax, edx
sub eax, ecx
cmp eax, 1
cmovb esi, eax
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x401723
mov eax, dword [edi]
sub edx, esi
lea ecx, [eax + ecx*2]
mov dword [edi + 0x10], edx
sub edx, dword [ebp - 0x290]
lea eax, [edx*2 + 2]
push eax
lea eax, [ecx + esi*2]
push eax
push ecx
call fcn.00404fc0
add esp, 0xc
mov ecx, edi
cmp dword [edi + 0x14], 8
jb 0x401750
mov ecx, dword [edi]
push dword [ebp - 0x2a0]
mov esi, dword [edi + 0x10]
mov edx, esi
push 2
sub esp, 8
call fcn.00402130
mov ecx, eax
mov dword [ebp - 0x230], 0
xor eax, eax
mov dword [ebp - 0x220], 0
add esp, 0x10
mov word [ebp - 0x230], ax
cmp esi, ecx
mov dword [ebp - 0x21c], 7
mov eax, edi
cmovb ecx, esi
cmp dword [edi + 0x14], 8
jb 0x4017a0
mov eax, dword [edi]
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00401fc0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x230]
mov esi, dword [ebp - 0x288]
add esi, 0x4c
cmp esi, ecx
je 0x4017e2
cmp dword [ebp - 0x21c], 8
mov eax, ecx
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.00401fc0
push str._stub.exe
mov ecx, esi
call fcn.00401ee0
mov esi, dword [ebp - 0x29c]
lea eax, [ebp - 0x230]
cmp esi, eax
je 0x40181a
cmp dword [ebp - 0x21c], 8
mov ecx, esi
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.00401fc0
push str._stubTemp.exe
mov ecx, esi
call fcn.00401ee0
mov esi, dword [ebp - 0x298]
lea eax, [ebp - 0x230]
cmp esi, eax
je 0x401852
cmp dword [ebp - 0x21c], 8
mov ecx, esi
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.00401fc0
push str.hkbak.dat
mov ecx, esi
call fcn.00401ee0
mov esi, dword [ebp - 0x288]
lea ecx, [ebp - 0x230]
add esi, 0x7c
cmp esi, ecx
je 0x40188f
cmp dword [ebp - 0x21c], 8
mov eax, ecx
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.00401fc0
push str.packageshkHKEXE.exe
mov ecx, esi
call fcn.00401ee0
mov ecx, dword [ebp - 0x294]
lea eax, [ebp - 0x230]
cmp ecx, eax
je 0x4018cb
cmp dword [ebp - 0x21c], 8
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.00401fc0
mov ecx, dword [ebp - 0x294]
push str.uninst000.exe1
call fcn.00401ee0
mov eax, dword [ebp - 0x288]
add eax, 0x4c
cmp dword [eax + 0x14], 8
jb 0x4018e6
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401a8b
cmp dword [edi + 0x14], 8
jb 0x4018fe
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401a8b
mov eax, dword [ebp - 0x288]
push str.stub_7E1E520F_EF3E_43cf_AEAE_68449BC52DEC
push 0
push 2
mov byte [eax], 1
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov edi, eax
test edi, edi
je 0x40193e
push edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x401944
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40194e
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401a2e
xorps xmm0, xmm0
mov dword [ebp - 0x274], 0x44
push 0x208
lea eax, [ebp - 0x218]
movlpd qword [ebp - 0x270], xmm0
push 0
push eax
movlpd qword [ebp - 0x268], xmm0
movlpd qword [ebp - 0x260], xmm0
movlpd qword [ebp - 0x258], xmm0
movlpd qword [ebp - 0x250], xmm0
movlpd qword [ebp - 0x248], xmm0
movlpd qword [ebp - 0x240], xmm0
movlpd qword [ebp - 0x238], xmm0
movups xmmword [ebp - 0x284], xmm0
call fcn.00403b60
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x4019d0
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x218]
push str._ws__r
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x274]
push eax
push 0
push 0
push 8
push 1
push 0
push 0
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401a23
push dword [ebp - 0x284]
call edi
push dword [ebp - 0x280]
call edi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x401a6a
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401a60
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401abd
push edx
push ecx
call fcn.00402779
add esp, 8
mov eax, dword [ebp - 0x288]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040273b
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x401a6a
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401a60
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401a60
call fcn.004093ca
call fcn.004093ca
call fcn.00402120
int3