Function at 0x42aa00
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d21db
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x508164]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x98], esi
mov eax, dword [ebp + 8]
push 0x4ec504
push 0
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], 0
mov dword [ebp - 0xa0], 0
call dword [sym.imp.ADVAPI32.dll_OpenEventLogW]
mov edi, eax
mov dword [ebp - 0x9c], edi
test edi, edi
je 0x42acfd
push 0x10000
call fcn.004a8ede
mov ebx, eax
add esp, 4
mov dword [ebp - 0x90], ebx
test ebx, ebx
je 0x42ace9
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x88]
push eax
push 0x10000
push ebx
push 0
push 9
push edi
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
test eax, eax
je 0x42ace9
mov eax, dword [ebp - 0x88]
add eax, dword [ebp - 0x90]
cmp dword [ebp - 0x90], eax
jae 0x42acbc
nop dword [eax]
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0xf
mov byte [ebp - 0x84], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
lea eax, [ebp - 0x84]
mov dword [ebp - 4], 0
push eax
push ebx
push 0x4ec504
call fcn.00429920
add ebx, dword [ebx]
mov eax, dword [ebp - 0x68]
cmp eax, dword [esi + 4]
jl 0x42aca4
jg 0x42ab4f
mov eax, dword [ebp - 0x6c]
cmp eax, dword [esi]
jb 0x42aca4
mov ecx, dword [ebp - 0x64]
cmp ecx, 0x68
jne 0x42ac7c
mov edx, dword [esi + 8]
lea edi, [esi + 8]
mov esi, edx
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x42ab8f
nop dword [eax]
cmp dword [eax + 0x10], 0x68
jge 0x42ab7b
mov eax, dword [eax + 8]
jmp 0x42ab7f
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x42ab70
cmp esi, edx
je 0x42ab8f
cmp dword [esi + 0x10], 0x68
jle 0x42abc5
lea eax, [ebp - 0x64]
push ecx
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x94]
push eax
push ecx
mov ecx, edi
call fcn.0042b910
push eax
add eax, 0x10
mov ecx, edi
push eax
push esi
lea eax, [ebp - 0xa4]
push eax
call fcn.0042b940
mov esi, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0x64]
cmp dword [esi + 0x14], 0x3e8
jge 0x42ac76
mov edx, dword [edi]
mov esi, edx
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x42abfd
nop
cmp dword [eax + 0x10], ecx
jge 0x42abea
mov eax, dword [eax + 8]
jmp 0x42abee
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x42abe0
cmp esi, edx
je 0x42abfd
cmp ecx, dword [esi + 0x10]
jge 0x42ac30
lea eax, [ebp - 0x64]
push ecx
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x94]
push eax
push ecx
mov ecx, edi
call fcn.0042b910
push eax
add eax, 0x10
mov ecx, edi
push eax
push esi
lea eax, [ebp - 0xa8]
push eax
call fcn.0042b940
mov esi, dword [ebp - 0xa8]
mov eax, dword [ebp - 0x8c]
inc dword [esi + 0x14]
mov esi, dword [eax]
lea eax, [ebp - 0x84]
push eax
mov edi, dword [esi + 4]
push edi
push esi
call fcn.0042b500
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ecx + 4]
mov ecx, 0x2222221
sub ecx, edx
cmp ecx, 1
jb 0x42ad1b
lea ecx, [edx + 1]
mov edx, dword [ebp - 0x8c]
mov dword [edx + 4], ecx
mov dword [esi + 4], eax
mov dword [edi], eax
mov esi, dword [ebp - 0x98]
lea ecx, [ebp - 0x84]
mov dword [ebp - 4], 0xffffffff
call fcn.0042ad30
mov eax, dword [ebp - 0x88]
add eax, dword [ebp - 0x90]
cmp ebx, eax
jb 0x42aad0
jmp 0x42acb6
lea ecx, [ebp - 0x84]
mov dword [ebp - 4], 0xffffffff
call fcn.0042ad30
mov edi, dword [ebp - 0x9c]
mov ebx, dword [ebp - 0x90]
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x88]
push eax
push 0x10000
push ebx
push 0
push 9
push edi
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
test eax, eax
jne 0x42aab4
push edi
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
test ebx, ebx
je 0x42acfd
push ebx
call fcn.004a8ee9
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048d8b2
mov esp, ebp
pop ebp
ret 4
push str.list_T__too_long
call fcn.0048a0e5
int3