Function at 0x6c37177c
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1028
call fcn.6c3718ca
mov eax, dword [0x6c3a70b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push ebx
push 1
push 0x6c3a7084
mov dword [ebp - 0x1018], ebx
mov dword [ebp - 0x1010], ebx
mov dword [ebp - 0x101c], ebx
mov dword [ebp - 0x1014], ebx
mov dword [ebp - 0x1024], ebx
mov dword [ebp - 0x1020], ebx
mov dword [ebp - 0x1008], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x6c371f22
push esi
push edi
lea eax, [ebp - 0x1014]
push eax
push 0x20019
push ebx
push 0x6c371868
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x100c], eax
cmp eax, ebx
je 0x6c371f29
cmp dword [ebp - 0x101c], ebx
jne 0x6c371f95
pop edi
pop esi
cmp dword [ebp - 0x1014], ebx
jne 0x6c372291
cmp dword [ebp - 0x1008], ebx
jne 0x6c3722af
mov eax, dword [ebp - 0x101c]
mov dword [0x6c3a7048], eax
mov eax, dword [ebp - 0x1024]
mov dword [0x6c3a7078], eax
mov eax, dword [ebp - 0x1020]
mov dword [0x6c3a707c], eax
mov eax, dword [ebp - 0x100c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.6c371640
leave
ret
xor eax, eax
jmp 0x6c371858
cmp dword [ebp - 0x1014], ebx
je 0x6c37180b
cmp dword [ebp - 0x1014], 0xffffffff
je 0x6c37180b
push 4
pop edi
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x101c]
push eax
lea eax, [ebp - 0x1018]
push eax
push ebx
push 0x6c3722c8
push dword [ebp - 0x1014]
mov dword [ebp - 0x1010], edi
mov dword [ebp - 0x1018], ebx
call esi
mov dword [ebp - 0x100c], eax
cmp eax, ebx
jne 0x6c371f8a
cmp dword [ebp - 0x1018], edi
je 0x6c37180b
mov dword [ebp - 0x101c], ebx
jmp 0x6c37180b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x6c3a7554], eax
lea eax, [ebp - 0x1010]
push eax
push ebx
lea eax, [ebp - 0x1018]
push eax
push ebx
mov edi, 0x6c3722e8
push edi
push dword [ebp - 0x1014]
mov dword [ebp - 0x1018], ebx
mov dword [ebp - 0x1010], ebx
mov dword [ebp - 0x1028], ebx
call esi
mov dword [ebp - 0x100c], eax
cmp dword [ebp - 0x1010], ebx
jbe 0x6c37207e
cmp dword [ebp - 0x100c], ebx
je 0x6c371ffa
cmp dword [ebp - 0x100c], 0xea
jne 0x6c37207e
cmp dword [ebp - 0x1008], ebx
je 0x6c372016
push dword [ebp - 0x1008]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x1010]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x1008], eax
cmp eax, ebx
je 0x6c372062
mov ecx, dword [ebp - 0x1010]
mov dword [ebp - 0x1028], ecx
lea ecx, [ebp - 0x1010]
push ecx
push eax
lea eax, [ebp - 0x1018]
push eax
push ebx
push edi
push dword [ebp - 0x1014]
call esi
mov dword [ebp - 0x100c], eax
jmp 0x6c37206c
mov dword [ebp - 0x100c], 0xe
mov eax, dword [ebp - 0x1028]
cmp eax, dword [ebp - 0x1010]
jb 0x6c371fe2
cmp dword [ebp - 0x100c], ebx
jne 0x6c37209b
cmp dword [ebp - 0x1018], 1
jne 0x6c37209b
cmp dword [ebp - 0x1008], ebx
jne 0x6c372127
push 0x6c37232c
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add esi, 0x106
cmp dword [ebp - 0x1008], ebx
je 0x6c3720ca
push dword [ebp - 0x1008]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [esi + esi]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 0x1008], edi
cmp edi, ebx
je 0x6c371817
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jbe 0x6c372117
push 0x6c372360
push esi
push edi
call fcn.6c377641
push 0x6c37232c
push esi
push edi
call fcn.6c377641
jmp 0x6c372127
push 0x6c372344
push 0x104
push edi
call fcn.6c3738f9
mov edi, 0x1000
push edi
lea eax, [ebp - 0x1004]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov esi, 0x6c372308
push esi
push 0x22
lea eax, [ebp - 0xf8c]
push eax
mov dword [ebp - 0x1004], edi
mov dword [ebp - 0xfd8], 0x20000
mov dword [ebp - 0xf94], 0x78
mov dword [ebp - 0xf98], 0x9a
call fcn.6c373933
push dword [ebp - 0x1008]
mov eax, dword [ebp - 0xf98]
push 0xf66
lea eax, [ebp + eax - 0x1004]
push eax
call fcn.6c373933
lea eax, [ebp - 0x1004]
push eax
push esi
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryTraceW]
mov dword [ebp - 0x100c], eax
cmp eax, ebx
jne 0x6c3721ca
mov eax, dword [ebp - 0xffc]
mov dword [ebp - 0x1024], eax
mov eax, dword [ebp - 0xff8]
mov dword [ebp - 0x1020], eax
jmp 0x6c371817
push edi
lea eax, [ebp - 0x1004]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
push 0x22
lea eax, [ebp - 0xf8c]
push eax
mov dword [ebp - 0x1004], edi
mov dword [ebp - 0xfd8], 0x20000
mov dword [ebp - 0xfd4], 0x40
mov dword [ebp - 0xfc4], 0x1000005
mov dword [ebp - 0xf94], 0x78
mov dword [ebp - 0xf98], 0x9a
call fcn.6c373933
push dword [ebp - 0x1008]
mov eax, dword [ebp - 0xf98]
push 0xf66
lea eax, [ebp + eax - 0x1004]
push eax
call fcn.6c373933
lea eax, [ebp - 0x1004]
push eax
push esi
lea eax, [ebp - 0x1024]
push eax
call dword [sym.imp.ADVAPI32.dll_StartTraceW]
mov dword [ebp - 0x100c], eax
cmp eax, ebx
jne 0x6c37227a
mov eax, dword [ebp - 0x1024]
mov dword [0x6c3a7078], eax
mov eax, dword [ebp - 0x1020]
mov dword [0x6c3a707c], eax
jmp 0x6c371817
mov dword [ebp - 0x101c], ebx
mov dword [ebp - 0x1024], ebx
mov dword [ebp - 0x1020], ebx
jmp 0x6c371817
cmp dword [ebp - 0x1014], 0xffffffff
je 0x6c371825
push dword [ebp - 0x1014]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x6c371825
push dword [ebp - 0x1008]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x6c371831