Function at 0x6e038165
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x84c
mov eax, 0x6e04f88b
call fcn.6e04acac
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 0x6e03818e
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.6e03856a
pop ecx
test al, al
je 0x6e0384f9
and dword [ebp - 0x800], 0
lea ecx, [ebp - 0x810]
xor eax, eax
mov dword [ebp - 0x7fc], esi
push 0x6e05c918
mov word [ebp - 0x810], ax
call fcn.6e010f41
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.6e010f41
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 0x6e0382c4
lfence
test eax, eax
jne 0x6e038266
xor esi, esi
jmp 0x6e0382c7
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 0x6e0382b6
push dword [ebp - 0x850]
push dword [ebp - 0x848]
push esi
call fcn.6e01daf9
add esp, 0xc
test eax, eax
je 0x6e038561
mov eax, dword [ebp - 0x84c]
add esi, 2
sub eax, esi
sar eax, 1
push eax
push dword [ebp - 0x858]
push esi
call fcn.6e01daf9
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x6e038284
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.6e01daf9
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 SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x6e03842a
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 0x6e03841e
cmp dword [ebp - 0x850], 1
jne 0x6e03841e
cmp dword [ebp - 0x858], esi
je 0x6e03841e
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.6e010f41
lea eax, [ebp - 0x840]
mov ecx, edi
push eax
call fcn.6e01daf9
mov eax, dword [ebp - 0x82c]
cmp eax, ebx
jb 0x6e038417
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 0x6e03840a
lea eax, [ebp - 0x84c]
push eax
lea eax, [ebp - 0x848]
push eax
call fcn.6e01daf9
mov eax, dword [ebp - 0x84c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x848]
push eax
push ecx
call fcn.6e01daf9
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 0x6e038482
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 0x6e038479
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x84c]
push eax
call fcn.6e01daf9
mov eax, dword [ebp - 0x848]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x84c]
push eax
push ecx
call fcn.6e01daf9
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 0x6e0384f3
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 0x6e0384ea
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x84c]
push eax
call fcn.6e01daf9
mov eax, dword [ebp - 0x848]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x84c]
push eax
push ecx
call fcn.6e01daf9
pop ecx
pop ecx
mov bl, byte [ebp - 0x841]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x814]
cmp eax, 8
jb 0x6e038559
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 0x6e038550
lea eax, [ebp - 0x854]
push eax
lea eax, [ebp - 0x848]
push eax
call fcn.6e01daf9
mov eax, dword [ebp - 0x854]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x848]
push eax
push ecx
call fcn.6e01daf9
pop ecx
pop ecx
mov al, bl
call fcn.6e04ac56
ret
sub esi, ebx
sar esi, 1
jmp 0x6e0382c7