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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 5
mov dword [ebp - 0x2c], 0xc
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x44], ecx
cmp dword [ebp - 0x44], 6
ja case.default.0x4053ed
mov edx, dword [ebp - 0x44]
jmp dword [edx*4 + 0x405b60]
push 4
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00405eb0
movzx ecx, al
test ecx, ecx
jne 0x40540e
jmp 0x4054c1
mov edx, dword [ebp - 0xc]
push edx
call fcn.00402ab0
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40543a
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00405eb0
movzx edx, al
test edx, edx
jne 0x40543f
jmp 0x4054c1
mov eax, dword [ebp - 0x14]
push eax
call fcn.00405320
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x405490
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 0x405490
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24], 1
push 0xc
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00405f60
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x1c], ecx
push 4
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00405f60
jmp 0x405b11
push 0xc
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00405f60
jmp 0x405b11
push 4
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00405eb0
movzx edx, al
test edx, edx
jne 0x4054ee
jmp 0x4055d2
mov eax, dword [ebp - 0xc]
push eax
call fcn.00402ab0
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40551a
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp + 8]
call fcn.00405eb0
movzx eax, al
test eax, eax
jne 0x40551f
jmp 0x4055d2
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00405320
add esp, 4
movzx edx, al
test edx, edx
je 0x4055a1
cmp dword [0x434f64], 0
jne 0x40556f
push str.Advapi32.dll
call fcn.00406000
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x40556f
push str.RegDeleteKeyExA
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x434f64], eax
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x434f64], 0
je 0x4055a1
push 0
push 0x200
mov edx, dword [ebp - 0x14]
push edx
push 0x80000002
call dword [0x434f64]
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 4], eax
jne 0x4055a1
mov dword [ebp - 0x24], 1
push 0xc
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00405f60
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x1c], ecx
push 4
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00405f60
jmp 0x405b11
push 0xc
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00405f60
jmp 0x405b11
push 4
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00405eb0
movzx edx, al
test edx, edx
jne 0x4055ff
jmp 0x405781
mov eax, dword [ebp - 0xc]
push eax
call fcn.00402ab0
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40562b
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp + 8]
call fcn.00405eb0
movzx eax, al
test eax, eax
jne 0x405630
jmp 0x405781
push 4
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00405eb0
movzx edx, al
test edx, edx
jne 0x40564a
jmp 0x405781
mov eax, dword [ebp - 0xc]
push eax
call fcn.00402ab0
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x405676
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp + 8]
call fcn.00405eb0
movzx eax, al
test eax, eax
jne 0x40567b
jmp 0x405781
push 4
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00405eb0
movzx edx, al
test edx, edx
jne 0x405695
jmp 0x405781
mov eax, dword [ebp - 0xc]
push eax
call fcn.00402ab0
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4056c1
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov ecx, dword [ebp + 8]
call fcn.00405eb0
movzx eax, al
test eax, eax
jne 0x4056c6
jmp 0x405781
push 4
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00405eb0
movzx edx, al
test edx, edx
jne 0x4056e0
jmp 0x405781
mov eax, dword [ebp - 0x14]
push eax
call fcn.00405340
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x405750
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 0x405750
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x1c]
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 - 0x24], 1
push 0xc
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00405f60
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
push 4
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00405f60
jmp 0x405b11
push 0xc
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00405f60
jmp 0x405b11
push 4
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00405eb0
movzx ecx, al
test ecx, ecx
jne 0x4057ae
jmp 0x4058bd
mov edx, dword [ebp - 0xc]
push edx
call fcn.00402ab0
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4057da
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00405eb0
movzx edx, al
test edx, edx
jne 0x4057df
jmp 0x4058bd
push 4
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00405eb0
movzx ecx, al
test ecx, ecx
jne 0x4057f9
jmp 0x4058bd
mov edx, dword [ebp - 0xc]
push edx
call fcn.00402ab0
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x405825
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00405eb0
movzx edx, al
test edx, edx
jne 0x40582a
jmp 0x4058bd
mov eax, dword [ebp - 0x14]
push eax
call fcn.00405340
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x40588c
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 0x40588c
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 - 0x24], 1
push 0xc
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00405f60
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
push 4
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00405f60
jmp 0x405b11
push 0xc
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00405f60
jmp 0x405b11
push 4
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00405eb0
movzx ecx, al
test ecx, ecx
jne 0x4058ea
jmp 0x405a39
cmp dword [ebp - 0x1c], 0
jne 0x405955
push 0x1f4
mov edx, dword [0x435fd4]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movzx eax, byte [0x434f58]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x24], 1
push 0xc
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00405f60
push 4
lea edx, [ebp - 0xc]
push edx
mov ecx, dword [ebp + 8]
call fcn.00405f60
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00405f60
jmp 0x405b11
cmp dword [0x434f50], 0
je 0x405a24
mov dword [ebp - 0x34], 0
jmp 0x405974
mov edx, dword [ebp - 0x34]
add edx, 1
mov dword [ebp - 0x34], edx
mov eax, dword [0x434f54]
shr eax, 4
cmp dword [ebp - 0x34], eax
jae 0x405a22
mov ecx, dword [ebp - 0x34]
shl ecx, 4
mov edx, dword [0x434f50]
mov eax, dword [edx + ecx]
cmp eax, dword [ebp - 0x1c]
jne 0x405a1d
mov ecx, dword [ebp - 0x34]
shl ecx, 4
mov edx, dword [0x434f50]
cmp dword [edx + ecx + 8], 0
je 0x405a05
mov eax, dword [ebp - 0x34]
shl eax, 4
mov ecx, dword [0x434f50]
mov edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x24], 1
push 0xc
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00405f60
push 4
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00405f60
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x34]
shl eax, 4
mov ecx, dword [0x434f50]
mov edx, dword [ecx + eax + 8]
push edx
mov ecx, dword [ebp + 8]
call fcn.00405f60
jmp 0x405a13
push 0xc
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00405f60
jmp 0x405b11
jmp 0x40596b
jmp 0x405a32
push 0xc
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00405f60
jmp 0x405a39
push 0xc
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00405f60
jmp 0x405b11
cmp dword [0x434f5c], 0
je 0x405a8a
mov eax, dword [0x434f5c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], 1
push 0xc
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00405f60
push 4
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00405f60
jmp 0x405b11
jmp 0x405a8e
push 0xc
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00405f60
jmp 0x405b11
push 4
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00405eb0
movzx edx, al
test edx, edx
jne 0x405ab5
jmp 0x405af3
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00405150
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], 1
push 0xc
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00405f60
mov edx, dword [ebp - 4]
mov dword [ebp - 0x1c], edx
push 4
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00405f60
jmp 0x405b11
push 0xc
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00405f60
jmp 0x405b11
push 0xc
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00405f60
cmp dword [ebp - 0x14], 0
je 0x405b29
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.00408e27
add esp, 4
cmp dword [ebp - 0x18], 0
je 0x405b41
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00408e27
add esp, 4
cmp dword [ebp - 0x20], 0
je 0x405b59
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
push edx
call fcn.00408e27
add esp, 4
mov esp, ebp
pop ebp
ret