Function at 0x10017ace
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x84c
mov eax, 0x1002d914
call fcn.1002b09b
mov edi, dword [ebp + 8]
xor edx, edx
mov bl, dl
mov eax, edi
mov byte [ebp - 0x841], bl
mov dword [edi + 0x10], edx
cmp dword [edi + 0x14], 8
jb 0x10017af7
mov eax, dword [edi]
xor ecx, ecx
mov word [eax], cx
xor eax, eax
push 7
pop esi
mov dword [ebp - 0x818], edx
mov dword [ebp - 0x814], esi
mov word [ebp - 0x828], ax
lea eax, [ebp - 0x828]
mov dword [ebp - 4], edx
push eax
call fcn.10017ed3
pop ecx
test al, al
je 0x10017e62
and dword [ebp - 0x800], 0
lea ecx, [ebp - 0x810]
xor eax, eax
mov dword [ebp - 0x7fc], esi
push 0x10031920
mov word [ebp - 0x810], ax
call fcn.1000330f
and dword [ebp - 0x7e8], 0
lea ecx, [ebp - 0x7f8]
xor eax, eax
mov byte [ebp - 4], 1
push str.SoftwareMicrosoftOffice_sOutlookSecurity
mov dword [ebp - 0x7e4], esi
mov word [ebp - 0x7f8], ax
call fcn.1000330f
cmp dword [ebp - 0x7fc], 8
lea edx, [ebp - 0x810]
mov eax, dword [ebp - 0x800]
lea ebx, [ebp - 0x7f8]
cmovae edx, dword [ebp - 0x810]
cmp dword [ebp - 0x7e4], 8
mov ecx, dword [ebp - 0x7e8]
cmovae ebx, dword [ebp - 0x7f8]
mov byte [ebp - 4], 2
mov dword [ebp - 0x848], edx
mov dword [ebp - 0x850], eax
cmp eax, ecx
ja 0x10017c2d
lfence
test eax, eax
jne 0x10017bcf
xor esi, esi
jmp 0x10017c30
sub ecx, eax
inc ecx
lea eax, [ebx + ecx*2]
movzx ecx, word [edx]
mov dword [ebp - 0x84c], eax
sub eax, ebx
sar eax, 1
push eax
push ecx
mov dword [ebp - 0x858], ecx
push ebx
jmp 0x10017c1f
push dword [ebp - 0x850]
push dword [ebp - 0x848]
push esi
call fcn.100077e4
add esp, 0xc
test eax, eax
je 0x10017eca
mov eax, dword [ebp - 0x84c]
add esi, 2
sub eax, esi
sar eax, 1
push eax
push dword [ebp - 0x858]
push esi
call fcn.100077e4
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10017bed
or esi, 0xffffffff
push 8
pop ebx
cmp dword [ebp - 0x814], ebx
lea eax, [ebp - 0x828]
push dword [ebp - 0x818]
cmovae eax, dword [ebp - 0x828]
lea ecx, [ebp - 0x7f8]
push eax
push dword [ebp - 0x850]
push esi
call fcn.10014a0c
cmp dword [ebp - 0x7e4], ebx
lea ecx, [ebp - 0x854]
push ecx
lea eax, [ebp - 0x7f8]
cmovae eax, dword [ebp - 0x7f8]
xor esi, esi
push 0x20019
push esi
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10017d93
lea eax, [ebp - 0x858]
mov dword [ebp - 0x850], esi
push eax
lea eax, [ebp - 0x7e0]
mov dword [ebp - 0x858], 0x7d0
push eax
lea eax, [ebp - 0x850]
push eax
push esi
push str.OutlookSecureTempFolder
push dword [ebp - 0x854]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10017d87
cmp dword [ebp - 0x850], 1
jne 0x10017d87
cmp dword [ebp - 0x858], esi
je 0x10017d87
mov word [ebp - 0x840], ax
lea ecx, [ebp - 0x840]
lea eax, [ebp - 0x7e0]
mov dword [ebp - 0x830], esi
push eax
mov dword [ebp - 0x82c], 7
call fcn.1000330f
lea eax, [ebp - 0x840]
mov ecx, edi
push eax
call fcn.100077e4
mov eax, dword [ebp - 0x82c]
cmp eax, ebx
jb 0x10017d80
mov ecx, dword [ebp - 0x840]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x84c], eax
mov dword [ebp - 0x848], ecx
mov byte [ebp - 4], 3
cmp eax, 0x1000
jb 0x10017d73
lea eax, [ebp - 0x84c]
push eax
lea eax, [ebp - 0x848]
push eax
call fcn.100077e4
mov eax, dword [ebp - 0x84c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x848]
push eax
push ecx
call fcn.100077e4
pop ecx
pop ecx
mov byte [ebp - 4], 2
mov byte [ebp - 0x841], 1
push dword [ebp - 0x854]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x7e4]
cmp eax, ebx
jb 0x10017deb
mov ecx, dword [ebp - 0x7f8]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x848], eax
mov dword [ebp - 0x84c], ecx
mov byte [ebp - 4], 4
cmp eax, 0x1000
jb 0x10017de2
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x84c]
push eax
call fcn.100077e4
mov eax, dword [ebp - 0x848]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x84c]
push eax
push ecx
call fcn.100077e4
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x7e8], esi
mov word [ebp - 0x7f8], ax
mov eax, dword [ebp - 0x7fc]
mov dword [ebp - 0x7e4], 7
cmp eax, ebx
jb 0x10017e5c
mov ecx, dword [ebp - 0x810]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x848], eax
mov dword [ebp - 0x84c], ecx
mov byte [ebp - 4], 5
cmp eax, 0x1000
jb 0x10017e53
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x84c]
push eax
call fcn.100077e4
mov eax, dword [ebp - 0x848]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x84c]
push eax
push ecx
call fcn.100077e4
pop ecx
pop ecx
mov bl, byte [ebp - 0x841]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x814]
cmp eax, 8
jb 0x10017ec2
mov ecx, dword [ebp - 0x828]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x854], eax
mov dword [ebp - 0x848], ecx
mov dword [ebp - 4], 6
cmp eax, 0x1000
jb 0x10017eb9
lea eax, [ebp - 0x854]
push eax
lea eax, [ebp - 0x848]
push eax
call fcn.100077e4
mov eax, dword [ebp - 0x854]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x848]
push eax
push ecx
call fcn.100077e4
pop ecx
pop ecx
mov al, bl
call fcn.1002b045
ret
sub esi, ebx
sar esi, 1
jmp 0x10017c30