Function at 0x4036f0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444bdf
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x461008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x60], ebx
xor eax, eax
mov dword [ebp - 0xc4], 7
mov dword [ebp - 0xc8], 0
mov word [ebp - 0xd8], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0xdc], 7
mov dword [ebp - 0xe0], eax
mov word [ebp - 0xf0], ax
mov dword [ebp - 0x64], 7
mov dword [ebp - 0x68], eax
mov word [ebp - 0x78], ax
mov dword [ebp - 0x94], 7
mov dword [ebp - 0x98], eax
mov word [ebp - 0xa8], ax
mov dword [ebp - 0xac], 7
mov dword [ebp - 0xb0], eax
mov word [ebp - 0xc0], ax
mov dword [ebp - 0x7c], 7
mov dword [ebp - 0x80], eax
mov word [ebp - 0x90], ax
mov byte [ebp - 4], 5
mov ecx, 0xffff
movzx eax, word [ebx + 8]
mov dword [ebp - 0x214], 0x44bba4
cmp ax, cx
je 0x403852
lea edx, [ebx + 0x1e]
add edx, eax
cmp dword [ebx + 4], 4
jbe 0x4037fd
mov ecx, edx
call fcn.00415b30
mov edx, eax
cmp word [edx], 0
jne 0x4037e5
xor ecx, ecx
jmp 0x40381f
mov ecx, edx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4037f0
jmp 0x40381b
cmp word [edx], 0
jne 0x403807
xor ecx, ecx
jmp 0x40381f
mov ecx, edx
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403810
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x78]
call fcn.00404220
cmp dword [ebp - 0x64], 8
mov eax, dword [ebp - 0x78]
jae 0x403835
lea eax, [ebp - 0x78]
push 0x5c
push eax
call fcn.004324c4
add esp, 8
mov ecx, 0xffff
test eax, eax
je 0x403852
add eax, 2
mov dword [ebp - 0x214], eax
movzx eax, word [ebx + 0xa]
cmp ax, cx
je 0x403891
lea edx, [ebx + 0x1e]
add edx, eax
cmp word [edx], 0
jne 0x40386a
xor ecx, ecx
jmp 0x40387f
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403870
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xa8]
call fcn.00404220
mov ecx, 0xffff
movzx eax, word [ebx + 0xc]
cmp ax, cx
je 0x4038d6
lea ecx, [ebx + 0x1e]
add ecx, eax
call fcn.00415b30
mov edx, eax
cmp word [edx], 0
jne 0x4038b0
xor ecx, ecx
jmp 0x4038c4
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4038b5
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xc0]
call fcn.00404220
mov ecx, 0xffff
lea edi, [ebx + 0xe]
mov ebx, 8
mov edi, edi
movzx esi, word [edi]
cmp si, cx
je 0x403941
cmp dword [ebp - 0x80], 0
jbe 0x403900
push 2
push 0x44bba8
lea ecx, [ebp - 0x90]
call fcn.00403ce0
mov ecx, dword [ebp - 0x60]
mov eax, esi
add ecx, 0x1e
add ecx, eax
call fcn.00415b30
mov edx, eax
cmp word [edx], 0
jne 0x40391b
xor ecx, ecx
jmp 0x40392f
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403920
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x90]
call fcn.00403ce0
mov ecx, 0xffff
add edi, 2
dec ebx
jne 0x4038e0
cmp dword [ebp - 0x80], ebx
jne 0x40395e
push 3
push 0x44bbb0
lea ecx, [ebp - 0x90]
call fcn.00404220
mov ebx, dword [ebp - 0x60]
mov eax, dword [ebx + 4]
cmp eax, 4
ja 0x403a9a
cmp dword [ebp - 0x7c], 8
mov eax, dword [ebp - 0x90]
jae 0x40397f
lea eax, [ebp - 0x90]
cmp dword [ebp - 0x94], 8
mov ecx, dword [ebp - 0xa8]
jae 0x403994
lea ecx, [ebp - 0xa8]
cmp dword [ebp - 0x64], 8
mov edx, dword [ebp - 0x78]
jae 0x4039a0
lea edx, [ebp - 0x78]
push 0
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x5c]
push eax
push 0
push 3
push 0
push 0x12d
push 4
push 1
push dword [0x463664]
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x58], ecx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x4039e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReportEvent
push 0x4566ac
call fcn.00416f00
add esp, 0xc
push 0x118
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0043cf50
add esp, 0xc
mov dword [ebp - 0x210], 0x11c
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x403b85
cmp byte [ebp - 0xf6], 1
jne 0x403b85
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov esi, eax
cmp esi, 0xffffffff
je 0x403b85
cmp dword [ebp - 0x64], 8
mov ecx, dword [ebp - 0x78]
jae 0x403a46
lea ecx, [ebp - 0x78]
push ecx
push 0x2bd
call fcn.004168a0
mov edx, eax
add esp, 8
cmp word [edx], 0
jne 0x403a72
xor ecx, ecx
push ecx
push edx
lea ecx, [ebp - 0xd8]
call fcn.00404220
mov ecx, esi
jmp 0x403b6c
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403a77
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xd8]
call fcn.00404220
mov ecx, esi
jmp 0x403b6c
push eax
lea eax, [ebp - 0x50]
push 0x44bbe0
push eax
call fcn.00403e90
mov eax, dword [ebp - 0x90]
add esp, 0xc
cmp dword [ebp - 0x7c], 8
jae 0x403abe
lea eax, [ebp - 0x90]
cmp dword [ebp - 0x64], 8
mov ecx, dword [ebp - 0x78]
jae 0x403aca
lea ecx, [ebp - 0x78]
push 0
mov dword [ebp - 0x54], eax
lea edx, [ebp - 0x50]
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], edx
push eax
push 0
push 3
push 0
push 0x12c
push 4
push 1
push dword [0x463664]
mov dword [ebp - 0x58], ecx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x403b14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReportEvent
push 0x4566ac
call fcn.00416f00
add esp, 0xc
push dword [ebp - 0x214]
push 0x2bc
call fcn.004168a0
mov edx, eax
add esp, 8
cmp word [edx], 0
jne 0x403b33
xor ecx, ecx
jmp 0x403b4f
mov ecx, edx
lea esi, [ecx + 2]
jmp 0x403b40
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403b40
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xd8]
call fcn.00404220
lea eax, [ebp - 0x60]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov ecx, dword [ebp - 0x60]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0xf0]
push eax
lea edx, [ebp - 0xd8]
call fcn.0040f410
add esp, 8
cmp dword [ebp - 0x7c], 8
jb 0x403b99
push dword [ebp - 0x90]
call fcn.0043198a
add esp, 4
xor eax, eax
mov dword [ebp - 0x7c], 7
cmp dword [ebp - 0xac], 8
mov dword [ebp - 0x80], 0
mov word [ebp - 0x90], ax
jb 0x403bc7
push dword [ebp - 0xc0]
call fcn.0043198a
add esp, 4
xor eax, eax
mov dword [ebp - 0xac], 7
cmp dword [ebp - 0x94], 8
mov dword [ebp - 0xb0], 0
mov word [ebp - 0xc0], ax
jb 0x403bfb
push dword [ebp - 0xa8]
call fcn.0043198a
add esp, 4
xor eax, eax
mov dword [ebp - 0x94], 7
cmp dword [ebp - 0x64], 8
mov dword [ebp - 0x98], 0
mov word [ebp - 0xa8], ax
jb 0x403c29
push dword [ebp - 0x78]
call fcn.0043198a
add esp, 4
xor eax, eax
mov dword [ebp - 0x64], 7
cmp dword [ebp - 0xdc], 8
mov dword [ebp - 0x68], 0
mov word [ebp - 0x78], ax
jb 0x403c54
push dword [ebp - 0xf0]
call fcn.0043198a
add esp, 4
cmp dword [ebp - 0xc4], 8
jb 0x403c6b
push dword [ebp - 0xd8]
call fcn.0043198a
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043183b
mov esp, ebp
pop ebp
ret