Function at 0x419cf1
Capabilities:
Check if file exists
Delete file
Delete registry value
Get file attributes
Persist via run registry key

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x160
push ebx
push esi
push edi
xor eax, eax
mov esi, ecx
mov edi, 0x46d5d8
push edi
lea ecx, [ebp + 0x64]
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x34], eax
mov dword [ebp + 0x38], eax
call fcn.0040537a
push edi
lea ecx, [ebp + 0x70]
call fcn.0040537a
push edi
lea ecx, [ebp + 0x68]
call fcn.0040537a
mov ecx, esi
call fcn.00414245
mov ecx, dword [esi + 0x74]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp + 0x54], eax
test ecx, ecx
jne 0x419d4b
test eax, eax
je 0x419e75
and dword [ebp + 0x58], 0
and dword [ebp + 0x5c], 0
push 0x2001f
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp + 0x58]
call fcn.0040a8a2
test eax, eax
jne 0x419d98
and dword [ebp + 0x48], eax
lea eax, [ebp + 0x48]
push eax
push 0
push str.RSEDown
lea ecx, [ebp + 0x58]
call fcn.0040dd25
cmp dword [ebp + 0x48], 0
jbe 0x419d98
push str.RSEDown
push dword [ebp + 0x58]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp dword [ebp + 0x54], 0
je 0x419e2f
push dword [esi + 0xac]
lea eax, [ebp + 0x64]
push dword [esi + 0xb0]
push 4
push dword [esi + 0xa4]
push str.KeyRSEInstallPopv1_sv2_dv3_dv4_dv50
push eax
call fcn.00405d66
lea eax, [ebp + 0x70]
push 0x45d805
push eax
call fcn.00405d66
add esp, 0x20
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x64]
push eax
mov ecx, esi
call fcn.0041244b
lea eax, [ebp + 0x70]
push eax
lea eax, [esi + 0x94]
push eax
lea eax, [ebp + 0x2c]
push eax
call fcn.004125ad
add esp, 0xc
push eax
lea ecx, [ebp + 0x68]
call fcn.00405bd7
mov ecx, dword [ebp + 0x2c]
add ecx, 0xfffffff0
call fcn.00404f7d
lea eax, [esi + 0xa4]
push eax
lea eax, [ebp + 0x30]
push eax
push dword [ebp + 0x68]
call fcn.0041d600
add esp, 0xc
mov dword [0x46cd68], 1
push dword [esi + 0x88]
call ebx
cmp eax, 0xffffffff
je 0x419e48
push dword [esi + 0x88]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [esi + 0x7c]
call ebx
cmp eax, 0xffffffff
je 0x419e5b
push dword [esi + 0x7c]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 1
push dword [esi + 0x84]
call fcn.0041d889
add esp, 0xc
lea ecx, [ebp + 0x58]
call fcn.0040a82d
xor eax, eax
cmp dword [ebp + 0x7c], eax
je 0x41a100
cmp dword [ebp + 0x54], eax
jne 0x41a100
push dword [esi + 0x88]
mov dword [ebp + 0x6c], eax
call ebx
cmp eax, 0xffffffff
je 0x419f0f
push dword [esi + 0x88]
call ebx
test al, 0x10
jne 0x419f0f
push 1
lea ecx, [ebp - 0xec]
call fcn.00418f34
push 0x40
push 1
push dword [esi + 0x88]
lea ecx, [ebp - 0xec]
call fcn.00417750
mov eax, dword [ebp - 0xec]
mov eax, dword [eax + 4]
lea eax, [ebp + eax - 0xec]
mov ecx, dword [eax + 8]
and cl, 6
movsx ecx, cl
neg ecx
sbb ecx, ecx
not ecx
test eax, ecx
je 0x419f04
lea eax, [ebp + 0x6c]
push eax
lea ecx, [ebp - 0xec]
call fcn.00419835
lea ecx, [ebp - 0xec]
call fcn.0041557e
lea ecx, [ebp - 0xec]
call fcn.00416d71
inc dword [ebp + 0x6c]
cmp dword [ebp + 0x6c], 1
je 0x41a041
cmp dword [ebp + 0x6c], 2
je 0x41a041
push 0x2001f
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
xor edi, edi
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp + 0x4c]
mov dword [ebp + 0x4c], edi
mov dword [ebp + 0x50], edi
call fcn.0040a8a2
test eax, eax
jne 0x419f6f
lea eax, [ebp + 0x44]
push eax
push edi
mov dword [ebp + 0x44], edi
mov edi, str.RSEDown
push edi
lea ecx, [ebp + 0x4c]
call fcn.0040dd25
cmp dword [ebp + 0x44], 0
jbe 0x419f6f
push edi
push dword [ebp + 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [esi + 0xac]
lea edi, [esi + 0xa4]
push dword [esi + 0xb0]
lea eax, [ebp + 0x64]
push 6
push dword [edi]
push str.KeyRSEInstallPopv1_sv2_dv3_dv4_dv50
push eax
call fcn.00405d66
lea eax, [ebp + 0x70]
push 0x45d805
push eax
call fcn.00405d66
add esp, 0x20
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x64]
push eax
mov ecx, esi
call fcn.0041244b
lea eax, [ebp + 0x70]
push eax
lea eax, [esi + 0x94]
push eax
lea eax, [ebp + 0x28]
push eax
call fcn.004125ad
add esp, 0xc
push eax
lea ecx, [ebp + 0x68]
call fcn.00405bd7
mov ecx, dword [ebp + 0x28]
add ecx, 0xfffffff0
call fcn.00404f7d
push edi
lea eax, [ebp + 0x30]
push eax
push dword [ebp + 0x68]
call fcn.0041d600
xor edi, edi
add esp, 0xc
inc edi
mov dword [0x46cd68], edi
push dword [esi + 0x88]
call ebx
cmp eax, 0xffffffff
je 0x41a010
push dword [esi + 0x88]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [esi + 0x7c]
call ebx
cmp eax, 0xffffffff
je 0x41a023
push dword [esi + 0x7c]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push edi
push dword [esi + 0x84]
call fcn.0041d889
add esp, 0xc
lea ecx, [ebp + 0x4c]
call fcn.0040a82d
jmp 0x41a100
xor eax, eax
cmp dword [esi + 0x8c], eax
je 0x41a0ac
push 0x2001f
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp + 0x3c]
mov dword [ebp + 0x3c], eax
mov dword [ebp + 0x40], eax
call fcn.0040a8a2
test eax, eax
jne 0x41a0a4
push edi
lea ecx, [ebp + 0x60]
call fcn.0040537a
push dword [esi + 0x78]
lea eax, [ebp + 0x60]
push str.__s___auto
push eax
call fcn.00405d66
mov edi, dword [ebp + 0x60]
add esp, 0xc
push 1
push edi
push str.RSEDown
lea ecx, [ebp + 0x3c]
call fcn.0040a8fd
lea ecx, [edi - 0x10]
call fcn.00404f7d
lea ecx, [ebp + 0x3c]
call fcn.0040a82d
push 1
lea ecx, [ebp - 0x60]
call fcn.00418f7c
push 0x40
push 2
push dword [esi + 0x88]
lea ecx, [ebp - 0x60]
call fcn.00417788
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + 4]
lea eax, [ebp + eax - 0x60]
mov ecx, dword [eax + 8]
and cl, 6
movsx ecx, cl
neg ecx
sbb ecx, ecx
not ecx
test eax, ecx
je 0x41a0f8
push dword [ebp + 0x6c]
lea ecx, [ebp - 0x60]
call fcn.004195e2
lea ecx, [ebp - 0x60]
call fcn.004155bd
lea ecx, [ebp - 0x60]
call fcn.00414bc8
mov esi, dword [esi + 0x68]
test esi, esi
je 0x41a117
push 0
push 6
push 0x7e8
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [ebp + 0x68]
add ecx, 0xfffffff0
call fcn.00404f7d
mov ecx, dword [ebp + 0x70]
add ecx, 0xfffffff0
call fcn.00404f7d
mov ecx, dword [ebp + 0x64]
add ecx, 0xfffffff0
call fcn.00404f7d
lea ecx, [ebp + 0x30]
call fcn.0040e9d9
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4