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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x111127c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], edi
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10ff367
test byte [eax + 0x1c], 0x20
je 0x10ff367
cmp byte [eax + 0x19], 4
jb 0x10ff367
push 0x1013c38
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
xor ebx, ebx
cmp edi, ebx
jne 0x10ff381
push 0x1013f04
push 0x2a4
push 0x1013cac
call fcn.0107b4be
xor eax, eax
lea edi, [ebp - 0x48]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x58]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x48]
push eax
push 1
push 0x1004318
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x18], ebx
call fcn.01084e83
mov edi, eax
cmp edi, ebx
jl 0x10ff6aa
lea eax, [ebp - 0x58]
push eax
push 1
push 0x10042f0
call fcn.01084e83
mov edi, eax
cmp edi, ebx
jl 0x10ff6aa
lea eax, [ebp - 0x1c]
push eax
push 0x1013ec0
push esi
call fcn.0107c90e
mov edi, eax
cmp edi, ebx
jl 0x10ff6aa
push dword [ebp - 0x1c]
mov esi, 0x1013e94
push esi
mov ebx, 0x80000002
push ebx
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
test eax, eax
je 0x10ff412
jg 0x10ff435
jmp 0x10ff43f
lea eax, [ebp - 0x20]
push eax
mov edi, 0xf003f
push edi
push 0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebx
mov dword [ebp - 0x2c], 1
call esi
test eax, eax
je 0x10ff446
jle 0x10ff43f
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x10ff6aa
cmp byte [ebp + 0xc], 0
mov ebx, 0x80070000
jne 0x10ff4df
lea eax, [ebp - 0x28]
push eax
push edi
push 0
push 0x1013e38
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x10ff497
jle 0x10ff473
and eax, 0xffff
or eax, ebx
mov ecx, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10ff4df
test byte [eax + 0x1c], 0x20
je 0x10ff4df
cmp byte [eax + 0x19], 3
jb 0x10ff4df
push ecx
push 0x1013c38
push 0x2e
jmp 0x10ff4d4
push 0x1013e18
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x10ff4df
jle 0x10ff4b2
and eax, 0xffff
or eax, ebx
mov ecx, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10ff4df
test byte [eax + 0x1c], 0x20
je 0x10ff4df
cmp byte [eax + 0x19], 3
jb 0x10ff4df
push ecx
push 0x1013c38
push 0x2f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
xor esi, esi
push esi
push edi
push esi
push esi
push esi
push 0x1013d00
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
je 0x10ff53c
jle 0x10ff509
and eax, 0xffff
or eax, ebx
mov edi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10ff6aa
test byte [eax + 0x1c], 0x20
je 0x10ff6aa
cmp byte [eax + 0x19], 2
jb 0x10ff6aa
push edi
push 0x1013c38
push 0x30
jmp 0x10ff65d
mov esi, 0x1013dfc
push esi
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x10ff592
cmp eax, 2
je 0x10ff592
test eax, eax
jle 0x10ff55f
and eax, 0xffff
or eax, ebx
mov edi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10ff6aa
test byte [eax + 0x1c], 0x20
je 0x10ff6aa
cmp byte [eax + 0x19], 2
jb 0x10ff6aa
push edi
push 0x1013c38
push 0x31
jmp 0x10ff65d
push dword [ebp - 0x24]
push dword [ebp - 0x38]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.010fee30
mov edi, eax
test edi, edi
jge 0x10ff5da
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10ff6aa
test byte [eax + 0x1c], 0x20
je 0x10ff6aa
cmp byte [eax + 0x19], 2
jb 0x10ff6aa
push edi
push 0x1013c38
push 0x32
jmp 0x10ff65d
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
jne 0x10ff5fa
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
je 0x10ff604
mov edi, 0x80004005
jmp 0x10ff6aa
mov eax, dword [ebp - 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10ff60a
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x18]
push 1
push 0
push esi
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10ff66a
jle 0x10ff63b
and eax, 0xffff
or eax, ebx
mov edi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10ff6aa
test byte [eax + 0x1c], 0x20
je 0x10ff6aa
cmp byte [eax + 0x19], 2
jb 0x10ff6aa
push edi
push 0x1013c38
push 0x33
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
jmp 0x10ff6aa
mov ecx, dword [ebp - 0x30]
push 1
push dword [ebp - 0x20]
call fcn.010fcf63
mov edi, eax
test edi, edi
jge 0x10ff6aa
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10ff6a8
test byte [eax + 0x1c], 1
je 0x10ff6a8
cmp byte [eax + 0x19], 2
jb 0x10ff6a8
push edi
push 0x1013c38
push 0x34
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
xor edi, edi
push dword [ebp - 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x28]
call esi
xor ebx, ebx
cmp dword [ebp - 0x2c], ebx
je 0x10ff6d6
push 0x1013e94
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
mov esi, dword [sym.imp.KERNEL32.dll_RaiseException]
cmp dword [ebp - 0x48], ebx
je 0x10ff6f5
lea eax, [ebp - 0x48]
push eax
call fcn.01084f1d
cmp eax, ebx
jge 0x10ff6f5
push ebx
push ebx
push 1
push eax
call esi
cmp dword [ebp - 0x58], ebx
je 0x10ff70e
lea eax, [ebp - 0x58]
push eax
call fcn.01084f1d
cmp eax, ebx
jge 0x10ff70e
push ebx
push ebx
push 1
push eax
call esi
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x1c], ebx
je 0x10ff72c
push dword [ebp - 0x1c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x1c], ebx
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10ff756
test byte [eax + 0x1c], 0x20
je 0x10ff756
cmp byte [eax + 0x19], 4
jb 0x10ff756
push 0x1013c38
push 0x35
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f5f8
leave
ret 0x18