Function at 0x405b60
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 5
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x30], 0xc
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x48], ecx
cmp dword [ebp - 0x48], 6
ja case.default.0x405bb4
mov edx, dword [ebp - 0x48]
jmp dword [edx*4 + 0x40638c]
push 4
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.004066e0
movzx ecx, al
test ecx, ecx
jne 0x405bd5
jmp 0x405c95
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00402aa0
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x405c0a
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp + 8]
call fcn.004066e0
movzx eax, al
test eax, eax
jne 0x405c0f
jmp 0x405c95
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.004059d0
add esp, 8
movzx eax, al
test eax, eax
je 0x405c64
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push 0x2021f
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x405c64
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], 1
push 0xc
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp + 8]
call fcn.00406790
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
push 4
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406790
jmp 0x40633e
push 0xc
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp + 8]
call fcn.00406790
jmp 0x40633e
push 4
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.004066e0
movzx ecx, al
test ecx, ecx
jne 0x405cc2
jmp 0x405db3
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00402aa0
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x405cf7
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp + 8]
call fcn.004066e0
movzx eax, al
test eax, eax
jne 0x405cfc
jmp 0x405db3
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.004059d0
add esp, 8
movzx eax, al
test eax, eax
je 0x405d82
cmp dword [0x436f44], 0
jne 0x405d50
push str.Advapi32.dll
call fcn.00406830
add esp, 4
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x405d50
push str.RegDeleteKeyExA
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x436f44], eax
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x436f44], 0
je 0x405d82
push 0
push 0x200
mov eax, dword [ebp - 0x14]
push eax
push 0x80000002
call dword [0x436f44]
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 4], eax
jne 0x405d82
mov dword [ebp - 0x28], 1
push 0xc
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406790
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 4
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406790
jmp 0x40633e
push 0xc
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406790
jmp 0x40633e
push 4
lea edx, [ebp - 0xc]
push edx
mov ecx, dword [ebp + 8]
call fcn.004066e0
movzx eax, al
test eax, eax
jne 0x405de0
jmp 0x405f86
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00402aa0
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x405e15
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004066e0
movzx edx, al
test edx, edx
jne 0x405e1a
jmp 0x405f86
push 4
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.004066e0
movzx ecx, al
test ecx, ecx
jne 0x405e34
jmp 0x405f86
mov edx, dword [ebp - 0xc]
push edx
call fcn.00402aa0
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x405e60
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004066e0
movzx edx, al
test edx, edx
jne 0x405e65
jmp 0x405f86
push 4
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.004066e0
movzx ecx, al
test ecx, ecx
jne 0x405e7f
jmp 0x405f86
mov edx, dword [ebp - 0xc]
push edx
call fcn.00402aa0
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x405eab
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004066e0
movzx edx, al
test edx, edx
jne 0x405eb0
jmp 0x405f86
push 4
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
call fcn.004066e0
movzx ecx, al
test ecx, ecx
jne 0x405eca
jmp 0x405f86
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.00405b00
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x405f55
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.00405a50
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x405f55
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 8]
push eax
push 0
push 0x2021f
push 0
push 0
push 0
mov ecx, dword [ebp - 0x14]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x405f55
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
push 0
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], 1
push 0xc
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp + 8]
call fcn.00406790
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
push 4
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406790
jmp 0x40633e
push 0xc
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp + 8]
call fcn.00406790
jmp 0x40633e
push 4
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.004066e0
movzx ecx, al
test ecx, ecx
jne 0x405fb3
jmp 0x4060ea
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00402aa0
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x405fe8
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp + 8]
call fcn.004066e0
movzx eax, al
test eax, eax
jne 0x405fed
jmp 0x4060ea
push 4
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004066e0
movzx edx, al
test edx, edx
jne 0x406007
jmp 0x4060ea
mov eax, dword [ebp - 0xc]
push eax
call fcn.00402aa0
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x406033
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp + 8]
call fcn.004066e0
movzx eax, al
test eax, eax
jne 0x406038
jmp 0x4060ea
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.00405b00
add esp, 8
movzx eax, al
test eax, eax
je 0x4060b9
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.00405a90
add esp, 0xc
movzx ecx, al
test ecx, ecx
je 0x4060b9
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 8]
push eax
push 0
push 0x2021f
push 0
push 0
push 0
mov ecx, dword [ebp - 0x14]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4060b9
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], 1
push 0xc
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp + 8]
call fcn.00406790
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
push 4
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406790
jmp 0x40633e
push 0xc
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp + 8]
call fcn.00406790
jmp 0x40633e
push 4
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
call fcn.004066e0
movzx ecx, al
test ecx, ecx
jne 0x406117
jmp 0x406266
cmp dword [ebp - 0x20], 0
jne 0x406182
push 0x1f4
mov edx, dword [0x437fb4]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movzx eax, byte [0x436f38]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x28], 1
push 0xc
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406790
push 4
lea edx, [ebp - 0xc]
push edx
mov ecx, dword [ebp + 8]
call fcn.00406790
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406790
jmp 0x40633e
cmp dword [0x436f30], 0
je 0x406251
mov dword [ebp - 0x38], 0
jmp 0x4061a1
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [0x436f34]
shr eax, 4
cmp dword [ebp - 0x38], eax
jae 0x40624f
mov ecx, dword [ebp - 0x38]
shl ecx, 4
mov edx, dword [0x436f30]
mov eax, dword [edx + ecx]
cmp eax, dword [ebp - 0x20]
jne 0x40624a
mov ecx, dword [ebp - 0x38]
shl ecx, 4
mov edx, dword [0x436f30]
cmp dword [edx + ecx + 8], 0
je 0x406232
mov eax, dword [ebp - 0x38]
shl eax, 4
mov ecx, dword [0x436f30]
mov edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x28], 1
push 0xc
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406790
push 4
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406790
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x38]
shl eax, 4
mov ecx, dword [0x436f30]
mov edx, dword [ecx + eax + 8]
push edx
mov ecx, dword [ebp + 8]
call fcn.00406790
jmp 0x406240
push 0xc
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406790
jmp 0x40633e
jmp 0x406198
jmp 0x40625f
push 0xc
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406790
jmp 0x406266
push 0xc
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp + 8]
call fcn.00406790
jmp 0x40633e
cmp dword [0x436f3c], 0
je 0x4062b7
mov eax, dword [0x436f3c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], 1
push 0xc
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406790
push 4
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp + 8]
call fcn.00406790
jmp 0x40633e
jmp 0x4062bb
push 0xc
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406790
jmp 0x40633e
push 4
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004066e0
movzx edx, al
test edx, edx
jne 0x4062e2
jmp 0x406320
mov eax, dword [ebp - 0x20]
push eax
call fcn.004057f0
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], 1
push 0xc
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406790
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 4
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406790
jmp 0x40633e
push 0xc
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406790
jmp 0x40633e
push 0xc
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp + 8]
call fcn.00406790
cmp dword [ebp - 0x14], 0
je 0x406356
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00409657
add esp, 4
cmp dword [ebp - 0x18], 0
je 0x40636e
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
push eax
call fcn.00409657
add esp, 4
cmp dword [ebp - 0x24], 0
je 0x406386
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
push edx
call fcn.00409657
add esp, 4
mov esp, ebp
pop ebp
ret