Function at 0x71e22c4d
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0x414
push 0x71e215d0
call fcn.71e25664
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x29], bl
lea eax, [ebp - 0xf4]
mov dword [ebp - 0xf8], eax
lea eax, [ebp - 0x1c0]
mov dword [ebp - 0x1c4], eax
mov byte [ebp - 0x1cc], bl
mov byte [ebp - 0x1cb], bl
mov byte [ebp - 0x1ca], bl
mov byte [ebp - 0x1c9], bl
mov byte [ebp - 0x1c8], bl
mov byte [ebp - 0x1c7], 5
mov byte [ebp - 0x1d4], bl
mov byte [ebp - 0x1d3], bl
mov byte [ebp - 0x1d2], bl
mov byte [ebp - 0x1d1], bl
mov byte [ebp - 0x1d0], bl
mov byte [ebp - 0x1cf], 1
push 0x71e215a4
lea eax, [ebp - 0x3dc]
push eax
call fcn.71e22853
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x71e2325d
push 1
lea eax, [ebp - 0x1c0]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x71e22d07
mov dword [ebp - 0x1c4], ebx
cmp dword [ebp - 0x1c4], ebx
je 0x71e22d33
push 2
push 0xc8
lea eax, [ebp - 0xf4]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x71e22d33
mov dword [ebp - 0x1c4], ebx
mov dword [ebp - 0xf8], ebx
lea eax, [ebp - 0x3e0]
push eax
call fcn.71e21f5e
cmp dword [ebp - 0x1c4], ebx
je 0x71e22d80
cmp dword [ebp - 0xf8], ebx
je 0x71e22d80
cmp dword [ebp - 0x3e0], ebx
je 0x71e22d93
push dword [ebp - 0x3e0]
push 0xf003f
push 2
push dword [ebp - 0xf8]
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
jne 0x71e22d80
mov dword [ebp - 0x1c4], ebx
mov dword [ebp - 0xf8], ebx
cmp dword [ebp - 0x3e0], ebx
je 0x71e22d93
push dword [ebp - 0x3e0]
call sym.ntdsbcli.dll_DsBackupFree
lea eax, [ebp - 0x3e4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x1cc]
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
call esi
cmp dword [ebp - 0x1c4], ebx
je 0x71e22df9
cmp dword [ebp - 0xf8], ebx
je 0x71e22df9
cmp dword [ebp - 0x3e4], ebx
je 0x71e22e13
push dword [ebp - 0x3e4]
push 0xf003f
push 2
push dword [ebp - 0xf8]
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
jne 0x71e22df9
mov dword [ebp - 0x1c4], ebx
mov dword [ebp - 0xf8], ebx
cmp dword [ebp - 0x3e4], ebx
je 0x71e22e13
push dword [ebp - 0x3e4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x3e4], ebx
lea eax, [ebp - 0x3e8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 1
lea eax, [ebp - 0x1d4]
push eax
call esi
cmp dword [ebp - 0x1c4], ebx
je 0x71e22e6e
cmp dword [ebp - 0xf8], ebx
je 0x71e22e6e
cmp dword [ebp - 0x3e8], ebx
je 0x71e22e88
push dword [ebp - 0x3e8]
push 0x20019
push 2
push dword [ebp - 0xf8]
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
jne 0x71e22e6e
mov dword [ebp - 0x1c4], ebx
mov dword [ebp - 0xf8], ebx
cmp dword [ebp - 0x3e8], ebx
je 0x71e22e88
push dword [ebp - 0x3e8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x3e8], ebx
cmp dword [ebp - 0x1c4], ebx
je 0x71e22ee9
cmp dword [ebp - 0xf8], ebx
je 0x71e22ebd
push ebx
push dword [ebp - 0xf8]
push 1
push dword [ebp - 0x1c4]
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x71e22ebd
mov dword [ebp - 0x1c4], ebx
mov dword [ebp - 0xf8], ebx
cmp dword [ebp - 0x1c4], ebx
je 0x71e22ee9
cmp dword [ebp - 0xf8], ebx
je 0x71e22ee9
mov eax, dword [ebp - 0x1c4]
mov dword [ebp - 0x3f0], eax
mov dword [ebp - 0x3ec], ebx
mov dword [ebp - 0x3f4], 0xc
lea eax, [ebp - 0x3f8]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x3f4]
push eax
push 0x2001f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x3dc]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x71e2325d
mov dword [ebp - 0x1c], 0xc7ff0004
push 4
lea eax, [ebp - 0x1c]
push eax
push 4
push ebx
push 0x71e21588
push dword [ebp - 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call esi
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x71e2325d
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
cmp dword [ebp + 0x18], ebx
je 0x71e22f74
push dword [ebp + 0x18]
call edi
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x18]
push 1
push ebx
push 0x71e2156c
push dword [ebp - 0x20]
call esi
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x71e2325d
cmp dword [ebp + 8], ebx
je 0x71e22fa0
push dword [ebp + 8]
call edi
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
push 1
push ebx
push 0x71e21544
push dword [ebp - 0x20]
call esi
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x71e2325d
cmp dword [ebp + 0xc], ebx
je 0x71e22fcc
push dword [ebp + 0xc]
call edi
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0xc]
push 1
push ebx
push 0x71e21534
push dword [ebp - 0x20]
call esi
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x71e2325d
push 1
lea eax, [ebp - 0x29]
push eax
push 3
push ebx
push 0x71e21504
push dword [ebp - 0x20]
call esi
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x71e2325d
push 4
pop eax
mov dword [ebp - 0x3fc], eax
mov dword [ebp - 0x400], eax
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x3fc]
push eax
push ebx
push 0x71e214e8
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 0x14], ebx
jne 0x71e2303d
cmp eax, ebx
jne 0x71e2303d
mov ecx, dword [ebp + 0x1c]
cmp ecx, dword [ebp - 0x404]
jae 0x71e23053
push 4
lea eax, [ebp + 0x1c]
push eax
push 4
push ebx
push 0x71e214e8
push dword [ebp - 0x20]
call esi
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x71e2325d
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x3fc]
push eax
push ebx
push 0x71e214c8
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 0x14], ebx
jne 0x71e23096
cmp eax, ebx
jne 0x71e23096
mov ecx, dword [ebp + 0x20]
cmp ecx, dword [ebp - 0x404]
jbe 0x71e230ac
push 4
lea eax, [ebp + 0x20]
push eax
push 4
push ebx
push 0x71e214c8
push dword [ebp - 0x20]
call esi
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x71e2325d
cmp dword [ebp + 0x14], ebx
je 0x71e231f2
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push ebx
push 0x71e214a4
push dword [ebp - 0x20]
call esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x408], ebx
mov eax, dword [ebp - 0x408]
cmp eax, dword [ebp + 0x14]
jge 0x71e2312d
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x408]
lea eax, [eax + ecx*8]
mov dword [ebp - 0x40c], eax
push dword [eax + 4]
call edi
mov ecx, dword [ebp - 0x40c]
push dword [ecx]
mov dword [ebp - 0x410], eax
call edi
pop ecx
pop ecx
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x410]
add ecx, edx
lea eax, [eax + ecx + 2]
mov dword [ebp - 0x24], eax
inc dword [ebp - 0x408]
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
jmp 0x71e230d9
mov eax, dword [ebp - 0x24]
add eax, eax
mov dword [ebp - 0x24], eax
add eax, 2
push eax
call fcn.71e23d62
mov dword [ebp - 0x28], eax
cmp eax, ebx
jne 0x71e23151
mov dword [ebp - 0x1c], 0x8007046a
jmp 0x71e2325d
mov dword [ebp - 0x414], eax
xor ecx, ecx
mov dword [ebp - 0x408], ecx
cmp ecx, dword [ebp + 0x14]
jge 0x71e231ca
mov edx, dword [ebp + 0x10]
lea ecx, [edx + ecx*8]
mov dword [ebp - 0x40c], ecx
push dword [ecx]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
push dword [ebp - 0x414]
call edi
mov ecx, dword [ebp - 0x414]
lea eax, [ecx + eax*2 + 2]
mov dword [ebp - 0x414], eax
mov ecx, dword [ebp - 0x40c]
push dword [ecx + 4]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
push dword [ebp - 0x414]
call edi
add esp, 0x18
mov ecx, dword [ebp - 0x414]
lea eax, [ecx + eax*2 + 2]
mov dword [ebp - 0x414], eax
inc dword [ebp - 0x408]
mov ecx, dword [ebp - 0x408]
jmp 0x71e2315f
mov word [eax], bx
inc eax
inc eax
mov dword [ebp - 0x414], eax
sub eax, dword [ebp - 0x28]
sar eax, 1
shl eax, 1
push eax
push dword [ebp - 0x28]
push 7
push ebx
push 0x71e2148c
push dword [ebp - 0x20]
call esi
mov dword [ebp - 0x1c], eax
jmp 0x71e23224
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x3fc]
push eax
push ebx
push 0x71e214a4
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x71e23224
mov dword [ebp - 0x1c], 0xc7ff000c
lea eax, [ebp - 0x424]
push eax
push 1
call fcn.71e223bf
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x71e23244
push eax
push 0x80000602
call fcn.71e22363
cmp dword [ebp - 0x1c], ebx
jne 0x71e2325d
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.71e22981
mov dword [ebp - 0x1c], eax
or dword [ebp - 4], 0xffffffff
call fcn.71e23273
mov eax, dword [ebp - 0x1c]
call fcn.71e2569d
ret 0x1c