Function at 0x1006cd4
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x688
mov eax, dword [0x1012070]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0x4e4]
call fcn.0100569b
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x620], eax
jne 0x1007074
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x1007074
push 0x10018c0
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x100125c
lea eax, [ebp - 0x61c]
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
call edi
lea eax, [ebp - 0x634]
push eax
push 0x2001b
push ebx
lea eax, [ebp - 0x61c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
mov dword [ebp - 0x620], eax
jne 0x1007074
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x644]
push eax
push 0x1001544
push dword [esi + 0x4e4]
mov dword [ebp - 0x644], ebx
push dword [ebp - 0x634]
call fcn.010027f0
cmp dword [ebp - 0x640], ebx
mov dword [ebp - 0x620], eax
jne 0x100706c
lea eax, [ebp - 0x66c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0x654]
push eax
lea eax, [ebp - 0x66c]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
xor eax, eax
lea edi, [ebp - 0x630]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x630]
push eax
push 0x1001510
push dword [ebp - 0x634]
mov word [ebp - 0x62e], 1
mov word [ebp - 0x630], 1
mov dword [ebp - 0x62c], ebx
mov dword [ebp - 0x628], ebx
mov dword [ebp - 0x624], ebx
call fcn.01002a73
mov dword [ebp - 0x620], eax
xor eax, eax
lea edi, [ebp - 0x630]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
or dword [ebp - 0x628], 0xffffffff
lea eax, [ebp - 0x630]
push eax
push eax
mov edi, 0x1001504
push edi
push dword [esi + 0x4e4]
mov word [ebp - 0x62e], 2
push dword [ebp - 0x634]
mov word [ebp - 0x630], 1
mov dword [ebp - 0x62c], ebx
mov dword [ebp - 0x624], 0x7fffffff
call fcn.01002714
cmp dword [ebp - 0x62c], ebx
mov dword [ebp - 0x620], eax
je 0x1006ebf
cmp dword [ebp - 0x62c], 2
jne 0x1006f01
mov eax, dword [ebp - 0x650]
cmp eax, dword [ebp - 0x624]
jl 0x1006f01
jg 0x1006ebf
mov eax, dword [ebp - 0x654]
cmp eax, dword [ebp - 0x628]
jb 0x1006f01
or dword [ebp - 0x628], 0xffffffff
lea eax, [ebp - 0x630]
push eax
push edi
push dword [ebp - 0x634]
mov word [ebp - 0x62e], 2
mov word [ebp - 0x630], 1
mov dword [ebp - 0x62c], ebx
mov dword [ebp - 0x624], 0x7fffffff
call fcn.01002a73
mov dword [ebp - 0x620], eax
cmp dword [ebp - 0x620], ebx
jne 0x1006f32
push 4
lea eax, [ebp - 0x64c]
push eax
push 0x1001544
push dword [ebp - 0x634]
mov dword [ebp - 0x64c], 2
call fcn.01002a4f
mov dword [ebp - 0x620], eax
xor eax, eax
lea edi, [ebp - 0x630]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x65c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [ebp - 0x65c]
mov dword [ebp - 0x628], eax
mov eax, dword [ebp - 0x658]
mov dword [ebp - 0x624], eax
lea eax, [ebp - 0x630]
push eax
push 0x1001950
push dword [ebp - 0x634]
mov word [ebp - 0x62e], 5
mov word [ebp - 0x630], 1
mov dword [ebp - 0x62c], ebx
call fcn.01002a73
cmp eax, ebx
mov dword [ebp - 0x620], eax
jne 0x1007013
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov dword [ebp - 0x638], eax
je 0x1007007
push 0x110
push 0x10019a4
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, ebx
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x648], eax
je 0x1006ff1
lea ecx, [ebp - 0x688]
push ecx
push 0x80
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
push dword [ebp - 0x648]
call edi
jmp 0x1006ffd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x620], eax
push dword [ebp - 0x638]
call edi
jmp 0x1007013
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x620], eax
push dword [ebp - 0x634]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x620], ebx
je 0x10070c4
xor edi, edi
inc edi
cmp dword [esi + 0x4fc], edi
je 0x10070c4
mov eax, dword [esi + 0x4e4]
mov dword [ebp - 0x63c], eax
lea eax, [esi + 0xbc]
mov dword [ebp - 0x638], eax
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x63c]
push eax
push 4
push 2
push ebx
push 0x800007fc
jmp 0x10070af
mov dword [ebp - 0x620], ebx
jmp 0x10070c4
xor edi, edi
inc edi
cmp dword [esi + 0x4fc], edi
mov eax, 0x800007fb
mov dword [ebp - 0x620], eax
je 0x10070c4
mov ecx, dword [esi + 0x4e4]
mov dword [ebp - 0x63c], ecx
lea ecx, [esi + 0xbc]
push ebx
mov dword [ebp - 0x638], ecx
lea ecx, [ebp - 0x63c]
push ecx
push ebx
push 2
push ebx
push eax
push ebx
push 2
push dword [0x1012b30]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
mov dword [esi + 0x4fc], edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x620]
pop edi
pop esi
pop ebx
call fcn.01009963
leave
ret 4