Function at 0x406caa
Capabilities:
Get session user name
Schedule task via itaskscheduler

Disassembly:
push ebp
sub esp, 0x7d0
lea ebp, [esp - 4]
mov eax, dword [0x41c028]
xor eax, ebp
mov dword [ebp + 0x7d0], eax
push 0x20
mov eax, 0x41111a
call fcn.004105ee
mov eax, dword [ebp + 0x7dc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x7e0]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x7e4]
mov esi, ecx
mov dword [ebp - 0x20], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.GBOhelper.dll_int___cdecl_STIsCurrentUserLocalAdministrator_void_]
cmp eax, ebx
je 0x406ebf
lea eax, [ebp - 0x18]
push eax
push 0x4138dc
push 1
push ebx
push 0x4138fc
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x406ebf
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push 0x4138cc
push 0x4138ec
push dword [ebp - 0x28]
push eax
call dword [ecx + 0x20]
cmp eax, ebx
jl 0x406ebf
cmp dword [ebp - 0x10], ebx
je 0x406ebf
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x80]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x90]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 0x2000
push eax
call dword [ecx + 0x70]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp]
push eax
mov dword [ebp - 0x2c], 0x3e8
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp]
push edx
push eax
call dword [ecx + 0x78]
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
mov eax, dword [ebp + 0x7e8]
cmp dword [eax - 0xc], ebx
jne 0x406e8c
mov eax, dword [ebp - 0x1c]
add eax, 4
mov ecx, dword [eax]
cmp dword [ecx - 0xc], ebx
lea ecx, [ebp + 0x7e8]
jne 0x406e85
push str._schedule
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
cmp byte [0x41ca38], bl
je 0x406e08
push str.__autofix
lea ecx, [ebp + 0x7e8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
cmp byte [0x41ca39], bl
je 0x406e21
push str.__shutdown
lea ecx, [ebp + 0x7e8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
push str.diskOptimizer
mov ecx, 0x41ca14
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
test eax, eax
jne 0x406e8c
lea eax, [ebp - 0x20]
push 0x4152bc
push eax
lea esi, [ebp + 0x7e8]
call fcn.00404c46
lea ecx, [ebp - 0x1c]
push 0x41ca30
push ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00404811
add esp, 0x10
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
jmp 0x406e8c
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
mov eax, dword [ebp - 0x10]
push dword [ebp + 0x7e8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x88]
mov esi, eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp esi, ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
jge 0x406ef2
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp + 0x7e8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x7d0]
xor ecx, ebp
call fcn.0040fde4
add ebp, 0x7d4
leave
ret 0x10
lea edx, [ebp - 0x24]
push edx
push 0x41389c
push eax
call dword [ecx]
mov esi, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp esi, ebx
jl 0x406eb6
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
push 1
push ebx
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp + 0x7e8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
cmp esi, ebx
jl 0x406ecb
mov al, 1
jmp 0x406ecd