Function at 0x101fa39
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push edi
push 0x100
xor edi, edi
lea eax, [ebp - 0x10c]
push edi
push eax
call sub.msvcrt.dll_memset
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
add esp, 0xc
cmp eax, edi
jbe 0x101fa6c
mov dword [ebp - 0xc], edi
jmp 0x101fa76
mov eax, dword [ebx + 8]
mov dword [ebp - 0xc], 1
mov dword [ebp + 8], eax
cmp eax, 0x40
jb 0x101fa86
push 4
pop eax
jmp 0x101fdca
push esi
mov dword [ebp - 8], edi
cmp dword [ebp + 8], edi
jbe 0x101fb05
lea eax, [ebx + 0x10]
mov dword [ebp - 4], eax
mov esi, 0x1a0
push esi
push 8
push dword [0x10576f8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x10c], edi
test edi, edi
je 0x101fb36
push esi
push 0
push edi
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 4]
add esp, 0xc
cmp dword [ebp - 0xc], 0
je 0x101fae0
mov eax, dword [eax + 0x100]
mov dword [edi + 4], eax
mov dword [edi + 0x14], 0x100
jmp 0x101faf4
mov dword [edi + 0x180], 0x103aee7
mov eax, dword [eax]
push eax
mov dword [edi], eax
call fcn.0101f4da
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add dword [ebp - 4], 4
cmp eax, dword [ebp + 8]
jb 0x101fa9a
xor edi, edi
cmp dword [ebp + 8], 1
jne 0x101fb49
cmp dword [ebp - 0xc], edi
jne 0x101fb49
mov eax, dword [ebp - 0x10c]
mov esi, dword [eax]
lea eax, [ebp - 4]
push eax
push 0x7fffffff
push esi
call fcn.0101f5cd
test eax, eax
jge 0x101fb3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x101fd78
push 0xe
pop edi
jmp 0x101fd7a
push dword [ebp - 4]
push esi
call fcn.0103b01b
jmp 0x101fb4e
call fcn.0103ea11
mov dword [ebp - 8], edi
cmp dword [ebp + 8], edi
jbe 0x101fbcf
mov edi, dword [ebp - 0xc]
neg edi
sbb edi, edi
and edi, 0x100
or edi, 0x10000000
lea esi, [ebx + 0x3c0]
mov eax, dword [ebp - 8]
mov eax, dword [ebp + eax*4 - 0x10c]
mov dword [eax + 0x14], edi
mov ecx, dword [ebx + 0x3b0]
and ecx, 0x1000
or dword [eax + 0x14], ecx
and dword [eax + 0x178], 0
mov dword [eax + 0x180], 0x101f609
push eax
mov dword [eax + 0x190], 0x102bcc4
call dword [sym.imp.ADVAPI32.dll_OpenTraceW]
mov dword [esi], eax
mov dword [esi + 4], edx
cmp eax, 0xffffffff
jne 0x101fbbf
test edx, edx
je 0x101fb2b
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add esi, 8
cmp eax, dword [ebp + 8]
jb 0x101fb6f
xor edi, edi
mov eax, dword [ebx + 0x3b0]
test al, al
jns 0x101fd08
test eax, 0x12000000
jne 0x101fce1
mov byte [ebp - 4], 0
test al, 0x20
je 0x101fbf4
mov byte [ebp - 4], 1
push edi
push dword [ebp - 4]
push dword [ebx + 0x318]
call fcn.01024012
mov esi, eax
cmp esi, edi
je 0x101fb2b
cmp byte [ebp - 4], 0
mov dword [ebx + 0x39c], esi
je 0x101fc2c
push esi
push 2
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], 0xfeff
call fcn.01023b75
mov eax, dword [ebx + 0x3b0]
test eax, 0x9000000
jne 0x101fcd2
push 0x1002168
push 0x100215c
push 0x1002150
test eax, 0x200
je 0x101fcb3
push 0x100213c
push 0x1002130
push 0x100211c
push 0x1002110
push 0x10020fc
push 0x10020f8
push 0x10020f4
push 0x10020ec
push 0x10020e4
push 0x10020dc
push 0x10020d4
push 0x10020cc
push 0x10020c4
push 0x10020b8
push 0x10020b0
push 0x10020a4
push 0x1001f80
push esi
call fcn.01024264
add esp, 0x54
jmp 0x101fd08
push 0x10020f8
push 0x10020b0
push 0x10020a4
push 0x1001f18
push esi
call fcn.01024264
add esp, 0x20
jmp 0x101fd08
push 0x1001f0c
push esi
call fcn.010243c0
pop ecx
pop ecx
jmp 0x101fd08
lea edi, [ebx + 0x318]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push dword [edi]
call sub.wevtapi.dll_EvtIntCreateLocalLogfile
test eax, eax
je 0x101fb2b
mov dword [ebx + 0x68c], eax
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
cmp dword [ebp - 0xc], edi
je 0x101fd1a
push 0x1079a20
call esi
push edi
push edi
push dword [ebp + 8]
lea eax, [ebx + 0x3c0]
push eax
call dword [sym.imp.ADVAPI32.dll_ProcessTrace]
cmp dword [ebp - 0xc], 0
mov edi, eax
je 0x101fd4d
cmp dword [0x1079a28], 0xffffffff
jne 0x101fd4d
cmp dword [0x1079a2c], 0xffffffff
jne 0x101fd4d
push 0x1079a28
call esi
mov eax, dword [0x1079a28]
sub eax, dword [0x1079a20]
mov dword [0x1079a7c], eax
test edi, edi
jne 0x101fd7a
test dword [ebx + 0x3b0], 0x20000000
je 0x101fd7a
push dword [ebx + 0x34c]
call fcn.0103e6b9
mov edi, eax
xor esi, esi
cmp dword [ebp + 8], esi
jbe 0x101fdc7
add ebx, 0x3c0
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
cmp eax, 0xffffffff
jne 0x101fd95
test ecx, ecx
je 0x101fda4
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CloseTrace]
or dword [ebx], 0xffffffff
and dword [ebx + 4], 0
mov eax, dword [ebp + esi*4 - 0x10c]
test eax, eax
je 0x101fdbe
push eax
push 0
push dword [0x10576f8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
inc esi
add ebx, 8
cmp esi, dword [ebp + 8]
jb 0x101fd87
mov eax, edi
pop esi
pop edi
pop ebx
leave
ret 4