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

Disassembly:
sub esp, 0x164
push ebx
push ebp
push esi
push edi
push str.42080042449273885dcff1fdcfac6fd5aaadc9e4cf25f53859af5f21b7567bbdd0adbfad3381791dbd827bafe5b7477e2dfb4636e4f6cf6cad9b7d1ac641c136e299e3edf9834f860fc3391af00cdb3c4683f5e7908be9d109c65b3d26d1a8048bb9985d
call fcn.10013fd0
push eax
call fcn.100fd07f
mov esi, eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x3c]
add esp, 8
mov dword [esp + 0x28], 0x100
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x10]
push eax
push 3
push 0
push esi
push 0x80000002
call edi
mov ebp, dword [esp + 0x178]
test eax, eax
jne 0x10017926
lea ecx, [esp + 0x28]
lea edx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x34]
push edx
push eax
push 0
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100178e6
mov edi, dword [esp + 0x17c]
lea edx, [esp + 0x24]
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x144]
push eax
lea edx, [esp + 0x48]
push ecx
push edx
push edi
call fcn.100179c0
lea eax, [esp + 0x44]
lea ecx, [esp + 0x40]
push eax
lea edx, [esp + 0x3c]
push ecx
lea eax, [esp + 0x44]
push edx
mov edx, dword [esp + 0x1ac]
lea ecx, [esp + 0x40]
push eax
mov eax, dword [esp + 0x1b4]
push ecx
push edx
push eax
push edi
push 0
call fcn.10017b30
add esp, 0x44
mov ebx, eax
test ebx, ebx
jl 0x100178b4
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edx
lea eax, [esp + 0x48]
push ebp
push eax
push edi
mov dword [esp + 0x48], 0x100
call fcn.10017a40
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x20
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x10]
not ecx
push ecx
lea ecx, [esp + 0x38]
push ecx
push 1
push eax
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x100178b4
mov ebx, 0xfffffffc
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, esi
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.100f0ab3
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret
mov edi, dword [esp + 0x17c]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x18c]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x194]
push edx
push eax
push ecx
push edi
push 1
call fcn.10017b30
add esp, 0x24
jmp 0x10017846
lea edx, [esp + 0x2c]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x100179aa
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x10]
push edx
push 3
push 0
push esi
push 0x80000002
call edi
test eax, eax
jne 0x100179aa
mov edi, dword [esp + 0x17c]
lea eax, [esp + 0x24]
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x24]
push edx
mov edx, dword [esp + 0x18c]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x194]
push ecx
push edx
push eax
push edi
push 1
call fcn.10017b30
add esp, 0x24
jmp 0x10017846
mov ebx, 0xfffffffd
jmp 0x100178b4