Function at 0x1096f36
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x404c
call fcn.010aa910
mov eax, dword [0x11d05b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
xor esi, esi
lea ecx, [edi + 0x40]
mov dword [ebp - 0x4014], esi
mov dword [ebp - 0x400c], esi
mov dword [ebp - 0x4010], esi
call fcn.01096c45
test eax, eax
je 0x1097600
cmp dword [edi + 0x38], esi
jne 0x1096f85
cmp dword [edi + 0x3c], esi
je 0x1097600
mov eax, dword [edi]
cmp dword [eax], esi
jne 0x1096f95
mov eax, 0x80070057
jmp 0x1097603
mov eax, dword [edi + 4]
cmp dword [eax], esi
je 0x1096f8b
mov eax, dword [edi + 0x10]
cmp dword [eax], esi
je 0x1096f8b
mov eax, dword [edi + 0x14]
cmp dword [eax], esi
je 0x1096f8b
mov eax, dword [edi + 0x18]
cmp dword [eax], 4
jne 0x1096f8b
mov eax, dword [edi + 0x20]
cmp dword [eax], 2
jne 0x1096f8b
push ebx
push 0x1008d38
push 0x1000
lea eax, [ebp - 0x2004]
push eax
call fcn.0107bfbd
mov ebx, eax
cmp ebx, esi
jl 0x1097591
push 0x1009c20
push 0x1000
lea eax, [ebp - 0x2004]
push eax
call fcn.0107bff7
mov ebx, eax
test ebx, ebx
jl 0x1097591
lea eax, [ebp - 0x4008]
push eax
lea eax, [ebp - 0x4014]
push eax
xor esi, esi
push esi
push 0xf003f
push esi
push esi
push esi
lea eax, [ebp - 0x2004]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
je 0x1097035
jg 0x1097553
jmp 0x109755d
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [ebp - 0x4008]
push eax
push 4
push 0
push 0x1009bf4
push dword [ebp - 0x4014]
mov dword [ebp - 0x4008], 1
call esi
test eax, eax
jne 0x109702a
mov eax, dword [edi]
push dword [eax + 0xc]
lea eax, [ebp - 0x4004]
push 0x1000
push eax
call fcn.0107bfbd
mov ebx, eax
test ebx, ebx
jl 0x1097591
push 0x1002338
push 0x1000
lea eax, [ebp - 0x4004]
push eax
call fcn.0107bff7
mov ebx, eax
test ebx, ebx
jl 0x1097591
mov eax, dword [edi + 4]
push dword [eax + 0xc]
lea eax, [ebp - 0x4004]
push 0x1000
push eax
call fcn.0107bff7
mov ebx, eax
test ebx, ebx
jl 0x1097591
lea eax, [ebp - 0x4008]
push eax
lea eax, [ebp - 0x400c]
push eax
xor ebx, ebx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x4004]
push eax
push dword [ebp - 0x4014]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x109702a
push dword [ebp - 0x4010]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 8
lea eax, [edi + 8]
push eax
push 0xb
push ebx
push 0x1009be0
push dword [ebp - 0x400c]
mov dword [ebp - 0x4010], ebx
call esi
cmp eax, ebx
jne 0x109702a
mov eax, dword [edi + 0x10]
mov ecx, dword [eax]
mov eax, dword [eax + 0xc]
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 1
push ebx
push 0x1009bc8
push dword [ebp - 0x400c]
call esi
cmp eax, ebx
jne 0x109702a
mov eax, dword [edi + 0x14]
mov ecx, dword [eax]
mov eax, dword [eax + 0xc]
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 1
push ebx
push 0x1009bac
push dword [ebp - 0x400c]
call esi
cmp eax, ebx
jne 0x109702a
mov eax, dword [edi + 0x18]
mov ecx, dword [eax]
mov eax, dword [eax + 0xc]
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 1
push ebx
push 0x1009b94
push dword [ebp - 0x400c]
call esi
cmp eax, ebx
jne 0x109702a
push 4
lea eax, [edi + 0x1c]
push eax
push 4
push ebx
push 0x1009b80
push dword [ebp - 0x400c]
call esi
cmp eax, ebx
jne 0x109702a
mov eax, dword [edi + 0x20]
mov ecx, dword [eax]
mov eax, dword [eax + 0xc]
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 1
push ebx
push 0x1009b6c
push dword [ebp - 0x400c]
call esi
cmp eax, ebx
jne 0x109702a
push 4
lea eax, [edi + 0x24]
push eax
push 4
push ebx
push 0x1009b54
push dword [ebp - 0x400c]
call esi
cmp eax, ebx
jne 0x109702a
push 4
lea eax, [edi + 0x28]
push eax
push 4
push ebx
push 0x1009b38
push dword [ebp - 0x400c]
call esi
cmp eax, ebx
jne 0x109702a
push 4
lea eax, [edi + 0x2c]
push eax
push 4
push ebx
push 0x1009b20
push dword [ebp - 0x400c]
call esi
cmp eax, ebx
jne 0x109702a
push 4
lea eax, [edi + 0x30]
push eax
push 4
push ebx
push 0x1009b04
push dword [ebp - 0x400c]
call esi
cmp eax, ebx
jne 0x109702a
push 8
lea eax, [edi + 0x38]
push eax
push 0xb
push ebx
push 0x1009ae4
push dword [ebp - 0x400c]
call esi
cmp eax, ebx
jne 0x109702a
push 0x30
lea eax, [ebp - 0x404c]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [edi + 0x40]
mov dword [ebp - 0x401c], ebx
call fcn.01096c45
test eax, eax
jbe 0x1097450
mov dword [ebp - 0x4018], ebx
mov eax, dword [edi + 0x44]
mov ecx, dword [ebp - 0x4018]
add eax, ecx
push dword [eax]
push dword [eax + 8]
push dword [eax + 4]
lea eax, [ebp - 0x2004]
push 0x1009aac
push 0x1000
push eax
call fcn.0108e53d
mov ebx, eax
add esp, 0x18
test ebx, ebx
jl 0x1097591
lea eax, [ebp - 0x4008]
push eax
lea eax, [ebp - 0x4010]
push eax
xor ebx, ebx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2004]
push eax
push dword [ebp - 0x400c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x109702a
mov eax, dword [edi + 0x44]
mov ebx, dword [ebp - 0x4018]
lea eax, [eax + ebx + 0x10]
mov ecx, dword [eax]
add dword [ebp - 0x403c], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax]
adc dword [ebp - 0x4038], ecx
push 4
mov dword [ebp - 0x4008], eax
lea eax, [ebp - 0x4008]
push eax
push 4
push 0
push 0x1009a9c
push dword [ebp - 0x4010]
call esi
test eax, eax
jne 0x109702a
mov eax, dword [edi + 0x44]
lea eax, [eax + ebx + 0x18]
mov ecx, dword [eax]
add dword [ebp - 0x4034], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax]
adc dword [ebp - 0x4030], ecx
push 4
mov dword [ebp - 0x4008], eax
lea eax, [ebp - 0x4008]
push eax
push 4
push 0
push 0x1009a94
push dword [ebp - 0x4010]
call esi
test eax, eax
jne 0x109702a
mov eax, dword [edi + 0x44]
lea eax, [eax + ebx + 0x20]
mov ecx, dword [eax]
add dword [ebp - 0x402c], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax]
adc dword [ebp - 0x4028], ecx
push 4
mov dword [ebp - 0x4008], eax
lea eax, [ebp - 0x4008]
push eax
push 4
push 0
push 0x1009a80
push dword [ebp - 0x4010]
call esi
test eax, eax
jne 0x109702a
mov eax, dword [edi + 0x44]
lea eax, [eax + ebx + 0x28]
mov ecx, dword [eax]
add dword [ebp - 0x4024], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax]
adc dword [ebp - 0x4020], ecx
push 4
mov dword [ebp - 0x4008], eax
lea eax, [ebp - 0x4008]
push eax
push 4
push 0
push 0x1009a6c
push dword [ebp - 0x4010]
call esi
test eax, eax
jne 0x109702a
push dword [ebp - 0x4010]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x4010], 0
inc dword [ebp - 0x401c]
add ebx, 0x30
lea ecx, [edi + 0x40]
mov dword [ebp - 0x4018], ebx
call fcn.01096c45
cmp dword [ebp - 0x401c], eax
jb 0x10972a2
push 0x1009a40
push 0x1000
lea eax, [ebp - 0x2004]
push eax
call fcn.0107bfbd
mov ebx, eax
xor edi, edi
cmp ebx, edi
jl 0x1097591
lea eax, [ebp - 0x4008]
push eax
lea eax, [ebp - 0x4010]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
lea eax, [ebp - 0x2004]
push eax
push dword [ebp - 0x400c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
jne 0x109702a
mov eax, dword [ebp - 0x403c]
push 4
pop edi
push edi
mov dword [ebp - 0x4008], eax
lea eax, [ebp - 0x4008]
push eax
push edi
xor ebx, ebx
push ebx
push 0x1009a9c
push dword [ebp - 0x4010]
call esi
cmp eax, ebx
jne 0x109702a
mov eax, dword [ebp - 0x4034]
push edi
mov dword [ebp - 0x4008], eax
lea eax, [ebp - 0x4008]
push eax
push edi
push ebx
push 0x1009a94
push dword [ebp - 0x4010]
call esi
cmp eax, ebx
jne 0x109702a
mov eax, dword [ebp - 0x402c]
push edi
mov dword [ebp - 0x4008], eax
lea eax, [ebp - 0x4008]
push eax
push edi
push ebx
push 0x1009a80
push dword [ebp - 0x4010]
call esi
cmp eax, ebx
jne 0x109702a
mov eax, dword [ebp - 0x4024]
push edi
mov dword [ebp - 0x4008], eax
lea eax, [ebp - 0x4008]
push eax
push edi
push ebx
push 0x1009a6c
push dword [ebp - 0x4010]
call esi
cmp eax, ebx
je 0x1097561
jle 0x109755d
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x1097591
push dword [ebp - 0x4010]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x400c]
mov dword [ebp - 0x4010], ebx
call esi
push dword [ebp - 0x4014]
mov dword [ebp - 0x400c], ebx
call esi
mov dword [ebp - 0x4014], ebx
xor esi, esi
cmp dword [ebp - 0x4010], esi
je 0x10975ad
push dword [ebp - 0x4010]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x4010], esi
cmp dword [ebp - 0x400c], esi
je 0x10975e7
push esi
push dword [ebp - 0x400c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
lea eax, [ebp - 0x4004]
push eax
push dword [ebp - 0x4014]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x400c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x400c], esi
cmp dword [ebp - 0x4014], esi
je 0x10975fb
push dword [ebp - 0x4014]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
jmp 0x1097603
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.010aa5e1
leave
ret