Function at 0x459650
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x482880
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4b700c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 0
push str.C:windowsiassistlogsAnk.bat
lea ecx, [ebp - 0x18]
call fcn.0045d100
mov byte [ebp - 4], 1
push ecx
mov dword [ebp - 0x30], esp
mov ebx, esp
mov dword [ebp - 0x2c], ebx
mov esi, dword [ebp - 0x18]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
lea eax, [esi - 4]
cmp dword [eax], 0
jl 0x4596c1
cmp ecx, dword [esi - 0x10]
jne 0x4596c1
lea edi, [esi - 0x10]
lock inc dword [eax]
jmp 0x4596eb
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
je 0x459efa
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov edx, dword [esi - 0xc]
inc edx
push edx
push esi
lea ecx, [edi + 0x10]
call fcn.004031c0
add esp, 8
lea eax, [edi + 0x10]
mov dword [ebx], eax
mov byte [ebp - 4], 2
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
call fcn.00464350
add esp, 4
test al, al
jne 0x45981b
push str.C:windowsiassistlogsAnk.vbs
lea ecx, [ebp - 0x18]
call fcn.0045d070
push ecx
mov dword [ebp - 0x30], esp
mov ebx, esp
mov dword [ebp - 0x2c], ebx
mov esi, dword [ebp - 0x18]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
lea eax, [esi - 4]
cmp dword [eax], 0
jl 0x459744
cmp ecx, dword [esi - 0x10]
jne 0x459744
lea edi, [esi - 0x10]
lock inc dword [eax]
jmp 0x45976e
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
je 0x459eff
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov edx, dword [esi - 0xc]
inc edx
push edx
push esi
lea ecx, [edi + 0x10]
call fcn.004031c0
add esp, 8
lea eax, [edi + 0x10]
mov dword [ebx], eax
mov byte [ebp - 4], 4
mov byte [ebp - 4], 5
mov byte [ebp - 4], 1
call fcn.00464350
add esp, 4
test al, al
jne 0x45981b
push str.C:windowsiassistlogsAnk.ps1
lea ecx, [ebp - 0x18]
call fcn.0045d070
push ecx
mov dword [ebp - 0x30], esp
mov ebx, esp
mov dword [ebp - 0x2c], ebx
mov esi, dword [ebp - 0x18]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
lea eax, [esi - 4]
cmp dword [eax], 0
jl 0x4597c7
cmp ecx, dword [esi - 0x10]
jne 0x4597c7
lea edi, [esi - 0x10]
lock inc dword [eax]
jmp 0x4597f1
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
je 0x459f04
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov edx, dword [esi - 0xc]
inc edx
push edx
push esi
lea ecx, [edi + 0x10]
call fcn.004031c0
add esp, 8
lea eax, [edi + 0x10]
mov dword [ebx], eax
mov byte [ebp - 4], 6
mov byte [ebp - 4], 7
mov byte [ebp - 4], 1
call fcn.00464350
add esp, 4
test al, al
jne 0x45981b
push str.C:windowsiassistlogsAnk.cmd
lea ecx, [ebp - 0x18]
call fcn.0045d070
push ecx
mov dword [ebp - 0x30], esp
mov ebx, esp
mov dword [ebp - 0x2c], ebx
mov esi, dword [ebp - 0x18]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
lea eax, [esi - 4]
cmp dword [eax], 0
jl 0x459846
cmp ecx, dword [esi - 0x10]
jne 0x459846
lea edi, [esi - 0x10]
lock inc dword [eax]
jmp 0x459870
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
je 0x459f09
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov edx, dword [esi - 0xc]
inc edx
push edx
push esi
lea ecx, [edi + 0x10]
call fcn.004031c0
add esp, 8
lea eax, [edi + 0x10]
mov dword [ebx], eax
mov byte [ebp - 4], 8
mov byte [ebp - 4], 9
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.runScriptsByDefault
call fcn.0045d100
mov byte [ebp - 4], 0xa
mov byte [ebp - 4], 1
or ecx, 0xffffffff
call fcn.0045f800
add esp, 4
mov dword [ebp - 0x30], esp
mov ebx, esp
mov dword [ebp - 0x2c], ebx
mov esi, dword [ebp - 0x18]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
lea eax, [esi - 4]
cmp dword [eax], 0
jl 0x4598ca
cmp ecx, dword [esi - 0x10]
jne 0x4598ca
lea edi, [esi - 0x10]
lock inc dword [eax]
jmp 0x4598f4
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
je 0x459f0e
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov edx, dword [esi - 0xc]
inc edx
push edx
push esi
lea ecx, [edi + 0x10]
call fcn.004031c0
add esp, 8
lea eax, [edi + 0x10]
mov dword [ebx], eax
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], 1
call fcn.00464350
add esp, 4
test al, al
je 0x459d1d
mov esi, dword [ebp - 0x18]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
lea eax, [esi - 4]
cmp dword [eax], 0
jl 0x459937
cmp ecx, dword [esi - 0x10]
jne 0x459937
lea edi, [esi - 0x10]
lock inc dword [eax]
jmp 0x459961
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
je 0x459f13
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov edx, dword [esi - 0xc]
inc edx
push edx
push esi
lea ecx, [edi + 0x10]
call fcn.004031c0
add esp, 8
lea esi, [edi + 0x10]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 0xe
push ecx
push str..vbs
lea ecx, [ebp - 0x18]
call fcn.0045cc50
test eax, eax
js 0x459a4e
push str.cscript___NOLOGO
lea ecx, [ebp - 0x28]
call fcn.0045d100
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x30]
call fcn.0045c7c0
add esp, 4
mov byte [ebp - 4], 0x10
mov edx, dword [eax]
lea ecx, [edx - 0x10]
lea ebx, [esi - 0x10]
cmp ecx, ebx
je 0x4599fe
lea esi, [ebx + 0xc]
cmp dword [esi], 0
jl 0x4599ef
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x4599ef
call fcn.00403060
mov dword [ebp - 0x2c], eax
or edi, 0xffffffff
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4599e7
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
mov eax, dword [ebp - 0x2c]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
jmp 0x459a01
push dword [edx - 0xc]
push edx
lea ecx, [ebp - 0x1c]
call fcn.004030c0
mov esi, dword [ebp - 0x1c]
or edi, 0xffffffff
mov byte [ebp - 4], 0x11
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x459a23
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 0x12
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x459b29
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
jmp 0x459b29
push ecx
push str..ps1
lea ecx, [ebp - 0x18]
call fcn.0045cc50
test eax, eax
js 0x459b26
push str.powershell__ExecutionPolicy_ByPass__File
lea ecx, [ebp - 0x28]
call fcn.0045d100
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x2c]
call fcn.0045c7c0
add esp, 4
mov byte [ebp - 4], 0x14
mov edx, dword [eax]
lea ecx, [edx - 0x10]
lea ebx, [esi - 0x10]
cmp ecx, ebx
je 0x459add
lea esi, [ebx + 0xc]
cmp dword [esi], 0
jl 0x459ace
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x459ace
call fcn.00403060
mov dword [ebp - 0x30], eax
or edi, 0xffffffff
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x459ac6
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
mov eax, dword [ebp - 0x30]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
jmp 0x459ae0
push dword [edx - 0xc]
push edx
lea ecx, [ebp - 0x1c]
call fcn.004030c0
mov esi, dword [ebp - 0x1c]
or edi, 0xffffffff
mov byte [ebp - 4], 0x15
mov byte [ebp - 4], 0x13
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x459b02
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 0x16
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x459b29
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
jmp 0x459b29
or edi, 0xffffffff
mov byte [ebp - 0x11], 1
push ecx
mov dword [ebp - 0x2c], esp
mov dword [ebp - 0x30], esp
add esi, 0xfffffff0
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
lea eax, [esi + 0xc]
cmp dword [eax], 0
jl 0x459b53
cmp ecx, dword [esi]
jne 0x459b53
mov ebx, esi
lock inc dword [eax]
jmp 0x459b80
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x459f18
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov edx, dword [esi + 4]
inc edx
push edx
lea eax, [esi + 0x10]
push eax
lea ecx, [ebx + 0x10]
call fcn.004031c0
add esp, 8
lea eax, [ebx + 0x10]
mov ecx, dword [ebp - 0x30]
mov dword [ecx], eax
mov byte [ebp - 4], 0x17
mov byte [ebp - 4], 0x18
mov byte [ebp - 4], 0xe
mov dl, byte [ebp - 0x11]
lea ecx, [ebp - 0x20]
call fcn.00460ee0
mov byte [ebp - 4], 0x19
push str.fail
lea ecx, [ebp - 0x20]
call fcn.0045cc50
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push 0x48780e
test eax, eax
js 0x459bf9
call fcn.0045d100
mov byte [ebp - 4], 0x1a
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0x48780e
call fcn.0045d100
mov byte [ebp - 4], 0x1b
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
lea eax, [ebp - 0x20]
push eax
mov edx, str.FAIL_
call fcn.0045c620
add esp, 4
mov byte [ebp - 4], 0x1c
jmp 0x459c31
call fcn.0045d100
mov byte [ebp - 4], 0x1d
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0x48780e
call fcn.0045d100
mov byte [ebp - 4], 0x1e
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
lea eax, [ebp - 0x20]
push eax
mov edx, str.PASS_
call fcn.0045c620
add esp, 4
mov byte [ebp - 4], 0x1f
mov byte [ebp - 4], 0x19
mov ecx, dword [ebp - 0x24]
call fcn.0045fd10
add esp, 0xc
push ecx
mov dword [ebp - 0x28], esp
mov dword [ebp - 0x2c], esp
mov ebx, dword [ebp - 0x20]
add ebx, 0xfffffff0
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
lea eax, [ebx + 0xc]
cmp dword [eax], 0
jl 0x459c67
cmp ecx, dword [ebx]
jne 0x459c67
lock inc dword [eax]
jmp 0x459c9a
mov eax, dword [ecx]
push 2
push dword [ebx + 4]
call dword [eax]
mov ecx, eax
mov dword [ebp - 0x30], ecx
test ecx, ecx
je 0x459f1d
mov eax, dword [ebx + 4]
mov dword [ecx + 4], eax
mov edx, dword [ebx + 4]
inc edx
push edx
lea eax, [ebx + 0x10]
push eax
add ecx, 0x10
call fcn.004031c0
add esp, 8
mov ebx, dword [ebp - 0x30]
lea eax, [ebx + 0x10]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
mov byte [ebp - 4], 0x20
mov byte [ebp - 4], 0x21
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.runScriptsByDefault
call fcn.0045d100
mov byte [ebp - 4], 0x22
mov byte [ebp - 4], 0x19
or ecx, 0xffffffff
call fcn.0045f800
add esp, 8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0x23
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x459cf8
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 0x24
mov byte [ebp - 4], 1
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x459da1
mov ecx, dword [esi]
mov eax, dword [ecx]
push esi
call dword [eax + 4]
jmp 0x459da1
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push 0x48780e
call fcn.0045d100
mov byte [ebp - 4], 0x25
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0x48780e
call fcn.0045d100
mov byte [ebp - 4], 0x26
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.FAIL_Script_File_Does_Not_Exist.
call fcn.004026c0
mov byte [ebp - 4], 0x27
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
call fcn.0045fd10
add esp, 8
mov ecx, esp
mov dword [ebp - 0x30], esp
push 0x488924
call fcn.0045d100
mov byte [ebp - 4], 0x28
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.runScriptsByDefault_Script_File_Does_Not_Exist.
call fcn.0045d100
mov byte [ebp - 4], 0x29
mov byte [ebp - 4], 1
or ecx, 0xffffffff
call fcn.0045f800
add esp, 8
or edi, 0xffffffff
mov byte [ebp - 4], 0x2a
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x459dc1
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004031b0
call fcn.004031b0
call fcn.004031b0
call fcn.004031b0
call fcn.004031b0
call fcn.004031b0
call fcn.004031b0
call fcn.004031b0
int3