Function at 0x4038ce
Capabilities:
Schedule task via itaskservice

Disassembly:
push ebp
sub esp, 0x20c
lea ebp, [esp - 4]
mov eax, dword [0x41a110]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push 0xb8
mov eax, 0x414f83
call fcn.00404d15
mov eax, dword [ebp + 0x224]
mov edi, dword [ebp + 0x220]
mov ebx, dword [ebp + 0x21c]
xor esi, esi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x228]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x54], esi
cmp dword [ebp + 0x218], esi
jne 0x404009
push esi
call fcn.004035a2
pop ecx
cmp eax, 1
je 0x40402c
xor eax, eax
push 0x208
mov word [ebp], ax
lea eax, [ebp + 2]
push esi
push eax
call fcn.00404670
push esi
call fcn.0040540e
push eax
call fcn.0040545f
call fcn.00405471
push eax
lea eax, [ebp]
push str.KwRunAsStdUser_Task_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push str.KwRunAsStdUser_Task
call fcn.00403614
add esp, 0x24
lea eax, [ebp - 0x2c]
push eax
push 0x416aa4
push 1
push esi
push 0x416a94
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
cmp edi, esi
jl 0x403f4f
cmp dword [ebp - 0x2c], esi
je 0x403f5c
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x74]
push eax
call ebx
and dword [ebp - 4], esi
lea esi, [ebp - 0x74]
lea edi, [ebp - 0xb4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x64]
push eax
movsd dword es:[edi], dword [esi]
call ebx
lea esi, [ebp - 0x64]
lea edi, [ebp - 0x94]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x84]
push eax
movsd dword es:[edi], dword [esi]
call ebx
lea esi, [ebp - 0x84]
lea edi, [ebp - 0xa4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xc4]
push eax
movsd dword es:[edi], dword [esi]
call ebx
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0xb4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x94]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov edi, esp
mov eax, dword [ebp - 0x2c]
lea esi, [ebp - 0xa4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0xc4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
mov byte [ebp - 4], 3
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x28]
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov edi, eax
lea eax, [ebp - 0xc4]
push eax
call ebx
lea eax, [ebp - 0x84]
push eax
call ebx
lea eax, [ebp - 0x64]
push eax
call ebx
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x74]
push eax
call ebx
test edi, edi
jl 0x403f4f
push 0x4169dc
lea ecx, [ebp - 0x18]
call fcn.0040383e
mov eax, dword [eax]
xor esi, esi
mov dword [ebp - 4], 4
cmp eax, esi
je 0x403ab7
mov ecx, dword [eax]
jmp 0x403ab9
xor ecx, ecx
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
lea edi, [ebp - 0x30]
push edi
push ecx
push eax
call dword [edx + 0x1c]
mov ecx, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
mov edi, eax
cmp ecx, esi
je 0x403ad9
call fcn.0040388b
cmp edi, esi
jl 0x403f4f
cmp dword [ebp - 0x30], esi
je 0x403f4f
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040383e
mov eax, dword [eax]
mov dword [ebp - 4], 5
cmp eax, esi
je 0x403b07
mov ecx, dword [eax]
jmp 0x403b09
xor ecx, ecx
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
push esi
push ecx
push eax
call dword [edx + 0x3c]
mov ecx, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
cmp ecx, esi
je 0x403b24
call fcn.0040388b
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push esi
push eax
call dword [ecx + 0x24]
mov edi, eax
cmp edi, esi
jl 0x403f4f
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x403f4f
mov ecx, dword [eax]
lea edx, [ebp - 0x38]
push edx
push eax
call dword [ecx + 0x1c]
mov edi, eax
cmp edi, esi
jl 0x403f4f
cmp dword [ebp - 0x38], esi
je 0x403f4f
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x28]
push edx
push eax
call dword [ecx + 0x2c]
test eax, eax
jl 0x403ba0
mov ecx, dword [ebp - 0x28]
cmp ecx, esi
je 0x403ba0
push esi
call fcn.004034dc
mov ecx, dword [ebp - 0x28]
push esi
call fcn.0040349a
mov ecx, dword [ebp - 0x28]
push esi
call fcn.004034bb
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
push 0x4169e0
push eax
call dword [ecx + 0x28]
mov edi, eax
cmp edi, esi
jl 0x403f4f
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push eax
call dword [ecx + 0x3c]
mov edi, eax
test edi, edi
jl 0x403f4f
cmp dword [ebp - 0x20], 0
je 0x403f4f
push str.KwRunAsStdUser_Principal
lea ecx, [ebp - 0x18]
call fcn.0040383e
mov eax, dword [eax]
mov dword [ebp - 4], 6
test eax, eax
je 0x403bf7
mov ecx, dword [eax]
jmp 0x403bf9
xor ecx, ecx
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x20]
mov ecx, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
mov edi, eax
test ecx, ecx
je 0x403c15
call fcn.0040388b
test edi, edi
jl 0x403f4f
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push 3
push eax
call dword [ecx + 0x38]
mov edi, eax
test edi, edi
jl 0x403f4f
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x48]
mov edi, eax
test edi, edi
jl 0x403f4f
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x50]
push edx
push eax
call dword [ecx + 0x2c]
mov edi, eax
test edi, edi
jl 0x403f4f
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x403f4f
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x58]
mov edi, eax
test edi, edi
jl 0x403f4f
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x48]
push edx
push eax
call dword [ecx + 0x24]
mov edi, eax
test edi, edi
jl 0x403f4f
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x403f4f
mov ecx, dword [eax]
lea edx, [ebp - 0x40]
push edx
push 7
pop esi
push esi
push eax
call dword [ecx + 0x28]
mov edi, eax
test edi, edi
jl 0x403f4f
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x403f4f
mov ecx, dword [eax]
lea edx, [ebp - 0x34]
push edx
push 0x416a84
push eax
call dword [ecx]
mov edi, eax
test edi, edi
jl 0x403f4f
cmp dword [ebp - 0x34], 0
je 0x403f4f
push str.RunAsStdUser_Trigger
lea ecx, [ebp - 0x18]
call fcn.0040383e
mov eax, dword [eax]
mov dword [ebp - 4], esi
test eax, eax
je 0x403cfc
mov ecx, dword [eax]
jmp 0x403cfe
xor ecx, ecx
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x24]
mov ecx, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
mov edi, eax
test ecx, ecx
je 0x403d1a
call fcn.0040388b
test edi, edi
jl 0x403f4f
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
push str.PT0S
push eax
call dword [ecx + 0x54]
mov edi, eax
test edi, edi
jl 0x403f4f
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x44]
push edx
push eax
call dword [ecx + 0x44]
mov edi, eax
test edi, edi
jl 0x403f4f
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x403f4f
mov ecx, dword [eax]
lea edx, [ebp - 0x3c]
push edx
push 0
push eax
call dword [ecx + 0x30]
mov edi, eax
test edi, edi
jl 0x403f4f
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x403f4f
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push 0x416a74
push eax
call dword [ecx]
mov edi, eax
test edi, edi
jl 0x403f4f
cmp dword [ebp - 0x1c], 0
je 0x403f4f
push dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
call fcn.004037f1
mov eax, dword [eax]
mov dword [ebp - 4], 8
test eax, eax
je 0x403dbb
mov ecx, dword [eax]
jmp 0x403dbd
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x2c]
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
mov edi, eax
test ecx, ecx
je 0x403dd9
call fcn.0040388b
test edi, edi
jl 0x403f4f
cmp dword [ebp - 0x24], 0
je 0x403e29
push dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.004037f1
mov eax, dword [eax]
mov dword [ebp - 4], 9
test eax, eax
je 0x403e03
mov ecx, dword [eax]
jmp 0x403e05
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x34]
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
mov edi, eax
test ecx, ecx
je 0x403e21
call fcn.0040388b
test edi, edi
jl 0x403f4f
cmp dword [ebp - 0x4c], 0
je 0x403e71
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x14]
call fcn.004037f1
mov eax, dword [eax]
mov dword [ebp - 4], 0xa
test eax, eax
je 0x403e4b
mov ecx, dword [eax]
jmp 0x403e4d
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x3c]
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
mov edi, eax
test ecx, ecx
je 0x403e69
call fcn.0040388b
test edi, edi
jl 0x403f4f
push 0x416a58
lea ecx, [ebp - 0x84]
call fcn.00403462
mov esi, eax
lea edi, [ebp - 0xa4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 4], 0xb
movsd dword es:[edi], dword [esi]
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea esi, [ebp - 0x64]
lea edi, [ebp - 0x94]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x74]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea esi, [ebp - 0x74]
lea edi, [ebp - 0xb4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xd
movsd dword es:[edi], dword [esi]
call fcn.0040383e
mov eax, dword [eax]
mov byte [ebp - 4], 0xe
test eax, eax
je 0x403ee0
mov ecx, dword [eax]
jmp 0x403ee2
xor ecx, ecx
lea esi, [ebp - 0x54]
push esi
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0xa4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 3
sub esp, 0x10
mov edi, esp
mov eax, dword [ebp - 0x30]
lea esi, [ebp - 0x94]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [eax]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0xb4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 6
push dword [ebp - 0x10]
movsd dword es:[edi], dword [esi]
push ecx
push eax
movsd dword es:[edi], dword [esi]
call dword [edx + 0x44]
mov ecx, dword [ebp - 0x24]
mov edi, eax
test ecx, ecx
je 0x403f36
call fcn.0040388b
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x74]
push eax
call ebx
lea eax, [ebp - 0x64]
push eax
call ebx
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x84]
push eax
call ebx
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x403f5c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x403f69
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x403f76
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x403f83
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x403f90
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x403f9d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x403faa
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x403fb7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x403fc4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x403fd1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x403fde
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x403feb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x403ff8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x404005
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
jmp 0x404050
push 0x2e
push edi
call fcn.004053f7
pop ecx
pop ecx
cmp eax, esi
je 0x40402c
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
mov eax, 0x41698c
je 0x404031
mov eax, str.open
push dword [ebp - 0x4c]
push dword [ebp - 0x24]
push edi
push eax
push ebx
call fcn.004034fd
add esp, 0x14
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.004045aa
add ebp, 0x210
leave
ret