Function at 0x445700
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get session user name
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6177c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5f4
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], esi
mov word [ebp - 0x18], si
mov eax, dword [0x6f6360]
mov dword [ebp - 4], esi
cmp eax, esi
mov byte [ebp - 4], 1
jne 0x445755
call fcn.004450c0
mov eax, dword [0x6f6360]
cmp eax, esi
je 0x44589e
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x264]
push ecx
push edx
push esi
push esi
push str.AppDataIDMFolder
push eax
mov dword [ebp - 0x20], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x44589e
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44589e
mov ecx, 0x6c5098
test ecx, ecx
je 0x445873
lea edx, [ebp - 0x264]
test edx, edx
je 0x445873
lea eax, [ebp - 0x264]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], ebx
mov word [ebp - 0x2c], bx
call fcn.004023c0
mov ecx, 0x6f6320
mov byte [ebp - 4], 2
call fcn.00401070
push 0x6c5098
lea ecx, [ebp - 0x40]
call fcn.00402330
mov esi, dword [ebp - 0x38]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.004023b0
push eax
call fcn.005e519b
lea esi, [eax + esi + 2]
lea edi, [esi + esi]
push edi
call fcn.005fdccd
mov edx, eax
add esp, 8
cmp edx, ebx
mov dword [0x6f6320], edx
je 0x44585b
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x30]
call fcn.004023b0
push eax
lea ecx, [ebp - 0x40]
call fcn.004023b0
push eax
mov eax, dword [0x6f6320]
push esi
push eax
call fcn.005e512b
mov ecx, dword [0x6f6320]
push ecx
call fcn.005e519b
add esp, 0x14
mov dword [0x6f6328], eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.00401070
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x25
xor eax, eax
lea edi, [ebp - 0x2f8]
lea edx, [ebp - 0x2f8]
mov dword [ebp - 4], 0
push edx
rep stosd dword es:[edi], eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x2f8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x445c70
cmp dword [ebp - 0x2e8], 2
jne 0x445c70
push str.shell32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
mov dword [ebp - 0x50], edi
je 0x445aae
push str.SHGetFolderPathW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x445a9c
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x264]
push eax
push 0
push 0
push 0x1a
push 0
call esi
test eax, eax
jne 0x445a96
lea ecx, [ebp - 0x264]
push ecx
call fcn.005e519b
add esp, 4
dec eax
mov dword [ebp - 0x20], eax
mov esi, 0x6f5cbc
cmp word [ebp + eax*2 - 0x264], 0x5c
je 0x44595b
mov esi, 0x6c5154
mov edx, str._s_sIDM
test edx, edx
je 0x445a66
lea eax, [ebp - 0x264]
test eax, eax
je 0x445a66
test esi, esi
je 0x445a66
push edx
lea ecx, [ebp - 0x4c]
call fcn.00402330
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 6
push ecx
lea ecx, [ebp - 0x30]
call fcn.0040e5b0
mov bl, 7
push esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.0040e5b0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 8
call fcn.00401070
mov edi, dword [ebp - 0x30]
test edi, edi
jne 0x4459be
lea edi, [ebp - 0x2c]
mov esi, dword [ebp - 0x44]
lea ecx, [ebp - 0x40]
call fcn.004023b0
push eax
call fcn.005e519b
mov edx, eax
push edi
mov dword [ebp - 0x34], edx
call fcn.005e519b
mov edx, dword [ebp - 0x34]
add esi, edx
lea esi, [eax + esi + 3]
lea edi, [esi + esi]
push edi
call fcn.005fdccd
mov edx, eax
add esp, 0xc
test edx, edx
mov dword [ebp - 0x1c], edx
je 0x445a40
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x40]
call fcn.004023b0
push eax
lea ecx, [ebp - 0x30]
call fcn.004023b0
push eax
lea ecx, [ebp - 0x4c]
call fcn.004023b0
push eax
mov eax, dword [ebp - 0x1c]
push esi
push eax
call fcn.005e512b
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.005e519b
add esp, 0x18
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.00401070
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 6
call fcn.00401070
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.00401070
mov edi, dword [ebp - 0x50]
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x445a70
lea eax, [ebp - 0x18]
push eax
call fcn.005e71ee
mov eax, dword [ebp - 0x1c]
add esp, 4
test eax, eax
jne 0x445a83
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x445a96
mov dword [ebp - 0x24], 1
call dword [sym.imp.ole32.dll_CoUninitialize]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x445fb6
lea edx, [ebp - 0x34]
push edx
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x445c70
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x264]
push eax
push ecx
push 0
push 0
push 0x6c988c
push edx
mov dword [ebp - 0x20], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x445c5b
lea eax, [ebp - 0x264]
push eax
call fcn.005e519b
add esp, 4
dec eax
mov dword [ebp - 0x20], eax
mov esi, 0x6f5cbc
cmp word [ebp + eax*2 - 0x264], 0x5c
je 0x445b23
mov esi, 0x6c5154
mov ecx, str._s_sIDM
test ecx, ecx
je 0x445c2b
lea edx, [ebp - 0x264]
test edx, edx
je 0x445c2b
test esi, esi
je 0x445c2b
push ecx
lea ecx, [ebp - 0x40]
call fcn.00402330
lea eax, [ebp - 0x264]
lea ecx, [ebp - 0x30]
push eax
mov byte [ebp - 4], 9
call fcn.0040e5b0
mov bl, 0xa
push esi
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.0040e5b0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xb
call fcn.00401070
mov edi, dword [ebp - 0x30]
test edi, edi
jne 0x445b86
lea edi, [ebp - 0x2c]
mov esi, dword [ebp - 0x38]
lea ecx, [ebp - 0x4c]
call fcn.004023b0
push eax
call fcn.005e519b
mov edx, eax
push edi
mov dword [ebp - 0x50], edx
call fcn.005e519b
mov ecx, dword [ebp - 0x50]
add esi, ecx
lea esi, [eax + esi + 3]
lea edi, [esi + esi]
push edi
call fcn.005fdccd
mov edx, eax
add esp, 0xc
test edx, edx
mov dword [ebp - 0x1c], edx
je 0x445c08
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x4c]
call fcn.004023b0
push eax
lea ecx, [ebp - 0x30]
call fcn.004023b0
push eax
lea ecx, [ebp - 0x40]
call fcn.004023b0
push eax
mov eax, dword [ebp - 0x1c]
push esi
push eax
call fcn.005e512b
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.005e519b
add esp, 0x18
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.00401070
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 9
call fcn.00401070
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.00401070
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x445c35
lea eax, [ebp - 0x18]
push eax
call fcn.005e71ee
mov eax, dword [ebp - 0x1c]
add esp, 4
test eax, eax
jne 0x445c48
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x445c5b
mov dword [ebp - 0x24], 1
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x445fb6
lea eax, [ebp - 0x264]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x445fb6
lea ecx, [ebp - 0x264]
push ecx
call fcn.005e519b
add esp, 4
dec eax
mov dword [ebp - 0x20], eax
mov esi, 0x6f5cbc
cmp word [ebp + eax*2 - 0x264], 0x5c
je 0x445cb2
mov esi, 0x6c5154
mov edx, str._s_sIDM
test edx, edx
je 0x445db5
lea eax, [ebp - 0x264]
test eax, eax
je 0x445db5
test esi, esi
je 0x445db5
push edx
lea ecx, [ebp - 0x30]
call fcn.00402330
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 0xc
push ecx
lea ecx, [ebp - 0x40]
call fcn.0040e5b0
mov bl, 0xd
push esi
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.0040e5b0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xe
call fcn.00401070
mov esi, dword [ebp - 0x28]
lea ecx, [ebp - 0x4c]
call fcn.004023b0
push eax
call fcn.005e519b
add esp, 4
lea ecx, [ebp - 0x40]
mov edi, eax
call fcn.004023b0
push eax
call fcn.005e519b
add esi, edi
lea esi, [eax + esi + 3]
lea edi, [esi + esi]
push edi
call fcn.005fdccd
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x1c], edx
je 0x445d92
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x4c]
call fcn.004023b0
push eax
lea ecx, [ebp - 0x40]
call fcn.004023b0
push eax
lea ecx, [ebp - 0x30]
call fcn.004023b0
push eax
mov eax, dword [ebp - 0x1c]
push esi
push eax
call fcn.005e512b
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.005e519b
add esp, 0x18
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.00401070
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xc
call fcn.00401070
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 5
call fcn.00401070
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x445dbf
lea eax, [ebp - 0x18]
push eax
call fcn.005e71ee
add esp, 4
lea edx, [ebp - 0x50]
lea eax, [ebp - 0x3f8]
mov dword [ebp - 0x50], 0x100
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x445df9
lea ecx, [ebp - 0x3f8]
push 0x6c9870
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
lea edx, [ebp - 0x3f8]
push edx
call fcn.005e519b
add esp, 4
cmp eax, 0x20
jbe 0x445e16
mov word [ebp - 0x3ba], 0
mov eax, dword [ebp - 0x20]
mov esi, 0x6f5cbc
cmp word [ebp + eax*2 - 0x264], 0x5c
je 0x445e2e
mov esi, 0x6c5154
mov ecx, str._s_sIDM_s
test ecx, ecx
je 0x445f86
lea edx, [ebp - 0x264]
test edx, edx
je 0x445f86
test esi, esi
je 0x445f86
lea eax, [ebp - 0x3f8]
test eax, eax
je 0x445f86
lea ecx, [ebp - 0x264]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.0040e5b0
push esi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xf
call fcn.0040e5b0
lea edx, [ebp - 0x3f8]
lea ecx, [ebp - 0x40]
push edx
mov byte [ebp - 4], 0x10
call fcn.0040e5b0
mov bl, 0x11
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00401070
push str._s_sIDM_s
lea ecx, [ebp - 0x4c]
call fcn.00402330
mov esi, dword [ebp - 0x44]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x12
call fcn.004023b0
push eax
call fcn.005e519b
add esp, 4
lea ecx, [ebp - 0x30]
mov edi, eax
call fcn.004023b0
push eax
call fcn.005e519b
mov dword [ebp - 0x34], edi
mov edi, eax
add esp, 4
lea ecx, [ebp - 0x5c]
add edi, esi
call fcn.004023b0
push eax
call fcn.005e519b
mov ecx, dword [ebp - 0x34]
add edi, ecx
lea esi, [eax + edi + 4]
lea edi, [esi + esi]
push edi
call fcn.005fdccd
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x1c], edx
je 0x445f57
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x40]
call fcn.004023b0
push eax
lea ecx, [ebp - 0x30]
call fcn.004023b0
push eax
lea ecx, [ebp - 0x5c]
call fcn.004023b0
push eax
lea ecx, [ebp - 0x4c]
call fcn.004023b0
push eax
mov eax, dword [ebp - 0x1c]
push esi
push eax
call fcn.005e512b
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.005e519b
add esp, 0x1c
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.00401070
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x10
call fcn.00401070
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xf
call fcn.00401070
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 5
call fcn.00401070
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x445f90
lea eax, [ebp - 0x18]
push eax
call fcn.005e71ee
mov eax, dword [ebp - 0x1c]
add esp, 4
test eax, eax
jne 0x445fa3
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x445fb6
mov dword [ebp - 0x24], 1
mov esi, dword [ebp - 0x24]
mov dword [ebp - 4], 0
test esi, esi
mov byte [ebp - 4], 0x14
jne 0x4460e0
lea edx, [ebp - 0x264]
push 0x104
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x264]
push 0x5c
push eax
call fcn.005e50eb
add esp, 8
test eax, eax
je 0x445ffa
add eax, 2
mov word [eax], si
mov ecx, 0x6c5098
test ecx, ecx
je 0x4460c5
lea edx, [ebp - 0x264]
test edx, edx
je 0x4460c5
lea eax, [ebp - 0x264]
lea ecx, [ebp - 0x4c]
push eax
call fcn.0040e5b0
mov bl, 0x15
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00401070
push 0x6c5098
lea ecx, [ebp - 0x5c]
call fcn.00402330
mov esi, dword [ebp - 0x54]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x16
call fcn.004023b0
push eax
call fcn.005e519b
lea esi, [eax + esi + 2]
lea edi, [esi + esi]
push edi
call fcn.005fdccd
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x1c], edx
je 0x4460ab
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x4c]
call fcn.004023b0
push eax
lea ecx, [ebp - 0x5c]
call fcn.004023b0
push eax
mov eax, dword [ebp - 0x1c]
push esi
push eax
call fcn.005e512b
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.005e519b
add esp, 0x14
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], bl
call fcn.00401070
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x14
call fcn.00401070
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x4460cf
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4460e0
mov esi, 1
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x4460ea
lea eax, [ebp - 0x18]
push 0x7e
push eax
call fcn.005e569b
add esp, 8
test eax, eax
je 0x44615a
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x5fe]
mov word [ebp - 0x600], 0
rep stosd dword es:[edi], eax
lea edx, [ebp - 0x600]
lea ecx, [ebp - 0x1c]
push edx
stosw word es:[edi], ax
call fcn.004023b0
push eax
call fcn.0044d8c0
add esp, 8
lea ecx, [ebp - 0x5c]
push eax
call fcn.0040e5b0
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x17
call fcn.004023b0
push eax
push 0x6c5098
lea ecx, [ebp - 0x1c]
call fcn.0041afe0
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x14
call fcn.00401070
lea ecx, [ebp - 0x1c]
call fcn.004023b0
push eax
call fcn.005e519b
add esp, 4
dec eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], eax
call fcn.004023b0
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2], 0x5c
mov eax, 0x6f5cbc
je 0x44618b
mov eax, 0x6c5154
push eax
lea ecx, [ebp - 0x1c]
call fcn.004023b0
push eax
push 0x6c5124
mov ecx, 0x6f6320
call fcn.0040fbe0
mov eax, dword [0x6f6360]
test eax, eax
je 0x4461e5
mov ecx, 0x6f6320
call fcn.004023b0
push eax
call fcn.005e519b
add esp, 4
lea edx, [eax + eax + 2]
mov ecx, 0x6f6320
push edx
call fcn.004023b0
push eax
mov eax, dword [0x6f6360]
push 1
push 0
push str.AppDataIDMFolder
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.00401070
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret