Function at 0x44b440
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 0x63c9b8
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 - 0x30], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], esi
mov word [ebp - 0x18], si
mov eax, dword [0x6fcafc]
mov dword [ebp - 4], esi
cmp eax, esi
mov byte [ebp - 4], 1
jne 0x44b495
call fcn.0044aeb0
mov eax, dword [0x6fcafc]
cmp eax, esi
je 0x44b5e7
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 0x44b5e7
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44b5e7
mov ecx, 0x6c910c
test ecx, ecx
je 0x44b5bc
lea edx, [ebp - 0x264]
test edx, edx
je 0x44b5bc
lea eax, [ebp - 0x264]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], ebx
mov word [ebp - 0x38], bx
call fcn.00401f20
mov ecx, 0x6fca48
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x2c]
call fcn.004027c0
push ebx
push 0x6c910c
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.004027e0
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x3c]
call fcn.00401f10
push eax
call fcn.00609a4e
lea esi, [eax + esi + 2]
lea edi, [esi + esi]
push edi
call fcn.00622acb
mov edx, eax
add esp, 8
cmp edx, ebx
mov dword [0x6fca48], edx
je 0x44b5a4
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 - 0x3c]
call fcn.00401f10
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401f10
push eax
mov eax, dword [0x6fca48]
push esi
push eax
call fcn.006099de
mov ecx, dword [0x6fca48]
push ecx
call fcn.00609a4e
add esp, 0x14
mov dword [0x6fca50], eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x3c]
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
xor ebx, ebx
mov ecx, 0x25
xor eax, eax
lea edi, [ebp - 0x2f8]
lea edx, [ebp - 0x2f8]
mov dword [ebp - 4], ebx
rep stosd dword es:[edi], eax
push edx
mov byte [ebp - 4], 5
mov dword [ebp - 0x2f8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x44b9c5
cmp dword [ebp - 0x2e8], 2
jne 0x44b9c5
push str.shell32.dll
call fcn.0044abc0
mov edi, eax
add esp, 4
cmp edi, ebx
mov dword [ebp - 0x40], edi
je 0x44b7f9
push str.SHGetFolderPathW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x44b7e9
push ebx
call dword [0x6fc3fc]
lea eax, [ebp - 0x264]
push eax
push ebx
push ebx
push 0x1a
push ebx
call esi
cmp eax, ebx
jne 0x44b7e1
lea ecx, [ebp - 0x264]
push ecx
call fcn.00609a4e
add esp, 4
dec eax
mov dword [ebp - 0x20], eax
mov esi, 0x6fc41c
cmp word [ebp + eax*2 - 0x264], 0x5c
je 0x44b6a0
mov esi, 0x6c91c0
mov edx, str._s_sIDM
test edx, edx
je 0x44b7b1
lea eax, [ebp - 0x264]
test eax, eax
je 0x44b7b1
cmp esi, ebx
je 0x44b7b1
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], ebx
mov word [ebp - 0x38], bx
push ebx
push edx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 6
call fcn.004027e0
lea ecx, [ebp - 0x264]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.00401ee0
mov bl, 7
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.00401ee0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 8
call fcn.00401070
mov esi, dword [ebp - 0x34]
lea ecx, [ebp - 0x2c]
call fcn.00401f10
push eax
call fcn.00609a4e
add esp, 4
lea ecx, [ebp - 0x4c]
mov edi, eax
call fcn.00401f10
push eax
call fcn.00609a4e
add esi, edi
lea esi, [eax + esi + 3]
lea edi, [esi + esi]
push edi
call fcn.00622acb
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x1c], edx
je 0x44b78b
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 - 0x2c]
call fcn.00401f10
push eax
lea ecx, [ebp - 0x4c]
call fcn.00401f10
push eax
lea ecx, [ebp - 0x3c]
call fcn.00401f10
push eax
mov eax, dword [ebp - 0x1c]
push esi
push eax
call fcn.006099de
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00609a4e
add esp, 0x18
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.00401070
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 6
call fcn.00401070
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call fcn.00401070
mov edi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x44b7bb
lea eax, [ebp - 0x18]
push eax
call fcn.0060bc6e
mov eax, dword [ebp - 0x1c]
add esp, 4
test eax, eax
jne 0x44b7ce
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44b7e1
mov dword [ebp - 0x30], 1
call dword [0x6fc400]
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x30], ebx
jne 0x44bd23
lea edx, [ebp - 0x40]
push edx
push 1
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44b9c5
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x264]
push eax
push ecx
push ebx
push ebx
push 0x6cdec0
push edx
mov dword [ebp - 0x20], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x44b9b2
lea eax, [ebp - 0x264]
push eax
call fcn.00609a4e
add esp, 4
dec eax
mov dword [ebp - 0x20], eax
mov esi, 0x6fc41c
cmp word [ebp + eax*2 - 0x264], 0x5c
je 0x44b86b
mov esi, 0x6c91c0
mov ecx, str._s_sIDM
test ecx, ecx
je 0x44b982
lea edx, [ebp - 0x264]
test edx, edx
je 0x44b982
cmp esi, ebx
je 0x44b982
lea ecx, [ebp - 0x3c]
call fcn.004027c0
push ebx
push str._s_sIDM
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 9
call fcn.004027e0
lea eax, [ebp - 0x264]
lea ecx, [ebp - 0x2c]
push eax
call fcn.00401ee0
mov bl, 0xa
push esi
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.00401ee0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xb
call fcn.00401070
mov edi, dword [ebp - 0x2c]
test edi, edi
jne 0x44b8db
lea edi, [ebp - 0x28]
mov esi, dword [ebp - 0x34]
lea ecx, [ebp - 0x4c]
call fcn.00401f10
push eax
call fcn.00609a4e
mov edx, eax
push edi
mov dword [ebp - 0x50], edx
call fcn.00609a4e
mov ecx, dword [ebp - 0x50]
add esi, ecx
lea esi, [eax + esi + 3]
lea edi, [esi + esi]
push edi
call fcn.00622acb
mov edx, eax
add esp, 0xc
test edx, edx
mov dword [ebp - 0x1c], edx
je 0x44b95d
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.00401f10
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401f10
push eax
lea ecx, [ebp - 0x3c]
call fcn.00401f10
push eax
mov eax, dword [ebp - 0x1c]
push esi
push eax
call fcn.006099de
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00609a4e
add esp, 0x18
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.00401070
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 9
call fcn.00401070
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call fcn.00401070
xor ebx, ebx
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x44b98c
lea eax, [ebp - 0x18]
push eax
call fcn.0060bc6e
mov eax, dword [ebp - 0x1c]
add esp, 4
cmp eax, ebx
jne 0x44b99f
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44b9b2
mov dword [ebp - 0x30], 1
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x30], ebx
jne 0x44bd23
lea eax, [ebp - 0x264]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x44bd23
lea ecx, [ebp - 0x264]
push ecx
call fcn.00609a4e
add esp, 4
dec eax
mov dword [ebp - 0x20], eax
mov esi, 0x6fc41c
cmp word [ebp + eax*2 - 0x264], 0x5c
je 0x44ba07
mov esi, 0x6c91c0
mov edx, str._s_sIDM
test edx, edx
je 0x44bb18
lea eax, [ebp - 0x264]
test eax, eax
je 0x44bb18
test esi, esi
je 0x44bb18
lea ecx, [ebp - 0x2c]
call fcn.004027c0
push 0
push str._s_sIDM
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xc
call fcn.004027e0
lea ecx, [ebp - 0x264]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00401ee0
mov bl, 0xd
push esi
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.00401ee0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xe
call fcn.00401070
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x4c]
call fcn.00401f10
push eax
call fcn.00609a4e
add esp, 4
lea ecx, [ebp - 0x3c]
mov edi, eax
call fcn.00401f10
push eax
call fcn.00609a4e
add esi, edi
lea esi, [eax + esi + 3]
lea edi, [esi + esi]
push edi
call fcn.00622acb
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x1c], edx
je 0x44baf5
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.00401f10
push eax
lea ecx, [ebp - 0x3c]
call fcn.00401f10
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401f10
push eax
mov eax, dword [ebp - 0x1c]
push esi
push eax
call fcn.006099de
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00609a4e
add esp, 0x18
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.00401070
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xc
call fcn.00401070
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.00401070
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x44bb22
lea eax, [ebp - 0x18]
push eax
call fcn.0060bc6e
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 0x44bb5c
lea ecx, [ebp - 0x3f8]
push 0x6cdea4
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
lea edx, [ebp - 0x3f8]
push edx
call fcn.00609a4e
add esp, 4
cmp eax, 0x20
jbe 0x44bb79
mov word [ebp - 0x3ba], 0
mov eax, dword [ebp - 0x20]
mov esi, 0x6fc41c
cmp word [ebp + eax*2 - 0x264], 0x5c
je 0x44bb91
mov esi, 0x6c91c0
mov ecx, str._s_sIDM_s
test ecx, ecx
je 0x44bcf3
lea edx, [ebp - 0x264]
test edx, edx
je 0x44bcf3
test esi, esi
je 0x44bcf3
lea eax, [ebp - 0x3f8]
test eax, eax
je 0x44bcf3
lea ecx, [ebp - 0x264]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.00401ee0
push esi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xf
call fcn.00401ee0
lea edx, [ebp - 0x3f8]
lea ecx, [ebp - 0x4c]
push edx
mov byte [ebp - 4], 0x10
call fcn.00401ee0
mov bl, 0x11
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00401070
lea ecx, [ebp - 0x2c]
call fcn.004027c0
push 0
push str._s_sIDM_s
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x12
call fcn.004027e0
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x4c]
call fcn.00401f10
push eax
call fcn.00609a4e
add esp, 4
lea ecx, [ebp - 0x3c]
mov edi, eax
call fcn.00401f10
push eax
call fcn.00609a4e
mov dword [ebp - 0x40], edi
mov edi, eax
add esp, 4
lea ecx, [ebp - 0x5c]
add edi, esi
call fcn.00401f10
push eax
call fcn.00609a4e
mov ecx, dword [ebp - 0x40]
add edi, ecx
lea esi, [eax + edi + 4]
lea edi, [esi + esi]
push edi
call fcn.00622acb
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x1c], edx
je 0x44bcc4
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.00401f10
push eax
lea ecx, [ebp - 0x3c]
call fcn.00401f10
push eax
lea ecx, [ebp - 0x5c]
call fcn.00401f10
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401f10
push eax
mov eax, dword [ebp - 0x1c]
push esi
push eax
call fcn.006099de
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00609a4e
add esp, 0x1c
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.00401070
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x10
call fcn.00401070
lea ecx, [ebp - 0x3c]
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 0x44bcfd
lea eax, [ebp - 0x18]
push eax
call fcn.0060bc6e
mov eax, dword [ebp - 0x1c]
add esp, 4
test eax, eax
jne 0x44bd10
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44bd23
mov dword [ebp - 0x30], 1
mov esi, dword [ebp - 0x30]
mov dword [ebp - 4], 0
test esi, esi
mov byte [ebp - 4], 0x14
jne 0x44be55
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.00609ba3
add esp, 8
test eax, eax
je 0x44bd67
add eax, 2
mov word [eax], si
mov ecx, 0x6c910c
test ecx, ecx
je 0x44be3c
lea edx, [ebp - 0x264]
test edx, edx
je 0x44be3c
lea eax, [ebp - 0x264]
lea ecx, [ebp - 0x5c]
push eax
call fcn.00401ee0
mov bl, 0x15
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00401070
lea ecx, [ebp - 0x2c]
call fcn.004027c0
push 0
push 0x6c910c
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x16
call fcn.004027e0
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x5c]
call fcn.00401f10
push eax
call fcn.00609a4e
lea esi, [eax + esi + 2]
lea edi, [esi + esi]
push edi
call fcn.00622acb
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x1c], edx
je 0x44be22
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 - 0x5c]
call fcn.00401f10
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401f10
push eax
mov eax, dword [ebp - 0x1c]
push esi
push eax
call fcn.006099de
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00609a4e
add esp, 0x14
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.00401070
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x14
call fcn.00401070
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x1c]
call fcn.00401f10
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44be55
mov esi, 1
push 0x7e
lea ecx, [ebp - 0x1c]
call fcn.00401f10
push eax
call fcn.0060a17b
add esp, 8
test eax, eax
je 0x44becf
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.00401f10
push eax
call fcn.00453970
add esp, 8
lea ecx, [ebp - 0x5c]
push eax
call fcn.00401ee0
push 0
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x17
call fcn.00401f10
push eax
push 0x6c910c
lea ecx, [ebp - 0x1c]
call fcn.0041da80
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x14
call fcn.00401070
lea ecx, [ebp - 0x1c]
call fcn.00401f10
push eax
call fcn.00609a4e
add esp, 4
dec eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], eax
call fcn.00401f10
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2], 0x5c
mov eax, 0x6fc41c
je 0x44bf00
mov eax, 0x6c91c0
push 0
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401f10
push eax
push 0x6c900c
mov ecx, 0x6fca48
call fcn.00410d70
mov eax, dword [0x6fcafc]
test eax, eax
je 0x44bf5c
mov ecx, 0x6fca48
call fcn.00401f10
push eax
call fcn.00609a4e
add esp, 4
lea edx, [eax + eax + 2]
mov ecx, 0x6fca48
push edx
call fcn.00401f10
push eax
mov eax, dword [0x6fcafc]
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