Function at 0x43caf0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2e1f
mov eax, dword fs:[0]
push eax
sub esp, 0x204
mov eax, dword [0x507254]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x104], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x1c], edi
push str.Service_Control_Manager
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_OpenEventLogW]
mov esi, eax
test esi, esi
jne 0x43cb58
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x100], ecx
jmp 0x43cb67
mov dword [ebp - 0x18], 0
mov ecx, esi
mov dword [ebp - 0x100], esi
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 1
test ecx, ecx
jne 0x43cc0e
push 0x16
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x10c], ecx
lea ecx, [ebp - 0x11c]
push str.event_log::open_failed
mov dword [ebp - 0x108], 0xf
call fcn.00403c60
cmp dword [ebp - 0x100], 0
movups xmm0, xmmword [ebp - 0x11c]
mov eax, dword [ebp - 0x18]
mov dword [edi], eax
mov dword [edi + 4], 0x507d40
mov dword [edi + 8], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
movups xmmword [edi + 8], xmm0
movq xmm0, qword [ebp - 0x10c]
movq qword [edi + 0x18], xmm0
mov byte [edi + 0x20], 1
je 0x43cbeb
push esi
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x43cfa7
mov edx, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov eax, edi
jmp 0x43d1c4
push dword [ebp + 0xc]
lea ecx, [ebp - 0x168]
push dword [ebp + 8]
call fcn.00441220
add esp, 8
mov edi, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x138]
push 0x72
xor eax, eax
mov dword [ebp - 0x138], 0
push str._QueryList____Query_PathSystem_______Select_Event_System_Provider__EventSourceName___Service_Control_Manager__
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 7
mov word [ebp - 0x138], ax
call fcn.00403940
push 0x2d
push str._and_TimeCreated_timediff__SystemTime__lt_
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 3
call fcn.00402df0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x150], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x140], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push edi
lea eax, [ebp - 0x150]
mov byte [ebp - 4], 4
push eax
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x11c]
call fcn.00412560
push 0x21
push str.____Select_____Query___QueryList_
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 5
call fcn.00402df0
mov dword [ebp - 0x44], 0
xor ecx, ecx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x34], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x108]
cmp edx, 8
jb 0x43cd4e
mov ecx, dword [ebp - 0x11c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43cd44
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43d1df
push edx
push ecx
call fcn.004a6287
add esp, 8
xor eax, eax
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 7
mov word [ebp - 0x11c], ax
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x13c]
cmp edx, 8
jb 0x43cdaf
mov ecx, dword [ebp - 0x150]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43cda5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43d1df
push edx
push ecx
call fcn.004a6287
add esp, 8
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x124]
cmp edx, 8
jb 0x43cdf3
mov ecx, dword [ebp - 0x138]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43cde9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43d1df
push edx
push ecx
call fcn.004a6287
add esp, 8
xor eax, eax
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 7
mov word [ebp - 0x138], ax
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x154]
cmp edx, 8
jb 0x43ce54
mov ecx, dword [ebp - 0x168]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43ce4a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43d1df
push edx
push ecx
call fcn.004a6287
add esp, 8
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push 0x201
cmovae eax, dword [ebp - 0x44]
push eax
push str.System
push 0
call dword [sym.imp.wevtapi.dll_EvtQuery]
mov edi, eax
mov dword [ebp - 0x120], edi
test edi, edi
jne 0x43ce97
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
mov dword [ebp - 0x100], eax
mov dword [ebp - 0x120], edi
mov dword [ebp - 0x18], ecx
jmp 0x43cea6
mov dword [ebp - 0x100], 0
mov ecx, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x2c], edi
mov byte [ebp - 4], 0xb
test ecx, ecx
jne 0x43cfae
push 0x17
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x10c], ecx
lea ecx, [ebp - 0x11c]
push str.event_log::query_failed
mov dword [ebp - 0x108], 0xf
call fcn.00403c60
cmp dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x104]
movups xmm0, xmmword [ebp - 0x11c]
mov ecx, dword [ebp - 0x100]
mov dword [eax], ecx
mov dword [eax + 4], 0x507d40
mov dword [eax + 8], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
movups xmmword [eax + 8], xmm0
movq xmm0, qword [ebp - 0x10c]
movq qword [eax + 0x18], xmm0
mov byte [eax + 0x20], 1
je 0x43cf30
push edi
call dword [sym.imp.wevtapi.dll_EvtClose]
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x43cf6a
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43cf60
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43d1e4
push edx
push ecx
call fcn.004a6287
add esp, 8
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
test esi, esi
je 0x43cf89
push esi
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x43cfa1
mov esi, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov edi, dword [ebp - 0x104]
mov eax, edi
jmp 0x43d1c4
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push ecx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xc
call fcn.00440030
lea eax, [ebp - 0x14]
mov dword [ebp - 0x100], 0
push eax
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x100]
mov dword [ebp - 0x14], 0
push eax
push 1
push edi
call dword [sym.imp.wevtapi.dll_EvtNext]
test eax, eax
jne 0x43d020
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x103
cmove eax, ecx
xor esi, esi
jmp 0x43d028
mov esi, dword [ebp - 0x100]
xor eax, eax
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 0xd
test esi, esi
je 0x43d17f
test eax, eax
jne 0x43d17f
mov ecx, dword [ebp - 0x24]
mov eax, 0x2e8ba2e9
sub ecx, dword [ebp - 0x28]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x19
jae 0x43d17f
mov dword [ebp - 0x14], esi
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xfc]
call fcn.0043c650
mov byte [ebp - 4], 0x10
cmp byte [ebp - 0x4c], 0
je 0x43d0d7
push str.get_system_win_events
mov edx, 8
lea ecx, [ebp - 0x210]
call fcn.004090a0
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0x11
mov cl, byte [eax + 0x48]
test cl, cl
je 0x43d0ca
push str.fail_render_win_event
push eax
call fcn.00412180
mov eax, dword [ebp - 0x14]
add esp, 8
mov cl, byte [eax + 0x48]
test cl, cl
je 0x43d0ca
push 0x4ed070
push eax
call fcn.00412180
add esp, 8
lea ecx, [ebp - 0x210]
call fcn.00408f30
jmp 0x43d0fe
lea eax, [ebp - 0xfc]
push eax
lea ecx, [ebp + 0x10]
call fcn.0043fa80
test al, al
je 0x43d0fe
lea ecx, [ebp - 0xfc]
call fcn.0043fe30
push eax
lea ecx, [ebp - 0x28]
call fcn.0043fcd0
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0xd
call fcn.0043fd80
lea eax, [ebp - 0x14]
mov dword [ebp - 0x100], 0
push eax
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x100]
mov dword [ebp - 0x14], 0
push eax
push 1
push edi
call dword [sym.imp.wevtapi.dll_EvtNext]
test eax, eax
jne 0x43d151
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x103
cmove eax, ecx
xor edi, edi
mov dword [ebp - 0x14], eax
jmp 0x43d15e
mov edi, dword [ebp - 0x100]
mov dword [ebp - 0x14], 0
test esi, esi
je 0x43d169
push esi
call dword [sym.imp.wevtapi.dll_EvtClose]
mov eax, dword [ebp - 0x14]
mov esi, edi
test edi, edi
mov dword [ebp - 0x18], esi
mov edi, dword [ebp - 0x120]
jne 0x43d037
lea ecx, [ebp - 0x18]
call fcn.0043c2a0
mov ecx, dword [ebp - 0x104]
lea eax, [ebp - 0x28]
push eax
call fcn.00440430
lea ecx, [ebp - 0x28]
call fcn.0043fd00
lea ecx, [ebp - 0x2c]
call fcn.0043c2a0
lea ecx, [ebp - 0x44]
call fcn.00402710
lea ecx, [ebp - 0x1c]
call fcn.0043c2c0
lea ecx, [ebp + 0x10]
call fcn.004146d0
mov eax, dword [ebp - 0x104]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a6256
mov esp, ebp
pop ebp
ret
call fcn.004ab23f
call fcn.004ab23f
int3