Function at 0x10229b2
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6f0
mov eax, dword [0x1027018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea esi, [ebp + 8]
lea edi, [ebp - 0x6cc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp + 0x18]
lea edi, [ebp - 0x6dc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x11
movsd dword es:[edi], dword [esi]
pop ecx
mov esi, 0x1001b88
lea edi, [ebp - 0x2ac]
rep movsd dword es:[edi], dword [esi]
push 0x1c4
xor edi, edi
lea eax, [ebp - 0x268]
push edi
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x6bc], ax
lea eax, [ebp - 0x6ba]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x6bc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_GetModuleBaseNameW
test eax, eax
je 0x1022cd6
lea eax, [ebp - 0x6bc]
push eax
push ebx
lea eax, [ebp - 0x2ac]
push eax
call fcn.0101d01b
cmp eax, edi
jl 0x1022cdc
xor eax, eax
push esi
mov word [ebp - 0x4b4], ax
lea eax, [ebp - 0x4b2]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x4b4]
push eax
push ebx
lea eax, [ebp - 0x2ac]
push eax
call fcn.0102364e
cmp eax, edi
jl 0x1022cdc
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x6e4]
push eax
lea eax, [ebp - 0x6f0]
push eax
push edi
push 0xf003f
push edi
push 0x1001410
push edi
push 0x10015c4
push 0x80000000
call ebx
mov esi, eax
cmp esi, edi
jne 0x1022ce6
mov esi, dword [sym.imp.ole32.dll_StringFromGUID2]
push 0x27
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x6cc]
push eax
call esi
push 0x27
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x6dc]
push eax
call esi
lea eax, [ebp - 0x6e4]
push eax
lea eax, [ebp - 0x6e0]
push eax
push edi
push 0xf003f
push edi
push 0x1001410
push edi
lea eax, [ebp - 0xa4]
push eax
push dword [ebp - 0x6f0]
call ebx
mov esi, eax
cmp esi, edi
jne 0x1022c41
push 0x4e
lea eax, [ebp - 0x54]
push eax
push 1
push edi
push 0x1001afc
push dword [ebp - 0x6e0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, edi
jne 0x1022c35
lea eax, [ebp - 0x6e4]
push eax
lea eax, [ebp - 0x6e8]
push eax
push edi
push 0xf003f
push edi
push 0x1001b68
push edi
push 0x1001b4c
push dword [ebp - 0x6e0]
call ebx
mov esi, eax
cmp esi, edi
jne 0x1022c35
push 0x1001b2c
push dword [ebp - 0x6e8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea eax, [ebp - 0x4b4]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x1022ba4
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x4b4]
push eax
push 2
push edi
push 0x10013b0
push dword [ebp - 0x6e8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, edi
jne 0x1022c11
lea eax, [ebp - 0x2ac]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x1022be1
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x2ac]
push eax
push 2
push edi
push 0x1001b08
push dword [ebp - 0x6e8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
push dword [ebp - 0x6e8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
jne 0x1022c35
lea eax, [ebp - 0x2ac]
push eax
push dword [ebp - 0x6e0]
call fcn.0101d0b2
mov esi, eax
push dword [ebp - 0x6e0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x6f0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
jne 0x1022ce6
lea eax, [ebp - 0x6e4]
push eax
lea eax, [ebp - 0x6ec]
push eax
push edi
push 0xf003f
push edi
push 0x1001410
push edi
push 0x1001afc
push 0x80000000
call ebx
mov esi, eax
cmp esi, edi
jne 0x1022ce6
lea eax, [ebp - 0x6e4]
push eax
lea eax, [ebp - 0x6e0]
push eax
push edi
push 0xf003f
push edi
push 0x1001410
push edi
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x6ec]
call ebx
mov esi, eax
cmp esi, edi
jne 0x1022cc8
push dword [ebp - 0x6e0]
call fcn.0101cde1
push dword [ebp - 0x6e0]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x6ec]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1022cde
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, edi
jne 0x1022ce6
xor eax, eax
jmp 0x1022cf6
jle 0x1022cf4
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0102302f
leave
ret 0x20