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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x420], 0x104
xor ecx, ecx
mov dword [ebp - 0x424], 0x208
mov dword [ebp - 0x41c], 1
mov ebx, ecx
mov dword [ebp - 0x428], ecx
push edi
mov edi, ecx
test esi, esi
jne 0x41876d
mov eax, 0x80070057
jmp 0x418aea
push ecx
lea eax, [ebp - 0x428]
push eax
push ecx
push 3
push ecx
push ecx
push ecx
push 0x401208
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x418799
mov eax, 0x80004005
jmp 0x418aea
xor ecx, ecx
mov dword [ebp - 0x42c], ecx
jmp 0x4187a5
xor ecx, ecx
lea eax, [ebp - 0x424]
mov dword [ebp - 0x418], ecx
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x420], 0x104
push eax
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x424], 0x208
push eax
push ecx
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
push ecx
jmp 0x4188e9
mov eax, dword [ebp - 0x418]
inc eax
cmp dword [ebp - 0x41c], 1
mov dword [ebp - 0x418], eax
jne 0x418a2c
mov eax, dword [ebp - 0x42c]
xor ecx, ecx
mov edi, ecx
sub eax, ecx
je 0x4189bc
sub eax, 1
je 0x418925
push 5
sub eax, 1
push 0x4012a8
lea eax, [ebp - 0x20c]
push eax
je 0x4188fd
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x4188a0
push 2
lea eax, [ebp - 0x20c]
push 0x4012a0
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x4188a0
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x418866
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x41c]
lea eax, [ebp - 0x20c]
push edi
push eax
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x420], 0x104
mov dword [ebp - 0x424], 0x208
test edi, edi
jne 0x418a36
lea ecx, [ebp - 0x424]
push ecx
lea ecx, [ebp - 0x414]
push ecx
lea ecx, [ebp - 0x41c]
push ecx
xor ecx, ecx
push ecx
lea ecx, [ebp - 0x420]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x4187e9
jmp 0x418a3b
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4188a0
lea ecx, [ebp - 0x414]
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x418915
jmp 0x418871
push 2
lea eax, [ebp - 0x20c]
push 0x4012a0
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4188a0
push 6
lea eax, [ebp - 0x20c]
push 0x401264
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x4188a0
push 5
lea eax, [ebp - 0x20c]
push 0x401274
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x4188a0
push 0xe
lea eax, [ebp - 0x20c]
push 0x401280
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x4188a0
lea ecx, [ebp - 0x414]
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4189ac
jmp 0x418871
push 6
lea eax, [ebp - 0x20c]
push 0x401264
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x418a11
push 5
lea eax, [ebp - 0x20c]
push 0x401274
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x418a11
push 0xe
lea eax, [ebp - 0x20c]
push 0x401280
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4188a0
lea ecx, [ebp - 0x414]
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x418a1c
jmp 0x418871
mov ebx, 0x80004005
jmp 0x4188a6
mov ebx, 0x80004005
mov eax, dword [ebp - 0x42c]
inc eax
mov dword [ebp - 0x42c], eax
cmp eax, 4
jl 0x4187a3
test ebx, ebx
js 0x418acc
mov dword [ebp - 0x420], 0x104
xor edi, edi
mov dword [ebp - 0x424], 0x208
jmp 0x418a8f
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x420], 0x104
push eax
push esi
mov dword [ebp - 0x424], 0x208
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x41c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x418a6d
mov ecx, dword [ebp - 0x428]
mov edx, esi
call fcn.00425c9a
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x401208
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429770
mov esp, ebp
pop ebp
ret