Function at 0x1003879
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb54
mov eax, dword [0x100d0ac]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xb4c], eax
lea eax, [ebp - 0xb3c]
push eax
mov dword [ebp - 0xb44], ebx
mov byte [ebx], 0
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jge 0x10038ba
xor eax, eax
jmp 0x1003b08
and dword [ebp - 0xb40], 0
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push edi
lea eax, [ebp - 0xb38]
push eax
push 0x23
push 0
call esi
test eax, eax
mov edi, 0x104
jl 0x1003912
push ebx
push dword [ebp - 0xb38]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x1003ad9
mov eax, dword [ebp - 0xb3c]
push dword [ebp - 0xb38]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
and dword [ebp - 0xb38], 0
jmp 0x1003aa4
lea eax, [ebp - 0xb38]
push eax
push 0x1a
push 0
call esi
test eax, eax
lea eax, [ebp - 0x214]
jl 0x1003959
push eax
push dword [ebp - 0xb38]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x1003ad9
mov eax, dword [ebp - 0xb3c]
push dword [ebp - 0xb38]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
and dword [ebp - 0xb38], 0
jmp 0x100396c
push edi
push eax
push 0x1f5
push dword [ebp - 0xb4c]
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0xb38]
push eax
push 0x19
xor ebx, ebx
push ebx
call esi
test eax, eax
jl 0x10039b7
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0xb38]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x1003996
inc ebx
mov eax, dword [ebp - 0xb3c]
push dword [ebp - 0xb38]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
and dword [ebp - 0xb38], 0
test ebx, ebx
jne 0x1003a4a
lea eax, [ebp - 0xb48]
push eax
push 0x20019
push 0
push 0x10014e0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1003a26
lea eax, [ebp - 0xb50]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0xb54]
push eax
push 0
push 0x10014d0
push dword [ebp - 0xb48]
xor esi, esi
inc esi
mov dword [ebp - 0xb50], edi
mov dword [ebp - 0xb54], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1003a16
mov ebx, esi
push dword [ebp - 0xb48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1003a4a
push edi
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1003a4a
push 0x10014c4
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x728]
call fcn.0100a825
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0xb34]
call fcn.0100a825
lea eax, [ebp - 0x41d]
push eax
lea eax, [ebp - 0x51e]
push eax
lea eax, [ebp - 0xa2b]
push eax
lea eax, [ebp - 0xa2f]
push eax
push 0x10014bc
push dword [ebp - 0xb44]
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, dword [ebp - 0xb44]
add esp, 0x18
push edi
lea eax, [ebp - 0x31c]
push eax
push 0x1f4
push dword [ebp - 0xb4c]
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
je 0x1003ad9
lea eax, [ebp - 0x31c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0xb40], 1
cmp dword [ebp - 0xb38], 0
pop edi
pop esi
je 0x1003af6
mov eax, dword [ebp - 0xb3c]
push dword [ebp - 0xb38]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0xb3c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xb40]
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01009b9d
leave
ret 8