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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x111027c]
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 [0x111024c]
cmp eax, 0x111024c
je 0x10ff192
test byte [eax + 0x1c], 0x20
je 0x10ff192
cmp byte [eax + 0x19], 4
jb 0x10ff192
push 0x1013bc0
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
xor ebx, ebx
cmp edi, ebx
jne 0x10ff1ac
push 0x1013e8c
push 0x2a4
push 0x1013c34
call fcn.0107b644
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 0x1004320
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.01084e46
mov edi, eax
cmp edi, ebx
jl 0x10ff4d5
lea eax, [ebp - 0x58]
push eax
push 1
push 0x10042f8
call fcn.01084e46
mov edi, eax
cmp edi, ebx
jl 0x10ff4d5
lea eax, [ebp - 0x1c]
push eax
push 0x1013e48
push esi
call fcn.0107ca99
mov edi, eax
cmp edi, ebx
jl 0x10ff4d5
push dword [ebp - 0x1c]
mov esi, 0x1013e1c
push esi
mov ebx, 0x80000002
push ebx
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
test eax, eax
je 0x10ff23d
jg 0x10ff260
jmp 0x10ff26a
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 0x10ff271
jle 0x10ff26a
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x10ff4d5
cmp byte [ebp + 0xc], 0
mov ebx, 0x80070000
jne 0x10ff30a
lea eax, [ebp - 0x28]
push eax
push edi
push 0
push 0x1013dc0
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x10ff2c2
jle 0x10ff29e
and eax, 0xffff
or eax, ebx
mov ecx, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10ff30a
test byte [eax + 0x1c], 0x20
je 0x10ff30a
cmp byte [eax + 0x19], 3
jb 0x10ff30a
push ecx
push 0x1013bc0
push 0x2e
jmp 0x10ff2ff
push 0x1013da0
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x10ff30a
jle 0x10ff2dd
and eax, 0xffff
or eax, ebx
mov ecx, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10ff30a
test byte [eax + 0x1c], 0x20
je 0x10ff30a
cmp byte [eax + 0x19], 3
jb 0x10ff30a
push ecx
push 0x1013bc0
push 0x2f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
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 0x1013c88
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
je 0x10ff367
jle 0x10ff334
and eax, 0xffff
or eax, ebx
mov edi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10ff4d5
test byte [eax + 0x1c], 0x20
je 0x10ff4d5
cmp byte [eax + 0x19], 2
jb 0x10ff4d5
push edi
push 0x1013bc0
push 0x30
jmp 0x10ff488
mov esi, 0x1013d84
push esi
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x10ff3bd
cmp eax, 2
je 0x10ff3bd
test eax, eax
jle 0x10ff38a
and eax, 0xffff
or eax, ebx
mov edi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10ff4d5
test byte [eax + 0x1c], 0x20
je 0x10ff4d5
cmp byte [eax + 0x19], 2
jb 0x10ff4d5
push edi
push 0x1013bc0
push 0x31
jmp 0x10ff488
push dword [ebp - 0x24]
push dword [ebp - 0x38]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.010fec5b
mov edi, eax
test edi, edi
jge 0x10ff405
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10ff4d5
test byte [eax + 0x1c], 0x20
je 0x10ff4d5
cmp byte [eax + 0x19], 2
jb 0x10ff4d5
push edi
push 0x1013bc0
push 0x32
jmp 0x10ff488
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
jne 0x10ff425
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
je 0x10ff42f
mov edi, 0x80004005
jmp 0x10ff4d5
mov eax, dword [ebp - 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10ff435
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 0x10ff495
jle 0x10ff466
and eax, 0xffff
or eax, ebx
mov edi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10ff4d5
test byte [eax + 0x1c], 0x20
je 0x10ff4d5
cmp byte [eax + 0x19], 2
jb 0x10ff4d5
push edi
push 0x1013bc0
push 0x33
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
jmp 0x10ff4d5
mov ecx, dword [ebp - 0x30]
push 1
push dword [ebp - 0x20]
call fcn.010fce29
mov edi, eax
test edi, edi
jge 0x10ff4d5
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10ff4d3
test byte [eax + 0x1c], 1
je 0x10ff4d3
cmp byte [eax + 0x19], 2
jb 0x10ff4d3
push edi
push 0x1013bc0
push 0x34
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
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 0x10ff501
push 0x1013e1c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
mov esi, dword [sym.imp.KERNEL32.dll_RaiseException]
cmp dword [ebp - 0x48], ebx
je 0x10ff520
lea eax, [ebp - 0x48]
push eax
call fcn.01084ee0
cmp eax, ebx
jge 0x10ff520
push ebx
push ebx
push 1
push eax
call esi
cmp dword [ebp - 0x58], ebx
je 0x10ff539
lea eax, [ebp - 0x58]
push eax
call fcn.01084ee0
cmp eax, ebx
jge 0x10ff539
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 0x10ff557
push dword [ebp - 0x1c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x1c], ebx
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10ff581
test byte [eax + 0x1c], 0x20
je 0x10ff581
cmp byte [eax + 0x19], 4
jb 0x10ff581
push 0x1013bc0
push 0x35
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f798
leave
ret 0x18