Function at 0x4543d0
Capabilities:
Delete file
Delete registry key
Set registry value

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
call fcn.004542f0
test al, al
mov byte [0x4d6e74], al
je 0x454603
call fcn.00454320
call fcn.00454290
push 0
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
mov edi, str.._beeps
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, dword [sym.imp.MSVCRT.dll_rand]
mov eax, ecx
mov esi, edi
mov edi, 0x4d6f80
mov byte [esp + 0x1c], 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
mov dword [esp + 0x1d], ecx
mov dword [esp + 0x21], ecx
mov dword [esp + 0x25], ecx
mov dword [esp + 0x29], ecx
mov word [esp + 0x2d], cx
mov byte [esp + 0x2f], cl
call ebx
cdq
mov ecx, 3
mov esi, 0
idiv ecx
mov edi, edx
add edi, ecx
je 0x45447b
call ebx
cdq
mov ecx, 0x1a
idiv ecx
add dl, 0x61
mov byte [esp + esi + 0x1c], dl
inc esi
cmp esi, edi
jb 0x454465
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x4d6f80
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
lea eax, [esp + 0x10]
and ecx, 3
push eax
push str.SOFTWAREMicrosoft
push reloc.OLEAUT32.dll_SysReAllocString
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x454508
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push str.rename
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
push eax
push 1
push 0
push str.winio
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push 0x4d6f80
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp eax, 0xffffffff
mov dword [0x4d5108], eax
jne 0x4545a1
xor edi, edi
push 1
push 0x4d6e78
call fcn.004547c0
mov bl, al
test bl, bl
je 0x45457d
call fcn.004548a0
mov bl, al
test bl, bl
je 0x45457d
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push 0x4d6f80
call esi
test eax, eax
mov dword [0x4d5108], eax
je 0x45457d
cmp eax, 0xffffffff
jne 0x454583
inc edi
cmp edi, 4
jl 0x454539
push 0x4d6e78
call ebp
test bl, bl
je 0x454597
cmp dword [0x4d5108], 0xffffffff
jne 0x4545a1
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret
push 0x4d6e78
call ebp
mov ecx, dword [0x4d5108]
lea eax, [esp + 0x18]
push 0
push eax
push 0
push 0
push 0
push 0
push 0x8001200c
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4545d7
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret
mov edx, dword [esp + 0x10]
push str.rename
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov byte [0x4d6f7c], 1
mov al, 1
pop ebx
add esp, 0x20
ret
push 1
call fcn.00454760
push 0
push 0x4000000
push 1
push 0
push 0
push 0
push str..WINIO.VXD
mov dword [0x4d7084], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x4d5108], eax
jne 0x4545f2
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret