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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a083
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x466124]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x184]
mov dword [ebp - 4], 3
push eax
lea eax, [ebp - 0x178]
mov dword [ebp - 0x184], 0x104
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea ecx, [ebp - 0x178]
mov dword [ebp - 0x19c], 0
mov dword [ebp - 0x18c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x188], 0xf
mov byte [ebp - 0x19c], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e951
sub ecx, edx
lea eax, [ebp - 0x178]
push ecx
push eax
lea ecx, [ebp - 0x19c]
call fcn.00424640
mov byte [ebp - 4], 4
lea edx, [ebp - 0x19c]
cmp dword [ebp - 0x188], 0x10
lea edi, [ebp - 0x19c]
mov ebx, dword [ebp - 0x18c]
lea ecx, [ebp - 0x214]
cmovae edx, dword [ebp - 0x19c]
add ebx, edx
mov dword [ebp - 0x214], 0
cmp dword [ebp - 0x188], 0x10
mov dword [ebp - 0x204], 0
cmovae edi, dword [ebp - 0x19c]
xor eax, eax
mov word [ebp - 0x214], ax
mov eax, ebx
sub eax, edi
mov dword [ebp - 0x200], 7
push eax
call fcn.00426660
mov byte [ebp - 0x274], 0
lea ecx, [ebp - 0x214]
push dword [ebp - 0x274]
push ebx
push edi
call fcn.00426a00
mov byte [ebp - 4], 5
lea eax, [ebp - 0x214]
cmp dword [ebp - 0x200], 8
lea ebx, [ebp + 8]
lea edi, [ebp + 8]
mov dword [ebp - 0x1fc], 0
cmovae eax, dword [ebp - 0x214]
lea ecx, [ebp - 0x1fc]
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 0x290], eax
cmovae ebx, dword [ebp + 8]
add ebx, dword [ebp + 0x18]
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 0x1ec], 0
cmovae edi, dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x1fc], ax
mov eax, ebx
sub eax, edi
mov dword [ebp - 0x1e8], 7
push eax
call fcn.00426660
mov byte [ebp - 0x274], 0
lea ecx, [ebp - 0x1fc]
push dword [ebp - 0x274]
push ebx
push edi
call fcn.00426a00
mov byte [ebp - 4], 6
lea eax, [ebp - 0x1fc]
cmp dword [ebp - 0x1e8], 8
lea ecx, [ebp - 0x230]
cmovae eax, dword [ebp - 0x1fc]
mov dword [ebp - 0x184], eax
lea eax, [ebp + 0x20]
push eax
call fcn.00423730
mov byte [ebp - 4], 7
lea ebx, [ebp - 0x230]
cmp dword [ebp - 0x21c], 0x10
lea edi, [ebp - 0x230]
mov dword [ebp - 0x1e4], 0
cmovae ebx, dword [ebp - 0x230]
add ebx, dword [ebp - 0x220]
cmp dword [ebp - 0x21c], 0x10
cmovae edi, dword [ebp - 0x230]
xor eax, eax
mov dword [ebp - 0x1d4], 0
mov word [ebp - 0x1e4], ax
lea ecx, [ebp - 0x1e4]
mov eax, ebx
mov dword [ebp - 0x1d0], 7
sub eax, edi
push eax
call fcn.00426660
mov byte [ebp - 0x274], 0
lea ecx, [ebp - 0x1e4]
push dword [ebp - 0x274]
push ebx
push edi
call fcn.00426a00
mov byte [ebp - 4], 8
lea eax, [ebp - 0x1e4]
cmp dword [ebp - 0x1d0], 8
lea ebx, [ebp + 0x38]
lea edi, [ebp + 0x38]
mov dword [ebp - 0x1cc], 0
cmovae eax, dword [ebp - 0x1e4]
lea ecx, [ebp - 0x1cc]
cmp dword [ebp + 0x4c], 0x10
mov dword [ebp - 0x294], eax
cmovae ebx, dword [ebp + 0x38]
add ebx, dword [ebp + 0x48]
cmp dword [ebp + 0x4c], 0x10
mov dword [ebp - 0x1bc], 0
cmovae edi, dword [ebp + 0x38]
xor eax, eax
mov word [ebp - 0x1cc], ax
mov eax, ebx
sub eax, edi
mov dword [ebp - 0x1b8], 7
push eax
call fcn.00426660
mov byte [ebp - 0x274], 0
lea ecx, [ebp - 0x1cc]
push dword [ebp - 0x274]
push ebx
push edi
call fcn.00426a00
mov byte [ebp - 4], 9
lea eax, [ebp - 0x1cc]
cmp dword [ebp - 0x1b8], 8
lea ebx, [ebp + 0x50]
lea edi, [ebp + 0x50]
mov dword [ebp - 0x1b4], 0
cmovae eax, dword [ebp - 0x1cc]
lea ecx, [ebp - 0x1b4]
cmp dword [ebp + 0x64], 0x10
mov dword [ebp - 0x17c], eax
cmovae ebx, dword [ebp + 0x50]
add ebx, dword [ebp + 0x60]
cmp dword [ebp + 0x64], 0x10
mov dword [ebp - 0x1a4], 0
cmovae edi, dword [ebp + 0x50]
xor eax, eax
mov word [ebp - 0x1b4], ax
mov eax, ebx
sub eax, edi
mov dword [ebp - 0x1a0], 7
push eax
call fcn.00426660
mov byte [ebp - 0x274], 0
lea ecx, [ebp - 0x1b4]
push dword [ebp - 0x274]
push ebx
push edi
call fcn.00426a00
mov byte [ebp - 4], 0xa
lea edi, [ebp - 0x1b4]
cmp dword [ebp - 0x1a0], 8
push 0
cmovae edi, dword [ebp - 0x1b4]
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x40ec87
lea eax, [ebp - 0x268]
push eax
push 0x45e04c
push 1
push 0
push 0x45dfec
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x40f00d
call dword [sym.imp.ole32.dll_CoUninitialize]
xor esi, esi
mov edx, dword [ebp - 0x1a0]
cmp edx, 8
jb 0x40ecc9
mov ecx, dword [ebp - 0x1b4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ecbf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f48d
push edx
push ecx
call fcn.0042a429
add esp, 8
mov edx, dword [ebp - 0x1b8]
xor eax, eax
mov dword [ebp - 0x1a4], 0
mov dword [ebp - 0x1a0], 7
mov word [ebp - 0x1b4], ax
cmp edx, 8
jb 0x40ed26
mov ecx, dword [ebp - 0x1cc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ed1c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f48d
push edx
push ecx
call fcn.0042a429
add esp, 8
mov edx, dword [ebp - 0x1d0]
xor eax, eax
mov dword [ebp - 0x1bc], 0
mov dword [ebp - 0x1b8], 7
mov word [ebp - 0x1cc], ax
cmp edx, 8
jb 0x40ed83
mov ecx, dword [ebp - 0x1e4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ed79
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f48d
push edx
push ecx
call fcn.0042a429
add esp, 8
mov edx, dword [ebp - 0x21c]
xor eax, eax
mov dword [ebp - 0x1d4], 0
mov dword [ebp - 0x1d0], 7
mov word [ebp - 0x1e4], ax
cmp edx, 0x10
jb 0x40edda
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40edd0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f48d
push edx
push ecx
call fcn.0042a429
add esp, 8
mov edx, dword [ebp - 0x1e8]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
cmp edx, 8
jb 0x40ee35
mov ecx, dword [ebp - 0x1fc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ee2b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f48d
push edx
push ecx
call fcn.0042a429
add esp, 8
mov edx, dword [ebp - 0x200]
xor eax, eax
mov dword [ebp - 0x1ec], 0
mov dword [ebp - 0x1e8], 7
mov word [ebp - 0x1fc], ax
cmp edx, 8
jb 0x40ee92
mov ecx, dword [ebp - 0x214]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ee88
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f48d
push edx
push ecx
call fcn.0042a429
add esp, 8
mov edx, dword [ebp - 0x188]
xor eax, eax
mov dword [ebp - 0x204], 0
mov dword [ebp - 0x200], 7
mov word [ebp - 0x214], ax
cmp edx, 0x10
jb 0x40eee9
mov ecx, dword [ebp - 0x19c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40eedf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f48d
push edx
push ecx
call fcn.0042a429
add esp, 8
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x18c], 0
mov dword [ebp - 0x188], 0xf
mov byte [ebp - 0x19c], 0
cmp edx, 0x10
jb 0x40ef38
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ef2e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f48d
push edx
push ecx
call fcn.0042a429
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x40ef7e
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ef74
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f48d
push edx
push ecx
call fcn.0042a429
add esp, 8
mov edx, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0xf
mov byte [ebp + 0x20], 0
cmp edx, 0x10
jb 0x40efc4
mov ecx, dword [ebp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40efba
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f48d
push edx
push ecx
call fcn.0042a429
add esp, 8
mov edx, dword [ebp + 0x64]
mov dword [ebp + 0x48], 0
mov dword [ebp + 0x4c], 0xf
mov byte [ebp + 0x38], 0
cmp edx, 0x10
jb 0x40f46f
mov ecx, dword [ebp + 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f465
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f48d
jmp 0x40f465
mov eax, dword [ebp - 0x268]
lea edx, [ebp - 0x264]
mov esi, dword [ebp - 0x184]
push edx
push 0x45e160
mov ecx, dword [eax]
push 0x45df00
push esi
push eax
call dword [ecx + 0x20]
test eax, eax
jns 0x40f0de
cmp eax, 0x80070050
jne 0x40ec87
mov eax, dword [ebp - 0x268]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
jns 0x40f06c
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x268]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x40ec87
call dword [sym.imp.ole32.dll_CoUninitialize]
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
mov dword [ebp - 0x17c], esp
push eax
call fcn.00423730
sub esp, 0x18
mov byte [ebp - 4], 0xb
lea eax, [ebp + 0x38]
mov dword [ebp - 0x294], esp
mov ecx, esp
push eax
call fcn.00423730
sub esp, 0x18
mov byte [ebp - 4], 0xc
lea eax, [ebp + 0x20]
mov dword [ebp - 0x290], esp
mov ecx, esp
push eax
call fcn.00423730
sub esp, 0x18
mov byte [ebp - 4], 0xd
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00423730
mov byte [ebp - 4], 0xa
call fcn.0040e8d0
add esp, 0x60
mov esi, 1
jmp 0x40ec89
mov eax, dword [ebp - 0x264]
push 0x2000
push eax
mov ecx, dword [eax]
call dword [ecx + 0x70]
mov eax, dword [ebp - 0x264]
push 0
push dword [ebp - 0x290]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x78]
mov eax, dword [ebp - 0x264]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x264]
push dword [ebp - 0x294]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x80]
mov eax, dword [ebp - 0x264]
push dword [ebp - 0x17c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x264]
lea edx, [ebp - 0x270]
push edx
lea edx, [ebp - 0x218]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
push 0x30
lea eax, [ebp - 0x260]
push 0
push eax
call fcn.0042ba40
lea eax, [ebp - 0x180]
push eax
call fcn.004321e3
lea eax, [ebp - 0x180]
push eax
call fcn.0042f0e7
push dword [eax + 0xc]
lea eax, [ebp - 0x74]
push 0x45de18
push eax
call fcn.00402400
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x28c], 0
add esp, 0x20
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x278], 0xf
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f1b4
sub ecx, edx
lea eax, [ebp - 0x74]
push ecx
push eax
lea ecx, [ebp - 0x28c]
call fcn.00424640
cmp dword [ebp - 0x278], 0x10
lea eax, [ebp - 0x28c]
cmovae eax, dword [ebp - 0x28c]
push eax
call fcn.0043227f
mov edx, dword [ebp - 0x278]
add esp, 4
mov word [ebp - 0x258], ax
cmp edx, 0x10
jb 0x40f22b
mov ecx, dword [ebp - 0x28c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f221
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f492
push edx
push ecx
call fcn.0042a429
add esp, 8
lea eax, [ebp - 0x180]
push eax
call fcn.004321e3
lea eax, [ebp - 0x180]
push eax
call fcn.0042f0e7
mov eax, dword [eax + 0x10]
inc eax
push eax
lea eax, [ebp - 0x74]
push 0x45de18
push eax
call fcn.00402400
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x28c], 0
add esp, 0x14
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x278], 0xf
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f280
sub ecx, edx
lea eax, [ebp - 0x74]
push ecx
push eax
lea ecx, [ebp - 0x28c]
call fcn.00424640
cmp dword [ebp - 0x278], 0x10
lea eax, [ebp - 0x28c]
cmovae eax, dword [ebp - 0x28c]
push eax
call fcn.0043227f
mov edx, dword [ebp - 0x278]
add esp, 4
mov word [ebp - 0x25a], ax
cmp edx, 0x10
jb 0x40f2f7
mov ecx, dword [ebp - 0x28c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f2ed
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f497
push edx
push ecx
call fcn.0042a429
add esp, 8
lea eax, [ebp - 0x180]
push eax
call fcn.004321e3
lea eax, [ebp - 0x180]
push eax
call fcn.0042f0e7
mov eax, dword [eax + 0x14]
add eax, 0x76c
push eax
lea eax, [ebp - 0x74]
push 0x45de18
push eax
call fcn.00402400
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x28c], 0
add esp, 0x14
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x278], 0xf
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f350
sub ecx, edx
lea eax, [ebp - 0x74]
push ecx
push eax
lea ecx, [ebp - 0x28c]
call fcn.00424640
cmp dword [ebp - 0x278], 0x10
lea eax, [ebp - 0x28c]
cmovae eax, dword [ebp - 0x28c]
push eax
call fcn.0043227f
mov edx, dword [ebp - 0x278]
add esp, 4
mov word [ebp - 0x25c], ax
cmp edx, 0x10
jb 0x40f3c7
mov ecx, dword [ebp - 0x28c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f3bd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f49c
push edx
push ecx
call fcn.0042a429
add esp, 8
mov eax, 0x30
mov dword [ebp - 0x250], 0x10001
mov word [ebp - 0x260], ax
lea edx, [ebp - 0x260]
mov eax, dword [ebp - 0x270]
mov ecx, 1
mov dword [ebp - 0x24c], 0x503340
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x240], 0
mov word [ebp - 0x23c], cx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x264]
lea edx, [ebp - 0x26c]
push edx
push 0x451610
push eax
mov ecx, dword [eax]
call dword [ecx]
mov eax, dword [ebp - 0x264]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x26c]
push 1
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x26c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov esi, 1
jmp 0x40ec89
push edx
push ecx
call fcn.0042a429
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00429db0
mov esp, ebp
pop ebp
ret
call fcn.0042f419
call fcn.0042f419
call fcn.0042f419
call fcn.0042f419
int3