Function at 0x402720
Capabilities:
Access the windows event log
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x418998
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
mov ebx, dword [esp + 0x54]
push ebp
push esi
push edi
xor edi, edi
cmp ebx, edi
jne 0x402765
push 1
call fcn.00402df0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret
lea eax, [esp + 0x30]
mov dword [esp + 0x30], edi
push eax
push 1
push edi
push str.SYSTEMCurrentControlSetServices
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4027a4
push 1
call fcn.00402df0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret
mov esi, dword [esp + 0x64]
mov dword [esp + 0x10], edi
cmp esi, edi
mov dword [esp + 0x14], 1
mov eax, str.LowerFilters
jne 0x4027c2
mov eax, 0x4204f4
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edi
push edx
push edi
push eax
push ebx
call ebp
cmp eax, edi
jne 0x402cad
mov eax, dword [esp + 0x14]
push eax
call fcn.00412ebe
add esp, 4
cmp eax, edi
mov dword [esp + 0x10], eax
jne 0x402814
push 1
call fcn.00402df0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret
cmp esi, edi
mov ecx, str.LowerFilters
jne 0x402822
mov ecx, 0x4204f4
lea edx, [esp + 0x14]
push edx
push eax
lea eax, [esp + 0x20]
push eax
push edi
push ecx
push ebx
call ebp
cmp eax, edi
jne 0x402ca0
cmp dword [esp + 0x18], 7
jne 0x402ca0
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
lea eax, [esp + 0x10]
push edx
shr ecx, 1
push eax
mov dword [esp + 0x34], ecx
call fcn.00401c50
add esp, 8
test eax, eax
jne 0x402887
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00412ee7
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x10]
lea eax, [edx + edx]
push eax
mov dword [esp + 0x18], eax
call fcn.00412ebe
mov ebp, eax
add esp, 4
cmp ebp, edi
mov dword [esp + 0x4c], ebp
jne 0x4028d2
mov eax, dword [esp + 0x10]
push eax
call fcn.00412ee7
push 1
call fcn.00402df0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret
mov ecx, dword [esp + 0x14]
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [0x420540]
xor ecx, ecx
mov edi, ebp
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x1c], eax
cmp word [esi], cx
mov byte [esp + 0x58], 1
je 0x402a71
push esi
call fcn.0040411b
add esp, 4
lea ecx, [esp + 0x3c]
mov ebp, eax
push esi
call fcn.0041285b
mov ebx, eax
push 0x4204f0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x5c], 2
call fcn.0041285b
push ebx
push eax
lea eax, [esp + 0x3c]
mov byte [esp + 0x60], 3
push eax
call fcn.004129e6
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5c], 4
call fcn.00412ac5
lea ecx, [esp + 0x34]
mov byte [esp + 0x58], 3
call fcn.004127e7
lea ecx, [esp + 0x38]
mov byte [esp + 0x58], 2
call fcn.004127e7
lea ecx, [esp + 0x3c]
mov byte [esp + 0x58], 1
call fcn.004127e7
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x24]
xor ebx, ebx
push ecx
push 1
push ebx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402a51
mov eax, dword [esp + 0x24]
push eax
call fcn.00401e70
add esp, 4
test eax, eax
jne 0x4029c8
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00402010
add esp, 4
test eax, eax
jne 0x4029c8
mov ebx, 1
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x402a51
push ebp
push esi
push edi
call fcn.004040de
add esp, 0xc
lea ecx, [esp + 0x48]
push esi
call fcn.0041285b
mov ebx, eax
push 0x4204f0
lea ecx, [esp + 0x48]
mov byte [esp + 0x5c], 5
call fcn.0041285b
push ebx
push eax
lea eax, [esp + 0x48]
mov byte [esp + 0x60], 6
push eax
call fcn.004129e6
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x5c], 7
call fcn.00412ac5
lea ecx, [esp + 0x40]
mov byte [esp + 0x58], 6
call fcn.004127e7
lea ecx, [esp + 0x44]
mov byte [esp + 0x58], 5
call fcn.004127e7
lea ecx, [esp + 0x48]
mov byte [esp + 0x58], 1
call fcn.004127e7
lea edi, [edi + ebp*2 + 2]
jmp 0x402a59
mov dword [esp + 0x20], 1
cmp word [esi + ebp*2 + 2], 0
lea esi, [esi + ebp*2 + 2]
jne 0x40290f
mov ebx, dword [esp + 0x60]
mov ebp, dword [esp + 0x4c]
mov eax, dword [esp + 0x20]
sub edi, ebp
add edi, 2
test eax, eax
je 0x402c45
mov esi, dword [esp + 0x64]
mov eax, str.LowerFilters
test esi, esi
jne 0x402a94
mov eax, str.UpperFilters
mov ecx, dword [esp + 0x18]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebp
push ecx
push 0
push eax
push ebx
call edi
test esi, esi
mov eax, str.LowerFilters_1
jne 0x402ab5
mov eax, str.UpperFilters_1
push 0
lea edx, [esp + 0x1c]
push 0
push edx
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x402af1
test esi, esi
mov dword [esp + 0x18], 7
mov eax, str.LowerFilters_1
jne 0x402ae3
mov eax, str.UpperFilters_1
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
push 7
jmp 0x402b0e
test esi, esi
mov eax, str.LowerFilters_2
jne 0x402aff
mov eax, str.UpperFilters_2
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push ecx
push 0
push eax
push ebx
call edi
push str.NeroCheck
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x402c2c
mov edx, dword [0x420540]
mov dword [esp + 0x20], edx
push 5
lea ecx, [esp + 0x24]
mov byte [esp + 0x5c], 8
call fcn.00412df8
push 0x423d1c
lea ecx, [esp + 0x50]
call fcn.0041285b
mov eax, dword [eax]
push eax
mov eax, dword [esp + 0x20]
push eax
call fcn.00403bf4
add esp, 8
lea ecx, [esp + 0x4c]
test eax, eax
sete bl
call fcn.004127e7
test bl, bl
je 0x402ba0
push str._empty_
lea ecx, [esp + 0x50]
call fcn.0041285b
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x5c], 9
call fcn.0041292e
lea ecx, [esp + 0x4c]
mov byte [esp + 0x58], 8
call fcn.004127e7
mov ecx, dword [0x420540]
mov dword [esp + 0x60], ecx
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
push edx
push eax
lea edx, [esp + 0x68]
push ecx
push edx
mov byte [esp + 0x68], 0xa
call fcn.004120b7
mov eax, dword [esp + 0x30]
add esp, 0x10
lea ecx, [esp + 0x60]
mov eax, dword [eax - 8]
inc eax
push eax
call fcn.00412add
lea ecx, [esp + 0x48]
push 0
push ecx
push 0
push 1
push 0
push 0x1000
push 1
push 2
push esi
mov dword [esp + 0x6c], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push 0xffffffffffffffff
lea ecx, [esp + 0x64]
call fcn.00412b2d
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea ecx, [esp + 0x60]
mov byte [esp + 0x58], 8
call fcn.004127e7
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 1
call fcn.004127e7
mov edx, dword [esp + 0x64]
neg edx
sbb edx, edx
and edx, 0xfffffffe
add edx, 4
push edx
call fcn.00402df0
add esp, 4
jmp 0x402c68
mov eax, dword [esp + 0x64]
test eax, eax
mov eax, str.LowerFilters
jne 0x402c57
mov eax, str.UpperFilters
mov ecx, dword [esp + 0x18]
push edi
push ebp
push ecx
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebp
call fcn.00412ee7
mov edx, dword [esp + 0x14]
push edx
call fcn.00412ee7
add esp, 8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x58], 0
call fcn.004127e7
lea ecx, [esp + 0x28]
mov dword [esp + 0x58], 0xffffffff
call fcn.004127e7
mov esi, dword [esp + 0x64]
jmp 0x402cad
mov eax, dword [esp + 0x10]
push eax
call fcn.00412ee7
add esp, 4
neg esi
sbb esi, esi
and esi, 0xfffffffe
add esi, 4
push esi
call fcn.00402e20
mov ecx, dword [esp + 0x54]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret