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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45cd78
mov eax, dword fs:[0]
push eax
sub esp, 0x4a0
mov eax, dword [0x49cf34]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x4a4], eax
xor eax, eax
mov dword [ebp - 0x4ac], ecx
mov dword [ebp - 0x478], edx
mov dword [ebp - 0x490], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x47c], eax
mov eax, dword [str.TlacoLteGime]
mov edx, dword [0x45e6cc]
mov ecx, dword [0x45e6c8]
mov dword [ebp - 0x24], eax
mov al, byte [0x45e6d0]
mov byte [ebp - 0x18], al
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c], edx
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], ecx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4064d0
sub eax, edx
lea ecx, [ebp + eax - 0x27]
lea eax, [ebp - 0x24]
cmp eax, ecx
je 0x4064f4
dec ecx
cmp eax, ecx
je 0x4064f4
mov dl, byte [eax]
mov bl, byte [ecx]
mov byte [eax], bl
mov byte [ecx], dl
inc eax
jmp 0x4064e0
lea ecx, [ebp - 0x24]
push ecx
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x4a8], eax
test eax, eax
je 0x4066e4
lea edx, [ebp - 0x47c]
push edx
push 0x460f40
push 1
push 0
push 0x460f60
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x4066e4
mov eax, dword [ebp - 0x47c]
test eax, eax
je 0x4066ea
push esi
lea ecx, [ebp - 0x484]
call fcn.00406390
mov byte [ebp - 4], 2
test edi, edi
jne 0x4065b8
xor eax, eax
push 0x400
push eax
lea ecx, [ebp - 0x426]
push ecx
mov word [ebp - 0x428], ax
call fcn.0044fd70
add esp, 0xc
lea edx, [ebp - 0x494]
push edx
lea eax, [ebp - 0x428]
push eax
mov dword [ebp - 0x494], 0x201
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0x5f
lea ecx, [ebp - 0x484]
call fcn.00406330
lea ecx, [ebp - 0x428]
push ecx
lea ecx, [ebp - 0x484]
call fcn.004062e0
mov eax, dword [ebp - 0x47c]
mov ecx, dword [ebp - 0x484]
mov edx, dword [eax]
mov edx, dword [edx + 0x1c]
push ecx
push eax
call edx
mov dword [ebp - 0x480], 0
mov eax, dword [ebp - 0x47c]
mov ecx, dword [eax]
lea edx, [ebp - 0x480]
push edx
mov edx, dword [ebp - 0x484]
push 0x45e640
push 0x460f50
push edx
push eax
mov eax, dword [ecx + 0x20]
mov byte [ebp - 4], 3
call eax
test eax, eax
mov eax, dword [ebp - 0x480]
jne 0x4066ae
test eax, eax
je 0x4066ae
push eax
lea ecx, [ebp - 0x474]
call fcn.00405f70
cmp dword [ebp - 0x474], 0
mov bl, 4
mov byte [ebp - 4], bl
je 0x406690
mov esi, edi
neg esi
sbb esi, esi
push edi
lea ecx, [ebp - 0x46c]
push ecx
and esi, 0xffffe000
lea ecx, [ebp - 0x495]
add esi, 0x2200
call fcn.00406110
mov byte [ebp - 4], 5
test edi, edi
jne 0x40671c
mov eax, dword [ebp - 0x46c]
lea edx, [eax + 2]
jmp 0x406670
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406670
sub eax, edx
sar eax, 1
jne 0x40671c
lea ecx, [ebp - 0x46c]
call fcn.00402b60
xor esi, esi
mov eax, dword [ebp - 0x474]
mov byte [ebp - 4], 3
cmp eax, esi
je 0x4066a8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x480]
mov byte [ebp - 4], 2
test eax, eax
je 0x4066be
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x484]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4066e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x47c]
mov byte [ebp - 4], 0
test eax, eax
je 0x4066fa
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x490]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044fd61
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x474]
mov edx, dword [eax]
push esi
push eax
mov eax, dword [edx + 0x70]
call eax
xor esi, esi
cmp eax, esi
je 0x40675f
mov eax, dword [ebp - 0x46c]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406692
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x406692
mov eax, dword [ebp - 0x474]
mov edx, dword [ebp - 0x46c]
mov ecx, dword [eax]
push esi
push edx
push eax
mov eax, dword [ecx + 0x78]
call eax
cmp eax, esi
je 0x406789
lea ecx, [ebp - 0x46c]
call fcn.00402b60
jmp 0x406692
mov ebx, dword [ebp - 0x478]
cmp ebx, esi
je 0x4067d4
mov eax, ebx
lea edx, [eax + 2]
jmp 0x4067a0
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4067a0
sub eax, edx
sar eax, 1
je 0x4067d4
mov eax, dword [ebp - 0x474]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x48]
push ebx
push eax
call edx
cmp eax, esi
je 0x4067d4
lea ecx, [ebp - 0x46c]
call fcn.00402b60
jmp 0x406692
mov dword [ebp - 0x470], esi
mov eax, dword [ebp - 0x474]
lea edx, [ebp - 0x470]
push edx
lea edx, [ebp - 0x4a0]
mov dword [ebp - 0x4a0], esi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
mov byte [ebp - 4], 6
call eax
cmp eax, esi
mov eax, dword [ebp - 0x470]
jne 0x40682b
cmp eax, esi
je 0x40682b
mov eax, dword [ebp - 0x474]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xa8]
push 0xffffffffffffffff
push eax
call edx
cmp eax, esi
je 0x40684b
mov eax, dword [ebp - 0x470]
mov byte [ebp - 4], 5
cmp eax, esi
je 0x40683b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [ebp - 0x46c]
call fcn.00402b60
jmp 0x406692
push 0x2e
lea eax, [ebp - 0x466]
push esi
push eax
call fcn.0044fd70
xor eax, eax
mov dword [ebp - 0x436], eax
mov dword [ebp - 0x432], eax
mov dword [ebp - 0x42e], eax
mov word [ebp - 0x42a], ax
add esp, 0xc
lea eax, [ebp - 0x438]
mov ecx, 0x30
xor edx, edx
push eax
mov word [ebp - 0x468], cx
mov word [ebp - 0x438], dx
call dword [ebp - 0x4a8]
mov cx, word [ebp - 0x432]
mov dx, word [ebp - 0x436]
mov ax, word [ebp - 0x438]
mov word [ebp - 0x460], cx
lea ecx, [ebp - 0x48c]
mov word [ebp - 0x462], dx
push ecx
lea edx, [ebp - 0x438]
push edx
mov word [ebp - 0x464], ax
mov dword [ebp - 0x48c], esi
mov dword [ebp - 0x488], esi
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, edi
neg eax
sbb eax, eax
and eax, 0x23c34600
add eax, 0x23c34600
cdq
add dword [ebp - 0x48c], eax
mov eax, dword [0x49ceb4]
mov ecx, 0x49ceb4
adc dword [ebp - 0x488], edx
mov edx, dword [eax + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x478], eax
mov bl, 7
push 0x6c
lea ecx, [ebp - 0x478]
mov byte [ebp - 4], bl
call fcn.004062b0
cmp eax, esi
je 0x406967
mov eax, dword [ebp - 0x478]
cmp dword [eax - 0xc], esi
je 0x406967
push eax
call fcn.00450611
cdq
add esp, 4
cmp edx, esi
jl 0x406967
jg 0x40694e
cmp eax, esi
jbe 0x406967
push esi
push 0x23c34600
push edx
push eax
call fcn.00450620
add dword [ebp - 0x48c], eax
adc dword [ebp - 0x488], edx
push str.FileTimeToSystemTime
push 0x45e66c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
jne 0x406992
lea ecx, [ebp - 0x478]
call fcn.00402b60
jmp 0x406825
lea ecx, [ebp - 0x438]
push ecx
lea edx, [ebp - 0x48c]
push edx
call eax
mov ax, word [ebp - 0x430]
mov cx, word [ebp - 0x42e]
mov edx, 1
mov word [ebp - 0x458], ax
mov eax, dword [ebp - 0x470]
mov word [ebp - 0x444], dx
lea edx, [ebp - 0x468]
mov word [ebp - 0x456], cx
mov dword [ebp - 0x454], 0x5a0
mov dword [ebp - 0x450], 0xf
mov dword [ebp - 0x448], 1
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
cmp eax, esi
jne 0x406982
cmp dword [ebp + 0x1c], esi
je 0x406a1e
call fcn.00405a60
cmp eax, esi
je 0x406a1e
mov eax, dword [ebp - 0x474]
push eax
call fcn.00405e40
add esp, 4
mov eax, dword [ebp - 0x474]
mov edx, dword [ebp - 0x4a4]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x80]
call eax
cmp eax, esi
jne 0x406982
mov edi, dword [ebp - 0x4ac]
cmp edi, esi
je 0x406a7b
mov eax, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x406a50
sub eax, edx
sar eax, 1
je 0x406a7b
mov eax, dword [ebp - 0x474]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x88]
push edi
push eax
call edx
cmp eax, esi
jne 0x406982
mov eax, dword [ebp - 0x480]
push eax
lea ecx, [ebp - 0x494]
call fcn.00405fa0
mov eax, dword [ebp - 0x494]
mov byte [ebp - 4], 8
cmp eax, esi
je 0x406982
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push 1
push esi
push eax
call edx
xor ecx, ecx
cmp eax, esi
mov eax, dword [ebp - 0x494]
sete cl
mov byte [ebp - 4], bl
mov dword [ebp - 0x490], ecx
cmp eax, esi
je 0x406982
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
lea ecx, [ebp - 0x478]
call fcn.00402b60
jmp 0x406825