Function at 0x405ab0
Capabilities:
Delete file
Get common file path
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x40a67b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x32c
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.00404360
mov ecx, dword [esp + 0x358]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x344], eax
mov dword [esp + 0x30], 0x80000002
mov dword [esp + 0x34], 0x80000001
mov dword [esp + 0x1c], eax
je 0x406042
lea eax, [esp + 0x3c]
push 0xff
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x405ca2
mov edi, 0x40df10
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0xffffffffffffffff
push eax
and ecx, 3
lea eax, [esp + 0x48]
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.00404ed0
add esp, 0x10
test eax, eax
je 0x405b72
push 0x1f4
call ebp
lea ecx, [esp + 0x3c]
push ecx
call ebx
lea edx, [esp + 0x3c]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll_strrchr]
mov edx, eax
mov edi, 0x40df00
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 0xffffffffffffffff
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x50]
push ecx
call fcn.00404ed0
add esp, 0x18
test eax, eax
je 0x405bc8
push 0x1f4
call ebp
lea edx, [esp + 0x3c]
push edx
call ebx
lea eax, [esp + 0x3c]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
mov edx, eax
mov edi, 0x40def0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 0xffffffffffffffff
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x50]
push ecx
call fcn.00404ed0
add esp, 0x18
test eax, eax
je 0x405c1e
push 0x1f4
call ebp
lea edx, [esp + 0x3c]
push edx
call ebx
push 0
call fcn.00404650
add esp, 4
cmp eax, 0x14
jl 0x405ca2
lea eax, [esp + 0x3c]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
mov edx, eax
mov edi, 0x40dee0
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
lea ecx, [esp + 0x3c]
push ecx
call fcn.00405050
add esp, 4
test eax, eax
je 0x405ca2
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x44]
push 0
push edx
call fcn.00404ed0
add esp, 0x10
push 0xc8
call ebp
lea eax, [esp + 0x3c]
push eax
call ebx
inc esi
cmp esi, 0x14
jl 0x405c6a
lea ecx, [esp + 0x3c]
push 0xff
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x406042
mov edi, 0x40df10
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0xffffffffffffffff
push eax
and ecx, 3
lea eax, [esp + 0x48]
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.00404ed0
add esp, 0x10
test eax, eax
je 0x405d04
push 0x1f4
call ebp
lea ecx, [esp + 0x3c]
push ecx
call ebx
lea edx, [esp + 0x3c]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll_strrchr]
mov edx, eax
mov edi, 0x40df00
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 0xffffffffffffffff
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x50]
push ecx
call fcn.00404ed0
add esp, 0x18
test eax, eax
je 0x405d5a
push 0x1f4
call ebp
lea edx, [esp + 0x3c]
push edx
call ebx
lea eax, [esp + 0x3c]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
mov edx, eax
mov edi, 0x40ded0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 0xffffffffffffffff
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x50]
push ecx
call fcn.00404ed0
add esp, 0x18
test eax, eax
je 0x405db0
push 0x1f4
call ebp
lea edx, [esp + 0x3c]
push edx
call ebx
lea eax, [esp + 0x3c]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
mov edx, eax
mov edi, 0x40dec0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 0xffffffffffffffff
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x50]
push ecx
call fcn.00404ed0
add esp, 0x18
test eax, eax
je 0x405e06
push 0x1f4
call ebp
lea edx, [esp + 0x3c]
push edx
call ebx
lea eax, [esp + 0x3c]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
mov edx, eax
mov edi, 0x40deb0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 0xffffffffffffffff
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x50]
push ecx
call fcn.00404ed0
add esp, 0x18
test eax, eax
je 0x405e5c
push 0x1f4
call ebp
lea edx, [esp + 0x3c]
push edx
call ebx
lea eax, [esp + 0x3c]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
mov edx, eax
mov edi, 0x40dea0
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3c]
push ecx
call ebx
lea edx, [esp + 0x3c]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll_strrchr]
mov edx, eax
mov edi, 0x40de90
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3c]
push ecx
call ebx
lea edx, [esp + 0x3c]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll_strrchr]
mov edx, eax
mov edi, 0x40de80
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3c]
push ecx
call ebx
lea edx, [esp + 0x3c]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
mov edx, eax
or ecx, 0xffffffff
mov edi, 0x40de70
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3c]
push ecx
call ebx
lea edx, [esp + 0x3c]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll_strrchr]
mov edx, eax
mov edi, 0x40de68
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3c]
push ecx
call ebx
lea edx, [esp + 0x3c]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll_strrchr]
mov edx, eax
mov edi, 0x40de58
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3c]
push ecx
call ebx
push 0
call fcn.00404650
add esp, 4
cmp eax, 0x14
jge 0x406042
lea edx, [esp + 0x3c]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll_strrchr]
mov edx, eax
mov edi, 0x40dee0
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
lea ecx, [esp + 0x3c]
push ecx
call fcn.00405050
add esp, 4
test eax, eax
je 0x406042
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x44]
push 0
push edx
call fcn.00404ed0
add esp, 0x10
push 0xc8
call ebp
lea eax, [esp + 0x3c]
push eax
call ebx
inc esi
cmp esi, 0x14
jl 0x40600a
mov ebp, dword [esp + 0x350]
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x20]
mov esi, 0x40d597
mov dword [esp + 0x28], esi
mov eax, dword [edx]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x2c]
push 0xf003f
push esi
push ecx
lea ecx, [esp + 0x1c]
call fcn.004044b0
test eax, eax
jne 0x406353
mov eax, dword [esp + 0x358]
test eax, eax
je 0x406165
push 0
lea ecx, [esp + 0x14]
call fcn.00404410
push 0x40de4c
lea ecx, [esp + 0x14]
call fcn.00404410
push 0x40de40
lea ecx, [esp + 0x14]
call fcn.00404410
push 0x40de34
lea ecx, [esp + 0x14]
call fcn.00404410
push 0x40de2c
lea ecx, [esp + 0x14]
call fcn.00404410
push 0x40de24
lea ecx, [esp + 0x14]
call fcn.00404410
push 0x40de14
lea ecx, [esp + 0x14]
call fcn.00404410
push 0x40de04
lea ecx, [esp + 0x14]
call fcn.00404410
push 0x40ddf4
lea ecx, [esp + 0x14]
call fcn.00404410
push 0x40dde8
lea ecx, [esp + 0x14]
call fcn.00404410
push 0x40dddc
lea ecx, [esp + 0x14]
call fcn.00404410
push 0x40ddcc
lea ecx, [esp + 0x14]
call fcn.00404410
test eax, eax
je 0x406152
push 0x40ddc0
lea ecx, [esp + 0x14]
call fcn.00404410
test eax, eax
jne 0x406165
push 0x40ddc0
push 0x40ddcc
lea ecx, [esp + 0x18]
call fcn.00404610
test ebp, ebp
je 0x40632d
lea edx, [esp + 0x3c]
push 0xff
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x3c]
push ecx
push eax
push ebp
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x4061c5
mov ebx, dword [sym.imp.MSVCRT.dll_strrchr]
push 0x5c
push ebp
call ebx
add esp, 8
test eax, eax
je 0x4061cb
push 0x5c
push ebp
call ebx
mov edi, eax
add esp, 8
inc edi
lea edx, [esp + 0x13c]
jmp 0x4061d4
mov ebx, dword [sym.imp.MSVCRT.dll_strrchr]
lea edx, [esp + 0x13c]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 0x40d238
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14c]
push ecx
call fcn.00402500
add esp, 0x14
test eax, eax
je 0x40622e
push 1
push 0
push 0
lea edx, [esp + 0x148]
push 0x40d238
push edx
call fcn.00402500
add esp, 0x14
mov byte [eax], 0
mov edi, dword [esp + 0x34c]
test edi, edi
jne 0x40629a
push 0x5c
push ebp
call ebx
add esp, 8
test eax, eax
je 0x406256
push 0x5c
push ebp
call ebx
mov edi, eax
add esp, 8
inc edi
lea edx, [esp + 0x3c]
jmp 0x40625c
lea edx, [esp + 0x3c]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x2e
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x40]
push ecx
call ebx
add esp, 8
test eax, eax
je 0x4062bb
lea edx, [esp + 0x3c]
push 0x2e
push edx
call ebx
add esp, 8
mov byte [eax], 0
jmp 0x4062bb
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x3c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x38]
lea edx, [esp + 0x3c]
push ecx
lea eax, [esp + 0x240]
push edx
push eax
lea ecx, [esp + 0x1c]
call fcn.00404550
test eax, eax
jne 0x406301
lea ecx, [esp + 0x23c]
lea edx, [esp + 0x13c]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x406301
mov dword [esp + 0x1c], 0xffffffff
jmp 0x406346
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x13c]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00404610
test eax, eax
jne 0x406346
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x406346
mov dword [esp + 0x1c], 1
jmp 0x406346
mov edx, dword [esp + 0x34c]
lea ecx, [esp + 0x10]
push edx
mov dword [esp + 0x20], 1
call fcn.00404410
lea ecx, [esp + 0x10]
call fcn.00404430
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x354]
test eax, eax
je 0x40638e
add esi, 0x37
cmp esi, 0x40d605
mov dword [esp + 0x28], esi
jl 0x40606c
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
inc eax
add edx, 4
cmp eax, 2
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
jl 0x406059
lea ecx, [esp + 0x10]
mov dword [esp + 0x344], 0xffffffff
call fcn.004043a0
mov ecx, dword [esp + 0x33c]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x338
ret