Function at 0x404460
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x56c]
sub esp, 0x56c
push 0xffffffffffffffff
push 0x55dfa0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5b9e84]
xor eax, ebp
mov dword [ebp + 0x568], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea esi, [ebx + 0xac]
push esi
lea ecx, [ebp + 0x140]
call fcn.00403f50
push 0x5c
lea ecx, [ebp + 0x140]
mov dword [ebp - 4], 0
call fcn.00406570
push 0xa
push str.UNINST.EXE
lea ecx, [ebp + 0x140]
call fcn.00403720
cmp dword [ebp + 0x154], 0x10
lea ecx, [ebp]
lea eax, [ebp + 0x140]
cmovae eax, dword [ebp + 0x140]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x404501
mov esi, 1
jmp 0x40480b
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x104
lea eax, [ebp + 0x158]
mov dword [ebp - 0x10], 0
push 0
push eax
call fcn.00541c90
push 0x104
lea eax, [ebp + 0x25c]
push 0
push eax
call fcn.00541c90
push 0x104
lea eax, [ebp + 0x464]
push 0
push eax
call fcn.00541c90
add esp, 0x24
cmp dword [esi + 0x14], 0x10
jb 0x404553
mov esi, dword [esi]
lea ecx, [ebp + 0x158]
sub ecx, esi
nop dword [eax + eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x404560
lea edi, [ebp + 0x158]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x404574
mov ax, word [0x57042c]
mov word [edi], ax
lea eax, [ebp + 0x464]
push str.command.com__c_del
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x104
lea eax, [ebp + 0x25c]
push eax
lea eax, [ebp + 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp + 0x25c]
push eax
lea eax, [ebp + 0x464]
push eax
call esi
push str.UNINST.EXE
lea eax, [ebp + 0x464]
push eax
call esi
mov esi, 1
nop dword [eax + eax]
push esi
push str.UNINST
lea eax, [ebp + 0x360]
push str._s_u
push eax
call fcn.00403a40
add esp, 0x10
lea eax, [ebp + 0x360]
mov ecx, ebx
inc esi
push eax
call fcn.00405760
test eax, eax
jne 0x4045e0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x404640
mov esi, 2
jmp 0x40480b
lea eax, [ebp + 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp + 0x464]
push eax
push 1
push 0
lea eax, [ebp + 0x360]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x404678
mov esi, 2
jmp 0x40480b
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebx + 0xd0]
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov eax, 0x2aaaaaab
mov ecx, dword [ebx + 0xd4]
mov esi, 2
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x404809
xor eax, eax
mov dword [ebp - 0x14], eax
nop
add eax, edi
cmp dword [eax + 0x14], 0x10
jb 0x4046ca
mov eax, dword [eax]
lea ecx, [ebp]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4047d1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.command.com__c_rmdir
lea eax, [ebp + 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebx + 0xd0]
mov edi, dword [ebp - 0x14]
add eax, edi
cmp dword [eax + 0x14], 0x10
jb 0x40470a
mov eax, dword [eax]
push 0x104
lea ecx, [ebp + 0x25c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [ebp + 0x25c]
push eax
lea eax, [ebp + 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
push str.UNINST
lea eax, [ebp + 0x360]
push str._s_u
push eax
call fcn.00403a40
add esp, 0x10
lea eax, [ebp + 0x360]
mov ecx, ebx
inc esi
push eax
call fcn.00405760
test eax, eax
jne 0x404731
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40466e
lea eax, [ebp + 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp + 0x464]
push eax
push 1
push 0
lea eax, [ebp + 0x360]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40466e
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4047d4
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebx + 0xd4]
add edi, 0x18
inc dword [ebp - 0x18]
mov eax, 0x2aaaaaab
mov dword [ebp - 0x14], edi
mov edi, dword [ebx + 0xd0]
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x18], eax
jae 0x404809
mov eax, dword [ebp - 0x14]
jmp 0x4046c0
xor esi, esi
mov edx, dword [ebp + 0x154]
cmp edx, 0x10
jb 0x404841
mov ecx, dword [ebp + 0x140]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404837
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404866
push edx
push ecx
call fcn.0053fc3e
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x568]
xor ecx, ebp
call fcn.0053fe9d
lea esp, [ebp + 0x56c]
pop ebp
ret
call fcn.0054457a
int3