Function at 0x10006a6a
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x1000d3ce
call fcn.10007e5c
sub esp, 0x3c
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x10], 0x400
mov dword [ebp - 0x14], 1
push str.CString
mov eax, dword [ebp - 0x40]
add eax, 0x14
push eax
call fcn.1000687d
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x10006aa6
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0
je 0x10006ad3
mov eax, dword [ebp - 0x40]
add eax, 0x1c
push eax
mov ecx, dword [ebp - 0x40]
add ecx, 4
call fcn.10001bf8
push eax
mov eax, dword [ebp - 0x40]
push dword [eax + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x10006ad3
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0
je 0x10006d3a
cmp dword [ebp + 0xc], 0
je 0x10006bce
cmp dword [ebp + 0x10], 2
jge 0x10006b32
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x40]
add eax, 0x24
push eax
push 0
push 0
mov ecx, dword [ebp - 0x40]
add ecx, 0xc
call fcn.10001bf8
push eax
mov eax, dword [ebp - 0x40]
push dword [eax + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10006b1e
and dword [ebp - 0x14], 0
jmp 0x10006b2d
mov eax, dword [ebp - 0x40]
add eax, 0x24
push eax
mov ecx, dword [ebp + 8]
call fcn.10001581
jmp 0x10006bc9
mov dword [ebp - 0x18], 7
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x40]
add eax, 0x24
push eax
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, dword [ebp - 0x40]
add ecx, 0xc
call fcn.10001bf8
push eax
mov eax, dword [ebp - 0x40]
push dword [eax + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10006b6c
and dword [ebp - 0x14], 0
jmp 0x10006bc9
and dword [ebp - 0x1c], 0
mov ecx, dword [ebp + 8]
call fcn.10001396
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jae 0x10006bc9
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x40]
lea eax, [ecx + eax + 0x24]
push eax
mov ecx, dword [ebp + 8]
call fcn.100017f8
mov ecx, dword [ebp + 8]
call fcn.10001409
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jae 0x10006bc7
mov eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x1c]
movsx eax, byte [eax + 0x24]
test eax, eax
jne 0x10006bc7
push 0x5e
mov ecx, dword [ebp + 8]
call fcn.10001811
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x10006b9e
jmp 0x10006b78
jmp 0x10006d3a
cmp dword [ebp + 0x10], 2
jge 0x10006c1c
mov ecx, dword [ebp + 8]
call fcn.10001409
inc eax
push eax
mov ecx, dword [ebp + 8]
call fcn.10001bf8
push eax
xor eax, eax
cmp dword [ebp + 0x10], 0
setne al
inc eax
push eax
push 0
mov ecx, dword [ebp - 0x40]
add ecx, 0xc
call fcn.10001bf8
push eax
mov eax, dword [ebp - 0x40]
push dword [eax + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x10006c17
xor eax, eax
jmp 0x10006d49
jmp 0x10006d3a
mov ecx, dword [ebp + 8]
call fcn.10001409
mov dword [ebp - 0x28], eax
and dword [ebp - 0x20], 0
lea ecx, [ebp - 0x30]
call fcn.10001000
and dword [ebp - 4], 0
push dword [ebp - 0x20]
push 0x5e
mov ecx, dword [ebp + 8]
call fcn.10001449
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jle 0x10006ce9
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x20]
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
call fcn.10001865
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 1
push dword [ebp - 0x48]
lea ecx, [ebp - 0x30]
call fcn.10001549
and byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.100010fa
lea ecx, [ebp - 0x30]
call fcn.10001409
push eax
lea ecx, [ebp - 0x30]
call fcn.10001bf8
push eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x40]
lea eax, [ecx + eax + 0x24]
push eax
call fcn.100071d0
add esp, 0xc
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x28]
jge 0x10006cde
push dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
call fcn.100013b8
movsx eax, al
cmp eax, 0x5e
jne 0x10006cde
mov eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x24]
and byte [eax + 0x24], 0
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
jmp 0x10006cb0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
jmp 0x10006c37
cmp dword [ebp - 0x28], 0
je 0x10006d19
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x40]
add eax, 0x24
push eax
push 7
push 0
mov ecx, dword [ebp - 0x40]
add ecx, 0xc
call fcn.10001bf8
push eax
mov eax, dword [ebp - 0x40]
push dword [eax + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x10006d2e
and dword [ebp - 0x3c], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.100010fa
mov eax, dword [ebp - 0x3c]
jmp 0x10006d49
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.100010fa
mov eax, dword [ebp - 0x40]
push dword [eax + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 0xc