Function at 0x1006317
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x100c178]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xf4], eax
xor eax, eax
lea edi, [ebp - 0x114]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x23
pop ecx
mov esi, 0x10020a8
lea edi, [ebp - 0xe0]
rep movsd dword es:[edi], dword [esi]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x108]
push eax
push 1
lea eax, [ebp - 0xe0]
push eax
mov dword [ebp - 0x104], 2
mov dword [ebp - 0x100], ebx
mov dword [ebp - 0xf8], ebx
mov dword [ebp - 0x108], ebx
movsw word es:[edi], word [esi]
mov dword [ebp - 0x118], 0xc
mov dword [ebp - 0x110], ebx
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
jne 0x10063b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1006579
mov eax, dword [ebp - 0x108]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x118]
push eax
push 0xf003f
push ebx
push ebx
push ebx
push 0x1002038
push 0x80000002
call esi
mov edi, eax
cmp edi, ebx
jne 0x1006579
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0xf8]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push dword [ebp - 0xf4]
push dword [ebp - 0x100]
call esi
mov edi, eax
cmp edi, ebx
jne 0x1006579
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0xe
push 0x1002024
push 2
push ebx
push 0x1002004
push dword [ebp - 0xf8]
call esi
mov edi, eax
cmp edi, ebx
jne 0x1006579
push 4
lea eax, [ebp - 0x10c]
push eax
push 4
push ebx
push 0x1001ff4
push dword [ebp - 0xf8]
mov dword [ebp - 0x10c], 1
call esi
mov edi, eax
cmp edi, ebx
jne 0x1006579
push 4
lea eax, [ebp - 0x10c]
push eax
push 4
push ebx
push 0x1001fd8
push dword [ebp - 0xf8]
mov dword [ebp - 0x10c], 1
call esi
mov edi, eax
cmp edi, ebx
jne 0x1006579
mov esi, dword [ebp - 0xfc]
cmp esi, ebx
je 0x1006579
jmp 0x10064bc
mov esi, dword [ebp - 0xfc]
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0xf4]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push dword [esi + 8]
mov dword [ebp - 0xf4], ebx
push dword [ebp - 0xf8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
cmp edi, ebx
jne 0x1006555
mov esi, dword [esi + 4]
lea edi, [ebp - 0xf0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xf0]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x50]
push eax
movsd dword es:[edi], dword [esi]
call fcn.0100623b
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x4a
lea eax, [ebp - 0x50]
push eax
push 1
push ebx
push 0x1001fcc
push dword [ebp - 0xf4]
call esi
mov edi, dword [ebp - 0xfc]
push dword [edi + 0xc]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
shl eax, 1
push eax
push dword [edi + 0xc]
push 1
push ebx
push 0x1001fb8
push dword [ebp - 0xf4]
call esi
mov esi, dword [ebp - 0xfc]
mov edi, eax
cmp dword [ebp - 0xf4], ebx
je 0x1006569
push dword [ebp - 0xf4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esi]
cmp esi, ebx
mov dword [ebp - 0xfc], esi
jne 0x10064b6
push dword [ebp - 0x108]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0xf8], ebx
je 0x1006599
push dword [ebp - 0xf8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x100], ebx
je 0x10065ad
push dword [ebp - 0x100]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.010085f5
leave
ret 8