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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x1000
push 0
lea eax, [edi + 0x18]
push eax
call fcn.00432e30
push 0x1000
lea eax, [edi + 0x101c]
push 0
push eax
call fcn.00432e30
mov ebx, dword [esi + 0x10]
push ebx
mov dword [ebp + 8], ebx
call fcn.0040a160
push SysReAllocString
mov dword [ebp - 4], eax
call fcn.0040a160
add esp, 0x20
cmp dword [ebp - 4], eax
je 0x409520
push SysReAllocString
call fcn.0040a160
add esp, 4
cmp dword [ebp - 4], eax
je 0x40951d
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040a160
add esp, 4
cmp dword [ebp - 4], eax
je 0x40951d
push SysStringLen
call fcn.0040a160
add esp, 4
cmp dword [ebp - 4], eax
je 0x40951d
push SysStringLen
call fcn.0040a160
add esp, 4
cmp dword [ebp - 4], eax
je 0x40951d
push 0x80000050
call fcn.0040a160
add esp, 4
cmp dword [ebp - 4], eax
je 0x40951d
push 0x80000060
call fcn.0040a160
add esp, 4
cmp dword [ebp - 4], eax
je 0x40951d
push SysStringLen
call fcn.0040a160
add esp, 4
cmp dword [ebp - 4], eax
je 0x40951d
push reloc.OLEAUT32.dll_SysStringLen
call fcn.0040a160
add esp, 4
cmp dword [ebp - 4], eax
je 0x40951d
push 0x80000007
call fcn.0040a160
add esp, 4
cmp dword [ebp - 4], eax
je 0x40951d
mov eax, dword [esi + 0xc]
mov ecx, 0x4a0b6c
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp + 8]
mov dword [ebp - 0x48], ebx
push eax
call fcn.0040a0f0
mov eax, dword [ebp + 8]
cmp eax, dword [0x4a0b6c]
jne 0x40951a
mov dword [edi], 0
mov dword [edi + 0x2022], 6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [eax + 0x18]
mov dword [ebp + 8], ebx
mov eax, dword [esi + 0x18]
xor edx, edx
dec eax
cmp eax, 0xb
ja case.default.0x40952f
jmp dword [eax*4 + 0x409ad8]
lea eax, [ebp + 8]
push eax
push dword [esi + 0x624]
lea eax, [esi + 0x1c]
push dword [esi + 0x620]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, eax
xor ecx, ecx
test edx, edx
mov dword [ebp + 0xc], edx
sete cl
mov dword [edi], ecx
test edx, edx
jne case.default.0x40952f
push 2
push eax
push eax
lea eax, [ebp - 0x18]
push eax
push dword [esi + 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x4095ac
mov edx, dword [ebp - 0x18]
mov dword [edi + 0x2026], edx
mov dword [ebp - 0x54], edx
mov eax, dword [esi + 0xc]
mov ecx, 0x4a0b6c
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00409090
mov edx, dword [ebp + 0xc]
mov dword [edi + 0x2022], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp + 8]
push eax
push 0
push dword [esi + 0x624]
lea eax, [esi + 0x1c]
push dword [esi + 0x620]
push 0
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edx, eax
xor eax, eax
test edx, edx
mov dword [ebp + 0xc], edx
sete al
mov dword [edi], eax
test edx, edx
jne case.default.0x40952f
push 2
push edx
push edx
lea eax, [ebp - 0x18]
push eax
push dword [esi + 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x4095ac
mov ecx, dword [ebp - 0x18]
mov dword [edi + 0x2026], ecx
mov dword [ebp - 0x54], ecx
jmp 0x40958e
lea ecx, [esi + 0x1c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409627
mov eax, dword [esi + 0x61c]
sub ecx, edx
sar ecx, 1
jne 0x409655
push eax
lea eax, [esi + 0x41c]
push eax
push dword [esi + 0x620]
push 0
push 0
jmp 0x409719
test eax, eax
je 0x4096f3
xor edi, edi
nop
mov eax, edi
and eax, 0x8000000f
jns 0x409670
dec eax
or eax, 0xfffffff0
add eax, 1
mov dword [ebp - 0x18], eax
jne 0x40968e
push 0x4833c0
push edi
mov ecx, 0x4a0d68
call fcn.004091c0
push eax
call fcn.00402c50
add esp, 8
mov eax, dword [0x4a0d68]
push 0x4838cc
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 0x4a0d7c]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + 0x4a0d7c], eax
mov ecx, 0x4a0d68
movzx eax, byte [esi + edi + 0x41c]
push eax
call fcn.004091c0
push eax
call fcn.00402c50
add esp, 8
cmp dword [ebp - 0x18], 0xf
jne 0x4096e0
push 0x4a0d68
call fcn.00403580
add esp, 4
inc edi
cmp edi, dword [esi + 0x61c]
jb 0x409660
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 0x4a0d68
call fcn.00403580
add esp, 4
lea eax, [esi + 0x41c]
push dword [esi + 0x61c]
push eax
push dword [esi + 0x620]
lea eax, [esi + 0x1c]
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, eax
xor eax, eax
test edx, edx
mov dword [edi + 0x2022], edx
sete al
mov dword [edi], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add esi, 0x1c
mov dword [edi + 0x1018], 0x1000
mov ecx, esi
lea edx, [edi + 0x1018]
lea eax, [ecx + 2]
mov dword [ebp + 0xc], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409753
sub ecx, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
sar ecx, 1
push edx
lea ecx, [edi + 0x18]
push ecx
push eax
push 0
jne 0x409774
push 0
jmp 0x409775
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, eax
xor eax, eax
test edx, edx
mov dword [edi + 0x2022], edx
sete al
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x201c], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, eax
xor eax, eax
test edx, edx
mov dword [ebp + 0xc], edx
sete al
mov dword [edi], eax
test edx, edx
jne case.default.0x40952f
mov eax, dword [esi + 0x10]
mov ecx, 0x4a0b6c
mov dword [ebp - 0x48], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0040a0f0
mov eax, dword [ebp + 8]
cmp eax, dword [0x4a0b6c]
je 0x4095ac
push eax
mov ecx, 0x4a0b6c
call fcn.00409b10
push 0x1c
push eax
call fcn.0042ffce
mov edx, dword [ebp + 0xc]
add esp, 8
mov dword [edi + 0x2022], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
lea eax, [edi + 0x1018]
lea ecx, [edi + 0x18]
mov dword [eax], 0x1000
push eax
push ecx
push dword [esi + 0x624]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edx, eax
xor eax, eax
test edx, edx
mov dword [edi + 0x2022], edx
sete al
mov dword [edi], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x21c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, eax
xor eax, eax
test edx, edx
mov dword [edi + 0x2022], edx
sete al
mov dword [edi], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push dword [esi + 0x620]
lea eax, [esi + 0x1c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov edx, eax
xor eax, eax
test edx, edx
mov dword [edi + 0x2022], edx
sete al
mov dword [edi], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x620]
xor ecx, ecx
mov dword [ebp - 4], ecx
test al, 1
je 0x4098bd
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x100
add esi, 0x1c
mov dword [ebp - 4], ecx
jmp 0x4098bf
xor esi, esi
test al, 2
mov dword [ebp - 0x18], 0
mov edi, 0
lea edx, [ebp - 0x2c]
cmove edx, edi
mov ebx, 0
test al, 4
mov dword [ebp - 0x20], edx
lea edi, [ebp - 0x30]
cmove edi, ebx
test al, 8
mov dword [ebp - 8], edi
lea edi, [ebp - 0x34]
cmove edi, ebx
test al, 0x10
lea ebx, [ebp - 0x38]
mov dword [ebp - 0x24], edi
cmove ebx, dword [ebp - 0x18]
test al, 0x20
mov dword [ebp - 0xc], ebx
lea ebx, [ebp - 0x3c]
mov dword [ebp - 0x18], 0
cmove ebx, dword [ebp - 0x18]
test al, 0x40
mov dword [ebp - 0x10], ebx
lea ebx, [ebp - 0x40]
mov dword [ebp - 0x18], 0
cmove ebx, dword [ebp - 0x18]
test al, 0x80
mov dword [ebp - 0x14], ebx
lea ebx, [ebp - 0x44]
mov dword [ebp - 0x18], 0
cmove ebx, dword [ebp - 0x18]
and eax, 0x100
neg eax
mov dword [ebp - 0x18], ebx
lea ebx, [ebp - 0x50]
sbb eax, eax
and eax, ebx
mov ebx, dword [ebp + 8]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push edi
push dword [ebp - 8]
push edx
push 0
push ecx
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, dword [ebp + 0xc]
mov edx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x409978
mov eax, dword [eax]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x409984
mov eax, dword [eax]
mov dword [edi + 0x1c], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x409990
mov eax, dword [eax]
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40999c
mov eax, dword [eax]
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4099a8
mov eax, dword [eax]
mov dword [edi + 0x28], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4099b4
mov eax, dword [eax]
mov dword [edi + 0x2c], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4099c0
mov eax, dword [eax]
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4099cc
mov eax, dword [eax]
mov dword [edi + 0x34], eax
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x4099de
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], ecx
test esi, esi
je 0x409a00
mov ecx, edi
sub ecx, esi
nop word [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi + 0x3e], ax
test ax, ax
jne 0x4099f0
xor eax, eax
mov dword [edi + 0x2022], edx
test edx, edx
sete al
mov dword [edi], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
lea eax, [edi + 0x1018]
lea ecx, [edi + 0x18]
mov dword [eax], 0x1000
push eax
push ecx
push dword [esi + 0x624]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edx, eax
xor eax, eax
test edx, edx
mov dword [edi + 0x2022], edx
sete al
mov dword [edi], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x41c]
mov ecx, 0x4a0b6c
mov dword [ebp - 0x48], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.0040a0f0
mov eax, dword [ebp + 0xc]
cmp eax, dword [0x4a0b6c]
jne 0x409a8d
mov dword [edi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [eax + 0x18]
lea eax, [esi + 0x1c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCopyTreeW]
mov edx, eax
xor eax, eax
test edx, edx
mov dword [edi + 0x2022], edx
sete al
mov dword [edi], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x1c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov edx, eax
xor eax, eax
test edx, edx
mov dword [edi + 0x2022], edx
sete al
mov dword [edi], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret