Function at 0x101e7f6
Capabilities:
Set registry value

Disassembly:
push 0xcc
mov eax, 0x1025dbe
call fcn.010021e6
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x6c], ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.010039b9
lea eax, [ebp - 0x2c]
push eax
mov ecx, 0x1029090
mov byte [ebp - 4], 1
call fcn.0101dbb3
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x101e839
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x6c]
push ecx
mov edi, 0x20006
push edi
push ebx
push eax
mov esi, 0x80000002
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x68], eax
cmp eax, 2
jne 0x101e87d
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x101e865
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
push ebx
push edi
push ebx
push ebx
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], ebx
je 0x101e8d8
mov eax, dword [0x1029004]
cmp eax, 0x1029004
je 0x101e8af
test byte [eax + 0x1c], 1
je 0x101e8af
cmp byte [eax + 0x19], 2
jb 0x101e8af
push dword [ebp - 0x68]
push 0x1008834
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008c25
push 0x2fc
push 0x1008848
push dword [ebp - 0x68]
lea ecx, [ebp - 0xac]
call fcn.01008c61
push 0x10263ec
lea eax, [ebp - 0xac]
push eax
call sub.msvcrt.dll__CxxThrowException
lea ecx, [ebp - 0x48]
call fcn.010039b9
mov ebx, dword [ebp - 0x7c]
lea esi, [ebx + 0x104]
lea edi, [ebp - 0x9c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x48]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x9c]
push eax
mov byte [ebp - 4], 2
movsd dword es:[edi], dword [esi]
call fcn.01015e70
mov eax, dword [ebp - 0x34]
add eax, 0xfffffffe
push eax
push 1
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x64]
call fcn.0101d908
push 0x10083bc
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.0101d61e
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
mov esi, dword [ebp - 0x7c]
mov ebx, eax
neg ebx
pop ecx
sbb bl, bl
pop ecx
inc bl
mov ecx, esi
mov byte [ebp - 0x70], bl
call fcn.0101d637
xor edi, edi
cmp eax, edi
jne 0x101e95f
push dword [ebp - 0x70]
mov esi, dword [esi + 0x98]
push esi
call fcn.01013298
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x80], edi
cmp byte [ebp + 0xc], 0
mov byte [ebp - 4], 4
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x68], 0x101edc0
je 0x101e98c
mov dword [ebp - 0x68], 0x101ecd0
test bl, bl
je 0x101e997
mov dword [ebp - 0x68], 0x101ec00
push edi
lea ecx, [ebp - 0x74]
push ecx
xor ebx, ebx
inc ebx
push ebx
push eax
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x101e9f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, edi
jne 0x101e9bb
mov esi, 0x507
mov eax, dword [0x1029004]
cmp eax, 0x1029004
je 0x101e9e6
test byte [eax + 0x1c], 1
je 0x101e9e6
cmp byte [eax + 0x19], 2
jb 0x101e9e6
push esi
push 0x1008834
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008c25
push 0x32b
push 0x1008848
push esi
jmp 0x101e8bc
push dword [ebp - 0x74]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
lea eax, [ebp - 0x98]
push eax
call fcn.01004ae6
push edi
lea eax, [ebp - 0x78]
push eax
push ebx
push dword [ebp - 0x68]
mov byte [ebp - 4], 5
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x101ea84
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, edi
jne 0x101ea33
mov esi, 0x507
mov eax, dword [0x1029004]
cmp eax, 0x1029004
je 0x101ea5e
test byte [eax + 0x1c], 1
je 0x101ea5e
cmp byte [eax + 0x19], 2
jb 0x101ea5e
push esi
push 0x1008834
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008c25
push 0x335
push 0x1008848
push esi
lea ecx, [ebp - 0xd8]
call fcn.01008c61
push 0x10263ec
lea eax, [ebp - 0xd8]
jmp 0x101e8d2
push dword [ebp - 0x78]
lea eax, [ebp - 0xb8]
push esi
push eax
call fcn.01004ae6
push dword [ebp - 0x70]
lea eax, [ebp - 0x8c]
push eax
push dword [ebp - 0x78]
mov byte [ebp - 4], 6
push 0x101eb80
push 0x10296c4
push dword [ebp - 0x74]
call fcn.01021f74
cmp dword [ebp - 0x88], edi
jne 0x101eac3
xor eax, eax
jmp 0x101eacf
mov eax, dword [ebp - 0x84]
sub eax, dword [ebp - 0x88]
cmp dword [ebp - 0x4c], 8
mov ecx, dword [ebp - 0x60]
jae 0x101eadb
lea ecx, [ebp - 0x60]
push eax
push dword [ebp - 0x88]
push 3
push edi
push ecx
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, edi
je 0x101eb2a
mov eax, dword [0x1029004]
cmp eax, 0x1029004
je 0x101eb20
test byte [eax + 0x1c], 1
je 0x101eb20
cmp byte [eax + 0x19], 2
jb 0x101eb20
push esi
push 0x1008834
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008c25
push 0x348
jmp 0x101ea63
lea eax, [ebp - 0xb8]
push eax
call fcn.01003ffd
lea eax, [ebp - 0x98]
push eax
call fcn.01003ffd
lea ecx, [ebp - 0x8c]
call fcn.010043cc
push edi
push ebx
lea ecx, [ebp - 0x64]
call fcn.01001b47
push edi
push ebx
lea ecx, [ebp - 0x48]
call fcn.01001b47
push edi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.01001b47
lea ecx, [ebp - 0x6c]
call fcn.01012ad0
call fcn.01002043
ret 8