Function at 0x408f50
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 0x4bd427
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x415c
call fcn.00481100
mov eax, dword [0x4eaf00]
xor eax, esp
mov dword [esp + 0x4158], eax
push ebx
push esi
push edi
mov eax, dword [0x4eaf00]
xor eax, esp
push eax
lea eax, [esp + 0x4170]
mov dword fs:[0], eax
call fcn.004616e0
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x408fb1
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 0x408fee
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 0x409003
xor eax, eax
jmp 0x409019
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x409008
sub eax, edx
js 0x40935d
cmp eax, dword [esi - 8]
jg 0x40935d
mov dword [esi - 0xc], eax
lea edi, [esp + 0x14]
mov byte [eax + esi], bl
call fcn.00409400
mov esi, dword [esp + 0x14]
push 0x5c
push esi
call fcn.0047d1ab
add esp, 8
cmp eax, ebx
jne 0x409049
or eax, 0xffffffff
jmp 0x40904b
sub eax, esi
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00409460
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x417c], 1
call fcn.00410910
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 0x409093
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.0047d1ab
add esp, 8
cmp eax, ebx
jne 0x4090ab
or eax, 0xffffffff
jmp 0x4090ad
sub eax, esi
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00409460
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x417c], 2
call fcn.00410910
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 0x4090f5
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 SysReAllocStringLen
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40930e
push 0x103
lea edx, [esp + 0x61]
push ebx
push edx
mov byte [esp + 0x68], bl
call fcn.0047fa50
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 0x409287
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 0x409272
lea edx, [esp + 0x164]
push edx
call fcn.004a7ab2
mov eax, dword [esp + 0x18]
add esp, 4
push eax
lea ecx, [esp + 0x168]
push ecx
call fcn.0047c684
add esp, 8
test eax, eax
jne 0x409222
lea edx, [esp + 0x164]
push str.cabalrider
push edx
call fcn.0047c684
add esp, 8
test eax, eax
je 0x409272
lea eax, [esp + 0x164]
push eax
lea ecx, [esp + 0x34]
call fcn.00410a00
lea ebx, [esp + 0x30]
lea esi, [esp + 0x20]
mov byte [esp + 0x4178], 4
call fcn.0040a060
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 0x409270
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 0x4091ac
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 0x4092b7
mov eax, edx
sub eax, ecx
sar eax, 2
cmp esi, eax
jae 0x4092b7
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 0x409290
cmp ecx, ebx
mov byte [esp + 0x4178], bl
je 0x409302
cmp ecx, edx
mov edi, edx
mov esi, ecx
je 0x4092f9
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 0x4092ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x4092d0
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0045afe4
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 0x409339
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.0047b434
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004011a0
int3