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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d218
mov eax, dword fs:[0]
push eax
sub esp, 0x4a0
mov eax, dword [0x48e200]
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 - 0x474], edx
mov dword [ebp - 0x490], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x47c], eax
mov eax, dword [0x401664]
mov edx, dword [0x40166c]
mov ecx, dword [0x401668]
mov dword [ebp - 0x24], eax
mov al, byte [0x401670]
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 0x4075b0
sub eax, edx
lea ecx, [ebp + eax - 0x27]
lea eax, [ebp - 0x24]
cmp eax, ecx
je 0x4075d4
dec ecx
cmp eax, ecx
je 0x4075d4
mov dl, byte [eax]
mov bl, byte [ecx]
mov byte [eax], bl
mov byte [ecx], dl
inc eax
jmp 0x4075c0
lea ecx, [ebp - 0x24]
push ecx
push 0x401648
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 0x4077c4
lea edx, [ebp - 0x47c]
push edx
push 0x403b40
push 1
push 0
push 0x403b60
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x4077c4
mov eax, dword [ebp - 0x47c]
test eax, eax
je 0x4077ca
push esi
lea ecx, [ebp - 0x484]
call fcn.00407470
mov byte [ebp - 4], 2
test edi, edi
jne 0x407698
xor eax, eax
push 0x400
push eax
lea ecx, [ebp - 0x426]
push ecx
mov word [ebp - 0x428], ax
call fcn.00450610
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.00407410
lea ecx, [ebp - 0x428]
push ecx
lea ecx, [ebp - 0x484]
call fcn.004073c0
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 0x403b30
push 0x403b50
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 0x40778e
test eax, eax
je 0x40778e
push eax
lea ecx, [ebp - 0x478]
call fcn.00406e10
cmp dword [ebp - 0x478], 0
mov bl, 4
mov byte [ebp - 4], bl
je 0x407770
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.004071f0
mov byte [ebp - 4], 5
test edi, edi
jne 0x4077fc
mov eax, dword [ebp - 0x46c]
lea edx, [eax + 2]
jmp 0x407750
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407750
sub eax, edx
sar eax, 1
jne 0x4077fc
lea ecx, [ebp - 0x46c]
call fcn.00406ca0
xor esi, esi
mov eax, dword [ebp - 0x478]
mov byte [ebp - 4], 3
cmp eax, esi
je 0x407788
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 0x40779e
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 0x4077c4
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 0x4077da
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.00450601
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x478]
mov edx, dword [eax]
push esi
push eax
mov eax, dword [edx + 0x70]
call eax
xor esi, esi
cmp eax, esi
je 0x40783f
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 0x407772
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x407772
mov eax, dword [ebp - 0x478]
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 0x407869
lea ecx, [ebp - 0x46c]
call fcn.00406ca0
jmp 0x407772
mov ebx, dword [ebp - 0x474]
cmp ebx, esi
je 0x4078b4
mov eax, ebx
lea edx, [eax + 2]
jmp 0x407880
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x407880
sub eax, edx
sar eax, 1
je 0x4078b4
mov eax, dword [ebp - 0x478]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x48]
push ebx
push eax
call edx
cmp eax, esi
je 0x4078b4
lea ecx, [ebp - 0x46c]
call fcn.00406ca0
jmp 0x407772
mov dword [ebp - 0x470], esi
mov eax, dword [ebp - 0x478]
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 0x40790b
cmp eax, esi
je 0x40790b
mov eax, dword [ebp - 0x478]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xa8]
push 0xffffffffffffffff
push eax
call edx
cmp eax, esi
je 0x40792b
mov eax, dword [ebp - 0x470]
mov byte [ebp - 4], 5
cmp eax, esi
je 0x40791b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [ebp - 0x46c]
call fcn.00406ca0
jmp 0x407772
push 0x2e
lea eax, [ebp - 0x466]
push esi
push eax
call fcn.00450610
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 [0x48e180]
mov ecx, 0x48e180
adc dword [ebp - 0x488], edx
mov edx, dword [eax + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x474], eax
mov bl, 7
push 0x6c
lea ecx, [ebp - 0x474]
mov byte [ebp - 4], bl
call fcn.00407390
cmp eax, esi
je 0x407a47
mov eax, dword [ebp - 0x474]
cmp dword [eax - 0xc], esi
je 0x407a47
push eax
call fcn.00450eb1
cdq
add esp, 4
cmp edx, esi
jl 0x407a47
jg 0x407a2e
cmp eax, esi
jbe 0x407a47
push esi
push 0x23c34600
push edx
push eax
call fcn.00450ec0
add dword [ebp - 0x48c], eax
adc dword [ebp - 0x488], edx
push 0x401630
push 0x40160c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
jne 0x407a72
lea ecx, [ebp - 0x474]
call fcn.00406ca0
jmp 0x407905
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 0x407a62
mov eax, dword [ebp - 0x478]
mov edx, dword [ebp - 0x4a4]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x80]
call eax
cmp eax, esi
jne 0x407a62
mov edi, dword [ebp - 0x4ac]
cmp edi, esi
je 0x407b3b
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x407b10
sub eax, edx
sar eax, 1
je 0x407b3b
mov eax, dword [ebp - 0x478]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x88]
push edi
push eax
call edx
cmp eax, esi
jne 0x407a62
mov eax, dword [ebp - 0x480]
push eax
lea ecx, [ebp - 0x494]
call fcn.00406e40
mov eax, dword [ebp - 0x494]
mov byte [ebp - 4], 8
cmp eax, esi
je 0x407a62
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 0x407a62
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
lea ecx, [ebp - 0x474]
call fcn.00406ca0
jmp 0x407905