Function at 0x1003c32
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1028084]
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, 0x10015a0
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 0x1003ccc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1003e94
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 0x1001530
push 0x80000002
call esi
mov edi, eax
cmp edi, ebx
jne 0x1003e94
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 0x1003e94
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0xe
push 0x1001520
push 2
push ebx
push 0x1001500
push dword [ebp - 0xf8]
call esi
mov edi, eax
cmp edi, ebx
jne 0x1003e94
push 4
lea eax, [ebp - 0x10c]
push eax
push 4
push ebx
push 0x10014f0
push dword [ebp - 0xf8]
mov dword [ebp - 0x10c], 1
call esi
mov edi, eax
cmp edi, ebx
jne 0x1003e94
push 4
lea eax, [ebp - 0x10c]
push eax
push 4
push ebx
push 0x10014d4
push dword [ebp - 0xf8]
mov dword [ebp - 0x10c], 1
call esi
mov edi, eax
cmp edi, ebx
jne 0x1003e94
mov esi, dword [ebp - 0xfc]
cmp esi, ebx
je 0x1003e94
jmp 0x1003dd7
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 0x1003e70
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.01003b56
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x4a
lea eax, [ebp - 0x50]
push eax
push 1
push ebx
push 0x10014c8
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 0x10014b4
push dword [ebp - 0xf4]
call esi
mov esi, dword [ebp - 0xfc]
mov edi, eax
cmp dword [ebp - 0xf4], ebx
je 0x1003e84
push dword [ebp - 0xf4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esi]
cmp esi, ebx
mov dword [ebp - 0xfc], esi
jne 0x1003dd1
push dword [ebp - 0x108]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0xf8], ebx
je 0x1003eb4
push dword [ebp - 0xf8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x100], ebx
je 0x1003ec8
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.01005634
leave
ret 8