Function at 0x408f60
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b9f87
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x415c
call fcn.0047dc30
mov eax, dword [0x4e6f00]
xor eax, esp
mov dword [esp + 0x4158], eax
push ebx
push esi
push edi
mov eax, dword [0x4e6f00]
xor eax, esp
push eax
lea eax, [esp + 0x4170]
mov dword fs:[0], eax
call fcn.0045e1ec
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x408fc1
push 0x80004005
call fcn.004011a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov dword [esp + 0x4178], ebx
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x105
or eax, ecx
jge 0x408ffe
push 0x105
lea ecx, [esp + 0x18]
call fcn.00401220
mov esi, dword [esp + 0x14]
push 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp esi, ebx
jne 0x409013
xor eax, eax
jmp 0x409029
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x409018
sub eax, edx
js 0x40936d
cmp eax, dword [esi - 8]
jg 0x40936d
mov dword [esi - 0xc], eax
lea edi, [esp + 0x14]
mov byte [eax + esi], bl
call fcn.00409410
mov esi, dword [esp + 0x14]
push 0x5c
push esi
call fcn.00479cdb
add esp, 8
cmp eax, ebx
jne 0x409059
or eax, 0xffffffff
jmp 0x40905b
sub eax, esi
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00409470
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x417c], 1
call fcn.00410ce0
mov byte [esp + 0x4178], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4090a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
push 0x5c
push esi
call fcn.00479cdb
add esp, 8
cmp eax, ebx
jne 0x4090bb
or eax, 0xffffffff
jmp 0x4090bd
sub eax, esi
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00409470
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x417c], 2
call fcn.00410ce0
mov byte [esp + 0x4178], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409105
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
push 0xf003f
push ebx
push str.SoftwareMicrosoftWindowsShellNoRoamMUICache
push 0x80000001
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40931e
push 0x103
lea edx, [esp + 0x61]
push ebx
push edx
mov byte [esp + 0x68], bl
call fcn.0047c580
add esp, 0xc
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x3c]
push ebx
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x84]
push eax
push ecx
mov dword [esp + 0x68], 0x104
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x64], 0x3fff
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x4178], 3
xor edi, edi
cmp dword [esp + 0x18], ebx
jbe 0x409297
mov ecx, dword [esp + 0x1c]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x178]
push eax
push edi
push ecx
mov dword [esp + 0x54], 0x3fff
mov byte [esp + 0x184], bl
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, ebx
jne 0x409282
lea edx, [esp + 0x164]
push edx
call fcn.004a45b2
mov eax, dword [esp + 0x18]
add esp, 4
push eax
lea ecx, [esp + 0x168]
push ecx
call fcn.004791b4
add esp, 8
test eax, eax
jne 0x409232
lea edx, [esp + 0x164]
push str.cabalrider
push edx
call fcn.004791b4
add esp, 8
test eax, eax
je 0x409282
lea eax, [esp + 0x164]
push eax
lea ecx, [esp + 0x34]
call fcn.00410dd0
lea ebx, [esp + 0x30]
lea esi, [esp + 0x20]
mov byte [esp + 0x4178], 4
call fcn.0040a080
mov byte [esp + 0x4178], 3
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409280
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
add edi, 1
cmp edi, dword [esp + 0x18]
jb 0x4091bc
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
xor esi, esi
nop
cmp ecx, ebx
je 0x4092c7
mov eax, edx
sub eax, ecx
sar eax, 2
cmp esi, eax
jae 0x4092c7
mov ecx, dword [ecx + esi*4]
mov edx, dword [esp + 0x1c]
push ecx
push edx
call edi
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
add esi, 1
jmp 0x4092a0
cmp ecx, ebx
mov byte [esp + 0x4178], bl
je 0x409312
cmp ecx, edx
mov edi, edx
mov esi, ecx
je 0x409309
lea ebx, [ebx]
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4092fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x4092e0
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00457af4
add esp, 4
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x4178], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409349
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x4170]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4158]
xor ecx, esp
call fcn.00477f65
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004011a0
int3