Function at 0x448761
Capabilities:
Get common file path
Persist via run registry key
Set current directory
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1484
call fcn.00465d30
mov eax, dword [0x46700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x18]
xor eax, eax
cmp dword [ebp + 8], 3
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
mov ebx, eax
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edi
je 0x4487ba
cmp dword [esi + 0x1c], eax
je 0x4487ba
push dword [esi + 0x1c]
call fcn.00440bc3
test eax, eax
je 0x4487ba
mov ecx, esi
call fcn.00448587
mov ebx, eax
test ebx, ebx
js 0x4489aa
test edi, edi
jne 0x4487c8
mov eax, 0x80004003
jmp 0x4489aa
push edi
call fcn.00440bc3
test eax, eax
jne 0x4487dc
mov eax, 0x80070002
jmp 0x4489aa
mov eax, dword [esi + 0x2c]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x448bd4
jle 0x448bca
cmp eax, 4
jle 0x448af5
cmp eax, 5
je 0x4489bb
cmp eax, 6
jne 0x448bca
mov ebx, 0x104
push ebx
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x448844
push 0x41f24c
mov eax, ebx
lea edi, reloc.ADVAPI32.dll_TraceMessage
call fcn.0042c8f1
test eax, eax
js 0x448844
mov eax, edi
push eax
call fcn.00440bc3
test eax, eax
jne 0x448888
push 0x103
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x44897d
push 0x41f24c
mov eax, ebx
lea edi, reloc.ADVAPI32.dll_TraceMessage
call fcn.0042c8f1
test eax, eax
js 0x44897d
mov eax, edi
push eax
call fcn.00440bc3
test eax, eax
je 0x44897d
cmp dword [ebp + 0xc], 0
push 0x2c
pop ecx
je 0x448896
mov ecx, 0x22c
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x4488a2
mov eax, 0x401424
mov esi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
push ecx
push eax
push esi
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0x41f3f8
mov eax, 0x208
lea ecx, reloc.ADVAPI32.dll_TraceMessage
call fcn.0042c95b
add esp, 0x14
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, esi
mov eax, ebx
lea esi, reloc.ADVAPI32.dll_TraceMessage
call fcn.0042c88c
mov eax, esi
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x4488fd
xor ecx, ecx
mov word [eax], cx
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov edi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
mov esi, 0xffff
push esi
push dword [edi + 0x3c]
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call fcn.0044328c
test eax, eax
je 0x448934
xor ebx, ebx
jmp 0x44894f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x448945
push 0x57
pop ebx
test ebx, ebx
jle 0x44894f
and ebx, esi
or ebx, 0x80070000
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test ebx, ebx
js 0x448990
call fcn.004412f6
test eax, eax
je 0x448990
push 8
mov ecx, 0x41f458
pop eax
call fcn.00441394
mov ebx, 0xd2af9
jmp 0x448990
push 0x41f340
push 2
mov ebx, 0x80070002
call fcn.004400fc
mov edi, esi
push ebx
push 0x41f470
push 4
pop esi
call fcn.00440126
pop ecx
pop ecx
xor eax, eax
push eax
call fcn.0044755b
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004655f1
leave
ret 8
mov ebx, 0x104
push ebx
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4489e4
push 0x41f24c
mov eax, ebx
lea edi, reloc.ADVAPI32.dll_TraceMessage
call fcn.0042c8f1
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call fcn.00440bc3
test eax, eax
jne 0x448a30
push 0x103
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x448a1c
push 0x41f24c
mov eax, ebx
lea edi, reloc.ADVAPI32.dll_TraceMessage
call fcn.0042c8f1
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call fcn.00440bc3
test eax, eax
je 0x44897d
mov ebx, 0x208
lea edx, reloc.ADVAPI32.dll_TraceMessage
mov eax, ebx
lea ecx, reloc.ADVAPI32.dll_TraceMessage
call fcn.0042ca38
cmp dword [ebp + 8], 3
mov eax, ebx
lea edi, reloc.ADVAPI32.dll_TraceMessage
jne 0x448a5d
push 0x41f268
jmp 0x448a62
push 0x41f2c0
call fcn.0042c8f1
push dword [ebp - 0x1460]
mov eax, ebx
lea edi, reloc.ADVAPI32.dll_TraceMessage
call fcn.0042c8f1
cmp dword [esi + 0x14], 0
je 0x448a8a
push dword [esi + 0x14]
mov eax, ebx
call fcn.0042c8f1
mov edi, 0xffff
push edi
push dword [esi + 0x3c]
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call fcn.0044328c
test eax, eax
je 0x448aae
xor ebx, ebx
jmp 0x448ad1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x448abf
push 0x57
pop ebx
test ebx, ebx
jle 0x448ac9
and ebx, edi
or ebx, 0x80070000
test ebx, ebx
js 0x44898e
call fcn.004412f6
test eax, eax
je 0x44898e
push 8
mov ecx, 0x41f324
pop eax
call fcn.00441394
mov ebx, 0xd2af9
jmp 0x44898e
xor eax, eax
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0x2a
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
call fcn.004412f6
cmp dword [ebp + 8], 3
mov dword [0x467d0c], eax
mov dword [reloc.ole32.dll_CoCreateInstance], 1
mov eax, dword [esi + 0x84]
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
mov ecx, 0x41f394
je 0x448b4d
mov ecx, dword [esi + 0x14]
push dword [ebp + 0xc]
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
mov edx, edi
call fcn.00458f83
mov ebx, eax
test ebx, ebx
jns 0x448ba1
cmp byte [esi + 0x60], 0
je 0x448b87
or dword [0x468618], 4
push edi
push 0x41f3a8
push 2
pop esi
call fcn.00440126
pop ecx
xor esi, esi
pop ecx
mov ebx, esi
jmp 0x448ba3
mov eax, dword [esi + 0x84]
mov eax, dword [eax + 0x40]
add eax, dword [0x4679ac]
mov dword [0x468610], ebx
mov dword [0x468614], eax
xor esi, esi
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0
je 0x448bbf
push dword [ebp - 0x1470]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
mov edi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
jmp 0x448990
mov ebx, 0x80004005
jmp 0x44898e
mov edx, edi
mov eax, 0x207
lea esi, reloc.ADVAPI32.dll_TraceMessage
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ecx
call fcn.0042c88c
push 0x41f06c
mov eax, 0x208
mov edi, esi
call fcn.0042c8f1
mov esi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
cmp dword [esi + 0x14], 0
je 0x448c16
push dword [esi + 0x14]
mov eax, 0x208
call fcn.0042c8f1
mov edi, dword [esi + 0x84]
push 0
call fcn.0044cac3
mov ecx, 0x186a0
test edx, edx
ja 0x448c37
jb 0x448c32
cmp eax, ecx
jae 0x448c37
mov ecx, 0x2710
xor edx, edx
div ecx
mov dword [0x46861c], eax
cmp eax, 0x64
jbe 0x448c53
push reloc.ole32.dll_CoRegisterClassObject
xor edx, edx
pop ecx
div ecx
mov dword [0x46861c], eax
jmp 0x448c60
push 0x14
pop ecx
cmp eax, ecx
jae 0x448c60
mov dword [0x46861c], ecx
mov edi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
push 0x41dfcc
push edi
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x448ca0
push reloc.KERNEL32.dll_InitializeCriticalSection
mov dword [0x468624], 1
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0x1f4
call fcn.0043f6bb
mov eax, dword [reloc.ole32.dll_CoCreateInstance]
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
jmp 0x448d0b
push dword [0x46861c]
and dword [0x468624], 0
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0x1388
call fcn.0043f6bb
mov eax, dword [0x468600]
test eax, eax
je 0x448d0b
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x448d0b
push 0x100
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0x26ec
push dword [0x4683ec]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x448d0b
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0
push 0x5c5
push dword [0x468600]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x445291
push dword [ebp - 0x1464]
push 0x2f00
push dword [0x468600]
call dword [sym.imp.USER32.dll_SetTimer]
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0
je 0x448d7c
mov edi, 0xffff
push edi
push dword [esi + 0x3c]
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push dword [ebp - 0x1460]
call fcn.0044328c
test eax, eax
je 0x448d58
xor edi, edi
mov ebx, edi
jmp 0x448e5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x448d69
push 0x57
pop ebx
test ebx, ebx
jle 0x448e5d
and ebx, edi
or ebx, 0x80070000
jmp 0x448e5d
push 0x41dfcc
push edi
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x448e47
xor edi, edi
push edi
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push edi
push 3
push edi
push edi
push edi
push 0x4017a8
push 0x80000001
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x448e31
mov esi, 0x104
push esi
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call fcn.00441544
test eax, eax
je 0x448e25
push 0x41f070
mov eax, esi
lea edi, reloc.ADVAPI32.dll_TraceMessage
call fcn.0042c8f1
xor edi, edi
test eax, eax
js 0x448e25
lea ecx, reloc.ADVAPI32.dll_TraceMessage
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x448df3
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 1
push edi
push 0x41f090
push dword [ebp - 0x1464]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x1464]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x41f0b0
push 4
pop esi
call fcn.00440126
mov esi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
pop ecx
jmp 0x448e5f
push edi
push 0x41f0f0
push 2
pop esi
call fcn.00440126
mov esi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
pop ecx
pop ecx
xor edi, edi
cmp dword [0x468624], 0
je 0x448e6c
push reloc.KERNEL32.dll_InitializeCriticalSection
jmp 0x448e72
push dword [0x46861c]
call fcn.0043f83d
push 0x2f00
push dword [0x468600]
call dword [sym.imp.USER32.dll_KillTimer]
test ebx, ebx
jns 0x448eb0
cmp byte [esi + 0x60], 0
je 0x448eb0
push dword [ebp - 0x1460]
or dword [0x468618], 1
push 0x41f160
push 2
pop esi
call fcn.00440126
pop ecx
pop ecx
mov ebx, edi
mov edi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
xor eax, eax
mov esi, 0xd2af9
cmp dword [edi + 0x5c], eax
je 0x448f1b
cmp ebx, 0x80070bc2
je 0x448f2c
cmp ebx, 0x8007f901
jne 0x448ed6
mov ebx, eax
jmp 0x448f3b
cmp ebx, 0x8007f02a
jne 0x448ee5
mov ebx, 0xc00d2afb
jmp 0x448f3b
test ebx, ebx
js 0x448eff
call fcn.004412f6
mov dword [0x467d0c], eax
mov dword [reloc.ole32.dll_CoCreateInstance], 1
jmp 0x448f3b
mov eax, dword [edi + 0x84]
mov eax, dword [eax + 0x40]
add eax, dword [0x4679ac]
mov dword [0x468610], ebx
mov dword [0x468614], eax
jmp 0x448f3b
test ebx, ebx
js 0x448f3b
call fcn.004412f6
cmp dword [0x467d0c], eax
jae 0x448f3b
push 8
mov ecx, 0x41f1ac
pop eax
call fcn.00441394
mov ebx, esi
mov esi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
push ebx
mov ecx, esi
call fcn.00445161
test eax, eax
jne 0x448f68
or dword [0x468618], 2
push 0x41f1c8
push 2
pop esi
call fcn.00440126
mov esi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
pop ecx
push 0x41f21c
push esi
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
jne 0x448f90
push 0x41f230
push esi
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x448990
xor eax, eax
test ebx, ebx
js 0x448f9f
cmp ebx, 0xd2af9
setne al
mov dword [reloc.ole32.dll_CoCreateInstance], eax
jmp 0x448990