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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10150abd
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x101fe1c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7c], edx
mov edi, ecx
movzx ecx, word [edi + 0x18]
xor esi, esi
mov bl, cl
mov dword [ebp - 0x78], esi
shr bl, 7
and bl, 1
call fcn.1007213c
test al, al
je 0x10072b59
and cl, 0x30
cmp cl, 0x20
jne 0x10073116
cmp dword [0x10206b50], esi
jne 0x10073116
mov dl, 1
mov ecx, edi
call fcn.10072157
test al, al
jne 0x10073116
push ecx
xor eax, eax
mov dword [ebp - 0x84], esi
push 0x102040ac
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x8c], eax
call fcn.1002dd9a
xor edx, edx
mov dword [ebp - 0x80], edx
test bl, bl
jne 0x10072e11
mov ebx, edx
cmp ebx, 4
jge 0x10072cb6
movzx eax, byte [edi + 0x14]
lea ecx, [ebp - 0x9c]
push edx
push eax
push edx
mov byte [ebp - 0x71], dl
push edx
mov edx, dword [edi + 0x10]
call fcn.10073217
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x94], ecx
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x90], ecx
lea ecx, [ebp - 0x94]
push eax
call fcn.100714b4
mov ecx, dword [ebp - 0x98]
test ecx, ecx
je 0x10072c01
xor eax, eax
mov dword [ebp - 0x98], eax
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x78], 0
jne 0x10072ca7
mov eax, dword [ebp - 0x80]
lea ecx, [ebp - 0x88]
push ecx
xor edx, edx
lea ecx, [ebp - 0x8c]
push edx
push ecx
push edx
push dword [edi]
push dword [eax + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edx, edx
mov dword [ebp - 0x78], eax
test eax, eax
jne 0x10072c80
mov ecx, dword [ebp - 0x88]
mov eax, edx
test ecx, ecx
je 0x10072c80
push ecx
lea ecx, [ebp - 0x84]
call fcn.10071b1b
mov esi, dword [ebp - 0x84]
xor edx, edx
test al, al
jne 0x10072c5d
push 8
pop eax
jmp 0x10072c7d
mov eax, dword [ebp - 0x80]
lea ecx, [ebp - 0x88]
push ecx
push esi
lea ecx, [ebp - 0x8c]
push ecx
push edx
push dword [edi]
push dword [eax + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edx, edx
mov dword [ebp - 0x78], eax
mov ecx, eax
call fcn.10071f91
test eax, eax
je 0x10072ca7
mov ecx, dword [edi + 0x10]
movzx eax, word [ecx + 6]
and eax, 0x1f
shl eax, 4
mov dword [eax + 0x101ff600], edx
call fcn.10070b06
mov al, 1
jmp 0x10072caa
mov al, byte [ebp - 0x71]
inc ebx
push 0
pop edx
test al, al
jne 0x10072baa
cmp dword [ebp - 0x78], 0
jne 0x10072d8c
test esi, esi
je 0x10072d8c
movzx eax, word [edi + 0x18]
and eax, 0xf
cmp dword [ebp - 0x8c], eax
jne 0x10072e11
sub eax, 1
je 0x10072d09
sub eax, 1
je 0x10072d09
mov ecx, dword [ebp - 0x88]
mov ebx, dword [ebp - 0x7c]
cmp ecx, dword [ebp + 8]
jne 0x10072e14
push ecx
push ebx
push esi
call fcn.10035860
add esp, 0xc
test eax, eax
jmp 0x10072dd9
mov eax, dword [ebp - 0x88]
mov ebx, dword [ebp - 0x7c]
shr eax, 1
cmp word [esi + eax*2 - 2], dx
jne 0x10072e14
mov ecx, ebx
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10072d49
test dx, dx
je 0x10072d45
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10072d49
add eax, 4
add ecx, 4
test dx, dx
jne 0x10072d23
xor eax, eax
jmp 0x10072d4e
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10072e14
xor edx, edx
mov ecx, dword [ebp - 0x80]
mov edi, dword [ebp - 0x78]
test ecx, ecx
je 0x10072d6a
mov dword [ebp - 0x80], edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x104]
call fcn.100303a3
test esi, esi
je 0x10072d85
xor eax, eax
push esi
mov dword [ebp - 4], eax
call fcn.1003bf94
pop ecx
mov eax, edi
jmp 0x10073118
mov ecx, dword [edi + 8]
cmp ecx, 0xcccccccc
je 0x10072e11
movzx eax, word [edi + 0x18]
and eax, 0xf
sub eax, 1
je 0x10072df2
sub eax, 1
je 0x10072df2
dec eax
sub eax, 1
je 0x10072ddd
sub eax, 7
je 0x10072dbe
push edx
push 0x599491
call fcn.1002a3d0
cmp dword [ebp + 8], 8
je 0x10072dcc
push edx
push 0x59948f
jmp 0x10072db9
mov ebx, dword [ebp - 0x7c]
cmp dword [ebx], ecx
jne 0x10072e14
mov eax, dword [ebx + 4]
cmp eax, dword [edi + 0xc]
je 0x10072e07
jmp 0x10072e14
cmp dword [ebp + 8], 4
je 0x10072deb
push edx
push 0x59948e
jmp 0x10072db9
mov ebx, dword [ebp - 0x7c]
cmp dword [ebx], ecx
jmp 0x10072dd9
cmp dword [ebp + 8], 2
jae 0x10072e00
push edx
push 0x59948d
jmp 0x10072db9
mov ebx, dword [ebp - 0x7c]
cmp ecx, ebx
jne 0x10072e14
xor edx, edx
mov dword [ebp - 0x78], edx
jmp 0x10072d58
mov ebx, dword [ebp - 0x7c]
xor edx, edx
mov dword [ebp - 0x84], 0x32
mov eax, edx
mov dword [ebp - 0x7c], eax
cmp eax, 4
jge 0x10072d58
movzx eax, byte [edi + 0x14]
lea ecx, [ebp - 0xb8]
push edx
push eax
push 4
mov byte [ebp - 0x71], dl
push edx
mov edx, dword [edi + 0x10]
call fcn.10073217
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x9c], ecx
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x98], ecx
lea ecx, [ebp - 0x9c]
push eax
call fcn.100714b4
mov ecx, dword [ebp - 0xb4]
test ecx, ecx
je 0x10072e7d
xor eax, eax
mov dword [ebp - 0xb4], eax
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x78]
test eax, eax
jne 0x10072ff0
push dword [ebp + 8]
movzx ecx, word [edi + 0x18]
mov eax, dword [ebp - 0x80]
and ecx, 0xf
push ebx
push ecx
xor ecx, ecx
push ecx
push dword [edi]
push dword [eax + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, eax
mov dword [ebp - 0x78], ecx
call fcn.10071f91
test eax, eax
je 0x10072ed6
mov ecx, dword [edi + 0x10]
xor edx, edx
movzx eax, word [ecx + 6]
and eax, 0x1f
shl eax, 4
mov dword [eax + 0x101ff600], edx
call fcn.10070b06
mov byte [ebp - 0x71], 1
jmp 0x100730fd
test ecx, ecx
je 0x100730fd
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x28]
push dword [ebp - 0x90]
mov edx, dword [edi + 0x10]
mov dword [ebp - 0xc0], eax
xor eax, eax
mov word [ebp - 0xbc], ax
mov eax, dword [edi]
mov dword [ebp - 0xd0], eax
xor eax, eax
mov dword [ebp - 0xc8], 0x10186c74
mov dword [ebp - 0xc4], str.Win32ErrorCode
mov dword [ebp - 0xd8], vtable.Mso::Logging::StructuredObject_wchar_t_const___1_.0
mov dword [ebp - 0xd4], str.RegistryValueName
mov word [ebp - 0xcc], ax
call fcn.10070eeb
lea eax, [ebp - 0x28]
push eax
push str.KeyPath
lea ecx, [ebp - 0x4c]
call fcn.10071923
mov dword [ebp - 0x90], eax
mov edx, 0x3a7
xor eax, eax
mov ecx, 0x16928cc
push eax
push 0x64
call fcn.1002c770
test al, al
je 0x10072fb9
mov edx, dword [ebp - 0x90]
lea ecx, [ebp - 0xb0]
xor eax, eax
mov dword [ebp - 0xb0], 0x16928cc
mov word [ebp - 0xa4], ax
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xac], 0x3a7
push eax
mov dword [ebp - 0xa8], 0x64
mov dword [ebp - 0xa0], str.Failed_to_write_registry_value.
call fcn.1007157f
lea ecx, [ebp - 0x44]
call fcn.100093c1
lea ecx, [ebp - 0x28]
call fcn.100093c1
mov ecx, dword [ebp - 0x78]
xor eax, eax
inc eax
lock xadd dword [0x10206af0], eax
inc eax
xor edx, edx
div dword [ebp - 0x84]
mov dword [edx*8 + 0x10206964], 0x10187590
jmp 0x100730f6
mov dword [ebp - 0xe0], eax
lea ecx, [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0xe8], 0x10186c74
mov word [ebp - 0xdc], ax
mov eax, dword [edi]
mov dword [ebp - 0xf0], eax
xor eax, eax
mov word [ebp - 0xec], ax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0xe4], str.Win32ErrorCode
mov dword [ebp - 0xf8], vtable.Mso::Logging::StructuredObject_wchar_t_const___1_.0
mov dword [ebp - 0xf4], str.RegistryValueName
push dword [eax]
call fcn.100111ba
lea eax, [ebp - 0x28]
push eax
push str.KeyName
lea ecx, [ebp - 0x70]
call fcn.10071923
mov dword [ebp - 0x90], eax
mov edx, 0x3a7
xor eax, eax
mov ecx, 0x16928cd
push eax
push 0x64
call fcn.1002c770
test al, al
je 0x100730c4
mov edx, dword [ebp - 0x90]
lea ecx, [ebp - 0xb0]
xor eax, eax
mov dword [ebp - 0xb0], 0x16928cd
mov word [ebp - 0xa4], ax
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0xf8]
mov dword [ebp - 0xac], 0x3a7
push eax
mov dword [ebp - 0xa8], 0x64
mov dword [ebp - 0xa0], str.Failed_to_open_registry_key.
call fcn.1007157f
lea ecx, [ebp - 0x68]
call fcn.100093c1
lea ecx, [ebp - 0x28]
call fcn.100093c1
mov ecx, dword [ebp - 0x78]
xor eax, eax
inc eax
lock xadd dword [0x10206af0], eax
inc eax
xor edx, edx
div dword [ebp - 0x84]
mov dword [edx*8 + 0x10206964], 0x10187628
mov dword [edx*8 + 0x10206960], ecx
mov eax, dword [ebp - 0x7c]
inc eax
cmp byte [ebp - 0x71], 0
push 0
mov dword [ebp - 0x7c], eax
pop edx
jne 0x10072e25
jmp 0x10072d58
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10033218
leave
ret 4