Function at 0x40d81e
Capabilities:
Access the windows event log
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6e0
mov eax, dword [0x4175f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x6e0], eax
mov esi, 0x206
xor eax, eax
xor ebx, ebx
push esi
mov word [ebp - 0x23c], ax
lea eax, [ebp - 0x23a]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
push 0x2e
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x32]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
push esi
mov word [ebp - 0x444], ax
lea eax, [ebp - 0x442]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x24
lea esi, [ebp - 0x444]
mov eax, esi
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x40d8ce
push 0x5c
lea esi, [ebp + eax*2 - 0x446]
pop ecx
jmp 0x40d8ba
cmp word [esi], cx
je 0x40d8c9
sub esi, 2
lea eax, [ebp - 0x444]
cmp esi, eax
ja 0x40d8b2
cmp word [esi], cx
jne 0x40d8d7
add esi, 2
jmp 0x40d8d7
xor eax, eax
mov word [ebp - 0x444], ax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x6dc]
push eax
push 0x20019
push ebx
push str.CLSID
push SysReAllocString
mov dword [ebp - 0x6dc], ebx
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40d9b9
and dword [ebp - 0x6d4], 0
lea eax, [ebp - 0x6d4]
push eax
push 0x20019
push 0
push dword [ebp - 0x6e0]
push dword [ebp - 0x6dc]
call edi
test eax, eax
jne 0x40d9a8
and dword [ebp - 0x6d0], eax
lea eax, [ebp - 0x6d0]
push eax
push 0x20019
push 0
push str.InprocServer32
push dword [ebp - 0x6d4]
call edi
test eax, eax
jne 0x40d997
lea eax, [ebp - 0x6d8]
mov dword [ebp - 0x6d8], 0x208
push eax
lea eax, [ebp - 0x23c]
push eax
push 0
push 0
push 0x413500
push dword [ebp - 0x6d0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d98e
mov word [ebp - 0x36], ax
jmp 0x40d997
xor eax, eax
mov word [ebp - 0x23c], ax
cmp dword [ebp - 0x6d0], 0
je 0x40d9a8
push dword [ebp - 0x6d0]
call ebx
cmp dword [ebp - 0x6d4], 0
je 0x40d9b9
push dword [ebp - 0x6d4]
call ebx
xor edi, edi
cmp word [ebp - 0x23c], di
je 0x40dab4
push edi
push edi
push str.version.dll
call fcn.004095da
push 0x41765c
push eax
mov dword [ebp - 0x6d0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x6d4]
push ecx
lea ecx, [ebp - 0x23c]
push ecx
call eax
mov dword [ebp - 0x6d4], eax
test eax, eax
jne 0x40da09
mov word [ebp - 0x34], ax
jmp 0x40dab4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x40dab2
push 0x417674
push dword [ebp - 0x6d0]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push dword [ebp - 0x6d4]
lea ecx, [ebp - 0x23c]
push 0
push ecx
call eax
test eax, eax
je 0x40da9f
push 0x417688
push dword [ebp - 0x6d0]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x6d0]
push ecx
lea ecx, [ebp - 0x6d8]
push ecx
push 0x417698
push edi
call eax
test eax, eax
je 0x40da9f
mov ecx, dword [ebp - 0x6d8]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
lea eax, [ebp - 0x34]
push 0x41769c
push eax
call fcn.0040d573
add esp, 0x18
push edi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40dab4
xor edi, edi
xor eax, eax
push 0x286
mov word [ebp - 0x6cc], ax
lea eax, [ebp - 0x6ca]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
push dword [ebp - 0x6e0]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x6cc]
push str._s__s__s
push eax
call fcn.0040d555
add esp, 0x20
lea eax, [ebp - 0x6cc]
cmp word [esi], di
mov dword [ebp - 0x6d8], eax
mov eax, 0x417608
cmovne eax, esi
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40db40
test esi, esi
je 0x40db40
push edi
lea eax, [ebp - 0x6d8]
push eax
push edi
push 1
push edi
push 0x60005330
push edi
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
cmp dword [ebp - 0x6dc], 0
pop edi
je 0x40db52
push dword [ebp - 0x6dc]
call ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d48d
mov esp, ebp
pop ebp
ret 4