Function at 0x411040
Capabilities:
Delete registry key
Delete registry value
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x4e1988
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x58], 0
mov esi, dword [esp + 0x60]
mov ebp, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test esi, esi
je 0x411080
push 0x4e94ac
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
jmp 0x4110b9
mov edi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push 0x4eb938
push 0x4e94ac
push closesocket
call edi
push str.ForAllUsers
push 0x4e94ac
push closesocket
call edi
push str.InstallPath
push 0x4e94ac
push closesocket
call edi
xor eax, eax
test esi, esi
setne al
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallMRA
add eax, 0x80000001
mov edi, eax
push edi
call ebp
lea ecx, [esp + 0x20]
push ecx
call fcn.0040ed10
add esp, 4
mov byte [esp + 0x58], 1
push 1
push 0x4e90cc
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00404a80
mov bl, 2
mov byte [esp + 0x68], bl
add esp, 4
mov ecx, esp
mov dword [esp + 0x6c], esp
push str.menu.dll
push eax
push ecx
call fcn.00404a80
add esp, 0xc
mov byte [esp + 0x64], 3
mov byte [esp + 0x64], bl
call fcn.0040e000
add esp, 0xc
mov byte [esp + 0x58], 1
lea ecx, [esp + 0x10]
call fcn.00417490
push 1
push 0x4e90cc
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00404a80
mov bl, 4
mov byte [esp + 0x68], bl
add esp, 4
mov ecx, esp
mov dword [esp + 0x6c], esp
push str.mrasearch.dll
push eax
push ecx
call fcn.00404a80
add esp, 0xc
mov byte [esp + 0x64], 5
mov byte [esp + 0x64], bl
call fcn.0040e000
add esp, 0xc
mov byte [esp + 0x58], 1
lea ecx, [esp + 0x10]
call fcn.00417490
push 1
sub esp, 8
mov ecx, esp
mov dword [esp + 0x6c], esp
push 0x4e9fdc
call fcn.00418470
mov byte [esp + 0x64], 6
push 0
push 0x4e90cc
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x58]
push eax
call fcn.00404a80
mov byte [esp + 0x74], 7
add esp, 4
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x4eb89c
push eax
push ecx
call fcn.00404a80
add esp, 0xc
mov byte [esp + 0x70], 8
lea edx, [esp + 0x50]
push edx
mov byte [esp + 0x74], 9
call fcn.0040ef30
add esp, 0x1c
mov byte [esp + 0x58], 0xb
lea ecx, [esp + 0x40]
call fcn.00417490
push esi
push 0x4e90cc
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x4c]
push ecx
call fcn.00404a80
mov bl, 0xc
mov byte [esp + 0x68], bl
add esp, 4
mov edx, esp
mov dword [esp + 0x6c], esp
lea ecx, [esp + 0x44]
push ecx
push eax
push edx
call fcn.0040f2e0
add esp, 0xc
mov byte [esp + 0x64], 0xd
mov byte [esp + 0x64], bl
call fcn.0040e000
add esp, 0xc
mov byte [esp + 0x58], 0xb
lea ecx, [esp + 0x40]
call fcn.00417490
lea edx, [esp + 0x28]
push edx
call fcn.0040ee20
add esp, 4
mov bl, 0xe
mov byte [esp + 0x58], bl
cmp dword [esp + 0x6c], 0
je 0x411320
mov eax, dword [esp + 0x28]
push 0x4eb898
push eax
call fcn.0041bf10
add esp, 8
test eax, eax
je 0x411294
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0041bd00
add esp, 4
test eax, eax
jne 0x411314
push str.cmd__C_rmdir__Q__S__
lea ecx, [esp + 0x4c]
call fcn.00418470
mov byte [esp + 0x58], 0xf
lea edx, [esp + 0x28]
push edx
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0040f2e0
mov byte [esp + 0x64], 0x10
push 0x4ea164
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.00404a80
mov byte [esp + 0x70], 0x11
mov eax, dword [eax]
push eax
push str.MAgentMenu
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push closesocket
call fcn.0040d570
add esp, 0x28
mov byte [esp + 0x58], 0x10
lea ecx, [esp + 0x40]
call fcn.00417490
mov byte [esp + 0x58], 0xf
lea ecx, [esp + 0x10]
call fcn.00417490
mov byte [esp + 0x58], bl
lea ecx, [esp + 0x48]
call fcn.00417490
push 0x4e94ac
push closesocket
call ebp
push 1
push esi
push 1
push 1
push 0
push 0x4e88c0
push 0x4e88c0
call fcn.00410540
add esp, 0x1c
test esi, esi
je 0x41135b
push 1
push 0
push 1
push 1
push 0
push 0x4e88c0
push 0x4e88c0
call fcn.00410540
add esp, 0x1c
push 0x4e88c0
lea ecx, [esp + 0x4c]
call fcn.00418470
mov byte [esp + 0x58], 0x12
push str.MAgent
push str.SoftwareMicrosoftWindowsCurrentVersionRun
test esi, esi
je 0x411383
push reloc.OLEAUT32.dll_SysReAllocString
jmp 0x411388
push closesocket
call fcn.0040d6b0
add esp, 0xc
mov byte [esp + 0x58], bl
lea ecx, [esp + 0x48]
call fcn.00417490
sub esp, 8
mov ecx, esp
mov dword [esp + 0x68], esp
push 0x4e88c0
call fcn.00418470
mov byte [esp + 0x60], 0x19
push esi
push 0
mov byte [esp + 0x68], bl
call fcn.0040fa80
add esp, 0x10
push str.SoftwareClassesmagent
push edi
call ebp
push 0x4eae68
call fcn.0042c6d0
push 0x4e90cc
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.00404a80
mov byte [esp + 0x68], 0x1a
push 0x4e90b4
push eax
lea ecx, [esp + 0x60]
push ecx
call fcn.00404a80
add esp, 0x1c
mov byte [esp + 0x58], 0x1b
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x34]
call fcn.00418470
mov byte [esp + 0x58], 0x1d
lea ecx, [esp + 0x48]
call fcn.00417490
mov byte [esp + 0x58], 0x1e
lea ecx, [esp + 0x40]
call fcn.00417490
mov edx, dword [esp + 0x30]
push edx
call fcn.0042a640
push ecx
mov ecx, esp
mov dword [esp + 0x68], esp
push 0x4e94ac
call fcn.00418470
mov byte [esp + 0x60], 0x1f
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x64], 0x1e
call fcn.0040f380
add esp, 0xc
mov byte [esp + 0x58], 0x20
test esi, esi
je 0x4114fd
sub esp, 8
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x74], esp
push edx
mov byte [esp + 0x6c], 0
lea esi, [esp + 0x6c]
call fcn.004176e0
mov byte [esp + 0x60], 0x21
mov byte [esp + 0x60], 0x20
mov edx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040d820
add esp, 8
test al, al
je 0x4114b8
cmp byte [esp + 0x60], 0
je 0x4114fd
mov eax, dword [esp + 0x18]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
jmp 0x4114fb
sub esp, 8
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x74], esp
push edx
lea esi, [esp + 0x6c]
call fcn.004176e0
mov byte [esp + 0x60], 0x22
mov byte [esp + 0x60], 0x20
mov edx, closesocket
call fcn.0040d820
add esp, 8
test al, al
je 0x4114fd
cmp byte [esp + 0x60], 0
je 0x4114fd
mov eax, dword [esp + 0x18]
push eax
push closesocket
call ebp
mov byte [esp + 0x58], 0x1e
lea ecx, [esp + 0x18]
call fcn.00417490
mov byte [esp + 0x58], bl
lea ecx, [esp + 0x30]
call fcn.00417490
mov byte [esp + 0x58], 0xb
lea ecx, [esp + 0x28]
call fcn.00417490
mov byte [esp + 0x58], 1
lea ecx, [esp + 0x38]
call fcn.00417490
mov byte [esp + 0x58], 0
lea ecx, [esp + 0x20]
call fcn.00417490
mov dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x64]
call fcn.00417490
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x4c
ret