Function at 0x449c30
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
lea ebp, [esp - 0x5c0]
sub esp, 0x5c0
push 0xffffffffffffffff
push 0x620626
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x70a308]
xor eax, ebp
mov dword [ebp + 0x5bc], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp + 0xa0], esi
mov dword [ebp + 0xa8], esi
xor eax, eax
mov word [ebp + 0xa4], ax
mov dword [ebp - 4], esi
mov byte [ebp - 4], 1
mov eax, dword [0x70f604]
cmp eax, esi
jne 0x449ca4
call fcn.00449a50
mov eax, dword [0x70f604]
cmp eax, esi
je 0x449d0d
mov dword [ebp - 0x18], 0x208
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp + 0x3b4]
push edx
push esi
push esi
push str.AppDataIDMFolder
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x449d0d
lea eax, [ebp + 0x3b4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x449d0d
push esi
lea ecx, [ebp + 0x3b4]
push ecx
push 0x64edec
mov ecx, 0x70f64c
call fcn.00402190
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xa0]
call fcn.004011f0
mov eax, 1
jmp 0x44a293
mov dword [ebp - 4], esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov byte [ebp - 4], 3
push 0x94
push 0
lea edx, [ebp]
push edx
call fcn.005f8cb0
add esp, 0xc
mov dword [ebp], 0x94
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x449f1e
cmp dword [ebp + 0x10], 2
jne 0x449f1e
push 0x6513c0
call fcn.00445b00
add esp, 4
mov edi, eax
test edi, edi
je 0x449e38
push str.SHGetFolderPathW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x449e27
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [ebp + 0x3b4]
push ecx
push 0
push 0
push 0x1a
push 0
call esi
test eax, eax
jne 0x449e21
lea eax, [ebp + 0x3b4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x449da7
sub eax, edx
sar eax, 1
dec eax
mov dword [ebp - 0x18], eax
cmp word [ebp + eax*2 + 0x3b4], 0x5c
mov eax, 0x64fbb8
je 0x449dcf
mov eax, 0x64f8c0
push 0
push eax
lea edx, [ebp + 0x3b4]
push edx
push str._s_sIDM
lea ecx, [ebp + 0xa0]
call fcn.00402300
mov eax, dword [ebp + 0xa0]
test eax, eax
jne 0x449df9
lea eax, [ebp + 0xa4]
push eax
call fcn.005fce2d
add esp, 4
mov eax, dword [ebp + 0xa0]
test eax, eax
jne 0x449e12
lea eax, [ebp + 0xa4]
push eax
call ebx
cmp eax, 0xffffffff
je 0x449e21
mov dword [ebp - 0x14], 1
call dword [sym.imp.ole32.dll_CoUninitialize]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x14], 0
jne 0x44a06d
lea eax, [ebp - 0x1c]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x449f1e
mov dword [ebp - 0x18], 0x208
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp + 0x3b4]
push edx
push eax
push eax
push str.AppData
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x449f0a
lea eax, [ebp + 0x3b4]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x449e90
sub eax, edx
sar eax, 1
dec eax
mov dword [ebp - 0x18], eax
cmp word [ebp + eax*2 + 0x3b4], 0x5c
mov eax, 0x64fbb8
je 0x449eb8
mov eax, 0x64f8c0
push 0
push eax
lea ecx, [ebp + 0x3b4]
push ecx
push str._s_sIDM
lea ecx, [ebp + 0xa0]
call fcn.00402300
mov eax, dword [ebp + 0xa0]
test eax, eax
jne 0x449ee2
lea eax, [ebp + 0xa4]
push eax
call fcn.005fce2d
add esp, 4
mov eax, dword [ebp + 0xa0]
test eax, eax
jne 0x449efb
lea eax, [ebp + 0xa4]
push eax
call ebx
cmp eax, 0xffffffff
je 0x449f0a
mov dword [ebp - 0x14], 1
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 0
jne 0x44a06d
push 0x104
lea eax, [ebp + 0x3b4]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x44a06d
lea eax, [ebp + 0x3b4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x449f41
sub eax, edx
sar eax, 1
dec eax
mov dword [ebp - 0x18], eax
mov esi, 0x5c
cmp word [ebp + eax*2 + 0x3b4], si
mov eax, 0x64fbb8
je 0x449f6d
mov eax, 0x64f8c0
push 0
push eax
lea ecx, [ebp + 0x3b4]
push ecx
push str._s_sIDM
lea ecx, [ebp + 0xa0]
call fcn.00402300
mov eax, dword [ebp + 0xa0]
test eax, eax
jne 0x449f97
lea eax, [ebp + 0xa4]
push eax
call fcn.005fce2d
add esp, 4
mov dword [ebp - 0x1c], 0x100
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp + 0x2b4]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x449fd1
push str.default_user
lea ecx, [ebp + 0x2b4]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
lea eax, [ebp + 0x2b4]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x449fe0
sub eax, edx
sar eax, 1
cmp eax, 0x20
jbe 0x449ffd
xor edx, edx
mov word [ebp + 0x2f2], dx
mov eax, dword [ebp - 0x18]
cmp word [ebp + eax*2 + 0x3b4], si
mov eax, 0x64fbb8
je 0x44a014
mov eax, 0x64f8c0
push 0
lea ecx, [ebp + 0x2b4]
push ecx
push eax
lea edx, [ebp + 0x3b4]
push edx
push str._s_sIDM_s
lea ecx, [ebp + 0xa0]
call fcn.00411bf0
mov eax, dword [ebp + 0xa0]
test eax, eax
jne 0x44a045
lea eax, [ebp + 0xa4]
push eax
call fcn.005fce2d
add esp, 4
mov eax, dword [ebp + 0xa0]
test eax, eax
jne 0x44a05e
lea eax, [ebp + 0xa4]
push eax
call ebx
cmp eax, 0xffffffff
je 0x44a06d
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 0
mov bl, 5
mov byte [ebp - 4], bl
cmp dword [ebp - 0x14], 0
jne 0x44a0ec
push 0x104
lea eax, [ebp + 0x3b4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
lea ecx, [ebp + 0x3b4]
push ecx
call fcn.005f80fb
add esp, 8
test eax, eax
je 0x44a0b0
add eax, 2
xor edx, edx
mov word [eax], dx
push 0
lea eax, [ebp + 0x3b4]
push eax
push 0x64edec
lea ecx, [ebp + 0xa0]
call fcn.00402190
mov eax, dword [ebp + 0xa0]
test eax, eax
jne 0x44a0d9
lea eax, [ebp + 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44a0ec
mov dword [ebp - 0x14], 1
mov eax, dword [ebp + 0xa0]
test eax, eax
jne 0x44a0fc
lea eax, [ebp + 0xa4]
push 0x7e
push eax
call fcn.005fa163
add esp, 8
test eax, eax
je 0x44a18e
xor ecx, ecx
mov word [ebp + 0xac], cx
push 0x206
push ecx
lea edx, [ebp + 0xae]
push edx
call fcn.005f8cb0
add esp, 0xc
mov eax, dword [ebp + 0xa0]
test eax, eax
jne 0x44a13d
lea eax, [ebp + 0xa4]
lea ecx, [ebp + 0xac]
push ecx
push eax
call fcn.00446960
add esp, 8
push eax
lea ecx, [ebp + 0x94]
call fcn.00402160
mov byte [ebp - 4], 6
mov eax, dword [ebp + 0x94]
test eax, eax
jne 0x44a16d
lea eax, [ebp + 0x98]
push 0
push eax
push 0x64edec
lea ecx, [ebp + 0xa0]
call fcn.00402190
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x94]
call fcn.004011f0
mov edx, dword [ebp + 0xa0]
test edx, edx
mov eax, edx
jne 0x44a1a0
lea eax, [ebp + 0xa4]
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x44a1a3
sub eax, esi
sar eax, 1
dec eax
mov dword [ebp - 0x18], eax
test edx, edx
mov ecx, edx
jne 0x44a1c2
lea ecx, [ebp + 0xa4]
cmp word [ecx + eax*2], 0x5c
mov ecx, 0x64fbb8
je 0x44a1d3
mov ecx, 0x64f8c0
test edx, edx
mov eax, edx
jne 0x44a1df
lea eax, [ebp + 0xa4]
push 0
push ecx
push eax
push 0x64ed70
mov ecx, 0x70f64c
call fcn.00402300
mov edi, dword [0x70f604]
test edi, edi
je 0x44a240
mov esi, dword [0x70f64c]
test esi, esi
mov eax, esi
jne 0x44a20d
mov eax, 0x70f650
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x44a210
sub eax, edx
sar eax, 1
test esi, esi
mov ecx, esi
jne 0x44a22a
mov ecx, 0x70f650
lea edx, [eax + eax + 2]
push edx
push ecx
push 1
push 0
push str.AppDataIDMFolder
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xa0]
call fcn.004011f0
mov eax, dword [ebp - 0x14]
jmp 0x44a293
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x5bc]
xor ecx, ebp
call fcn.005f85e7
add ebp, 0x5c0
mov esp, ebp
pop ebp
ret