Function at 0x404120
Capabilities:
Copy file
Create process on windows
Create process suspended
Delete file
Get common file path
Self delete

Disassembly:
sub esp, 0x298
push ebx
push ebp
push esi
push edi
push 0x32
xor ebx, ebx
push ebx
push 0x418404
call fcn.004050a0
push 0x32
push ebx
push 0x4183d0
call fcn.004050a0
mov eax, dword [0x418454]
mov edi, dword [0x418458]
xor ebp, ebp
add esp, 0x18
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x28], ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x2c], ebx
jle 0x4043bd
mov ecx, dword [edi + esi*4]
mov eax, ecx
lea ebp, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x404190
sub eax, ebp
cmp byte [ecx], 0x22
jne 0x4041b5
cmp byte [ecx + eax - 1], 0x22
jne 0x4041b5
mov ebp, 1
mov byte [ecx + eax - 1], bl
add dword [edi + esi*4], ebp
jmp 0x4041ba
mov ebp, 1
mov eax, dword [edi + esi*4]
push 8
push str._version
push eax
call fcn.00404f64
add esp, 0xc
test eax, eax
jne 0x404201
mov eax, dword [edi + esi*4]
push 0x3d
push eax
call fcn.00404b00
add esp, 8
cmp eax, ebx
je 0x4043ad
add eax, 1
mov edx, 0x418404
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, ebp
test cl, cl
jne 0x4041f1
jmp 0x4043ad
mov ecx, dword [edi + esi*4]
push 4
push str._svn
push ecx
call fcn.00404f64
add esp, 0xc
test eax, eax
jne 0x404248
mov eax, dword [edi + esi*4]
push 0x3d
push eax
call fcn.00404b00
add esp, 8
cmp eax, ebx
je 0x4043ad
add eax, 1
mov edx, 0x4183d0
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, ebp
test cl, cl
jne 0x404238
jmp 0x4043ad
mov edx, dword [edi + esi*4]
push 6
push str._check
push edx
call fcn.00404f64
add esp, 0xc
test eax, eax
mov eax, dword [edi + esi*4]
jne 0x404284
push 0x3d
push eax
call fcn.00404b00
add esp, 8
cmp eax, ebx
mov dword [esp + 0x28], eax
je 0x4043ad
add eax, ebp
mov dword [esp + 0x28], eax
jmp 0x4043ad
push 5
push str._wait
push eax
call fcn.00404f64
add esp, 0xc
test eax, eax
jne 0x4042bb
mov eax, dword [edi + esi*4]
push 0x3d
push eax
call fcn.00404b00
add esp, 8
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x4043ad
add dword [esp + 0x18], ebp
jmp 0x4043ad
mov ecx, dword [edi + esi*4]
push 7
push str._update
push ecx
call fcn.00404f64
add esp, 0xc
test eax, eax
jne 0x4042f5
mov eax, dword [edi + esi*4]
push 0x3d
push eax
call fcn.00404b00
add esp, 8
cmp eax, ebx
mov dword [esp + 0x20], eax
je 0x4043ad
add dword [esp + 0x20], ebp
jmp 0x4043ad
mov edx, dword [edi + esi*4]
push 5
push str._exec
push edx
call fcn.00404f64
add esp, 0xc
test eax, eax
mov eax, dword [edi + esi*4]
jne 0x40432f
push 0x3d
push eax
call fcn.00404b00
add esp, 8
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x4043ad
add dword [esp + 0x14], ebp
jmp 0x4043ad
push 0xd
push str._clone_update
push eax
call fcn.00404f64
add esp, 0xc
test eax, eax
jne 0x40435f
mov eax, dword [edi + esi*4]
push 0x3d
push eax
call fcn.00404b00
add esp, 8
cmp eax, ebx
mov dword [esp + 0x1c], eax
je 0x4043ad
add dword [esp + 0x1c], ebp
jmp 0x4043ad
mov ecx, dword [edi + esi*4]
push 0xb
push str._clone_exec
push ecx
call fcn.00404f64
add esp, 0xc
test eax, eax
jne 0x404392
mov eax, dword [edi + esi*4]
push 0x3d
push eax
call fcn.00404b00
add esp, 8
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x4043ad
add dword [esp + 0x10], ebp
jmp 0x4043ad
mov edx, dword [edi + esi*4]
push 0x13
push str._delete_after_close
push edx
call fcn.00404f64
add esp, 0xc
test eax, eax
jne 0x4043ad
mov dword [esp + 0x2c], ebp
add esi, ebp
cmp esi, dword [esp + 0x30]
jl 0x404188
mov ebp, dword [esp + 0x28]
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, 0x4183d0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4043d0
sub eax, edx
jne 0x4043f4
push 0xd08
push 0x4135fc
push 0x4183d0
call fcn.00405022
add esp, 0xc
cmp ebp, ebx
je 0x40440f
cmp byte [ebp], bl
je 0x40440f
push ebp
call fcn.00403030
add esp, 4
cmp eax, 1
jne 0x40440f
mov dword [esp + 0x24], ebx
cmp dword [esp + 0x18], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40443b
mov eax, dword [esp + 0x18]
cmp byte [eax], 0
je 0x40443b
push eax
call fcn.00404e32
add esp, 4
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call ebx
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x4044bc
cmp byte [esi], 0
je 0x4044bc
mov eax, dword [esp + 0x2ac]
push eax
call fcn.00401910
mov ecx, dword [esp + 0x2bc]
push ecx
call fcn.00401390
push esi
call fcn.00404100
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
add esp, 0xc
push 0
push 0
push 0
lea edx, [esp + 0x40]
push edx
call esi
test eax, eax
je 0x4044af
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageW]
mov edi, edi
lea eax, [esp + 0x34]
push eax
call edi
lea ecx, [esp + 0x34]
push ecx
call ebp
push 0
push 0
push 0
lea edx, [esp + 0x40]
push edx
call esi
test eax, eax
jne 0x404490
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x24], eax
jmp 0x404664
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x404653
cmp byte [ebp], 0
je 0x404653
push 0x103
lea ecx, [esp + 0x99]
push 0
push ecx
mov byte [esp + 0xa0], 0
call fcn.004050a0
add esp, 0xc
lea edx, [esp + 0x94]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x94]
push eax
push 0
push 0x413464
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov eax, dword [0x418470]
push 0
lea edx, [esp + 0x98]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 1
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x103
lea ecx, [esp + 0x1a9]
push 0
push ecx
mov edi, eax
mov byte [esp + 0x1b0], 0
call fcn.004050a0
lea edx, [esp + 0xa0]
push edx
lea eax, [esp + 0x1b4]
push str.__s_
push eax
call fcn.00405022
mov esi, eax
push ebp
lea ecx, [esp + esi + 0x1c0]
push str.___clone_update_s_
push ecx
call fcn.00405022
add esi, eax
push edi
lea edx, [esp + esi + 0x1cc]
push str.___wait_d_
push edx
call fcn.00405022
add esi, eax
mov eax, dword [esp + 0x44]
add esp, 0x30
test eax, eax
je 0x4045d2
cmp byte [eax], 0
je 0x4045d2
push eax
lea eax, [esp + esi + 0x1a8]
push str.___clone_exec_s_
push eax
call fcn.00405022
add esp, 0xc
add esi, eax
lea ecx, [esp + esi + 0x1a4]
push str.___delete_after_close
push ecx
call fcn.00405022
push 0x40
lea edx, [esp + 0x60]
push 0
push edx
mov dword [esp + 0x64], 0x44
call fcn.004050a0
add esp, 0x14
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x54]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
lea edx, [esp + 0x1c4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, 1
jne 0x404643
mov eax, dword [esp + 0x34]
push eax
call ebx
mov ecx, dword [esp + 0x38]
push ecx
call ebx
push edi
call ebx
mov dword [esp + 0x24], 0
jmp 0x404664
lea edx, [esp + 0x94]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x404664
mov eax, dword [esp + 0x14]
test eax, eax
je 0x404664
cmp byte [eax], 0
je 0x404664
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4046be
cmp byte [esi], 0
je 0x4046be
push 0x40
lea eax, [esp + 0x58]
push 0
push eax
mov dword [esp + 0x5c], 0x44
call fcn.004050a0
add esp, 0xc
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x54]
push edx
push 0
push 0
push 0x10
push 0
push 0
push 0
push esi
push 0
mov dword [esp + 0xa4], 1
mov word [esp + 0xa8], 5
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp dword [esp + 0x2c], 1
jne 0x40477b
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x418470]
push 0
push eax
push 5
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, dword [0x418470]
push eax
push eax
lea ecx, [esp + 0x9c]
push str.cmd__c__for__l___a_in__1_1_10__do__if_exist___s____ping__n_3_127.0.0.1__del___s____else_exit__
push ecx
call fcn.00405022
push 0x40
lea edx, [esp + 0x68]
push 0
push edx
mov dword [esp + 0x6c], 0x44
call fcn.004050a0
add esp, 0x1c
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x54]
push ecx
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea edx, [esp + 0xb4]
push edx
push 0
mov dword [esp + 0x5c], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [esp + 0x34]
push eax
call ebx
mov ecx, dword [esp + 0x38]
push ecx
call ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x298
ret 0x10