Function at 0x41a280
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41c3eb
push eax
mov dword fs:[0], esp
sub esp, 0xac
mov al, 1
push ebx
push ebp
push esi
mov esi, ecx
mov cl, byte [0x429418]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ebx, 0x94
test al, cl
jne 0x41a2ff
or cl, al
lea eax, [esp + 0x28]
push eax
mov byte [0x429418], cl
mov dword [esp + 0x2c], ebx
call edi
test eax, eax
jne 0x41a2d6
mov eax, 3
jmp 0x41a2fa
mov eax, dword [esp + 0x38]
dec eax
je 0x41a2f5
dec eax
je 0x41a2e7
mov eax, 3
jmp 0x41a2fa
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp ecx, 4
setne al
jmp 0x41a2fa
mov eax, 2
mov dword [0x42941c], eax
mov al, byte [esi + 8]
test al, al
je 0x41a3c4
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], ebx
push ecx
call edi
test eax, eax
je 0x41a3c4
mov eax, dword [esp + 0x38]
dec eax
je 0x41a3c4
dec eax
jne 0x41a3c4
cmp dword [esp + 0x2c], 4
je 0x41a3c4
lea edx, [esp + 0x10]
xor ebx, ebx
push edx
push 0xf003f
push ebx
push str.SYSTEMCurrentControlSetServicesPerfOSPerformance
push 0x80000002
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41a3c6
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esp + 0x1c]
push 4
push eax
push 4
push ebx
push str.Disable_Performance_Counters
push ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call ebp
lea eax, [esp + 0x10]
push eax
push str.SYSTEMCurrentControlSetServicesPerfProcPerformance
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x41a3c6
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push 4
push ecx
push 4
push ebx
push str.Disable_Performance_Counters
push edx
call edi
mov eax, dword [esp + 0x10]
push eax
call ebp
jmp 0x41a3c6
xor ebx, ebx
push 6
lea ecx, [esp + 0x1c]
push 0xe6
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0xd0], ebx
mov dword [esp + 0x24], ebx
call fcn.0041a4e0
mov edi, dword [esp + 0x18]
xor eax, eax
xor edx, edx
mov ecx, dword [edi + 0x18]
mov ebp, dword [edi + 0x1c]
add ecx, edi
test ebp, ebp
jbe 0x41a424
cmp dword [ecx + 0xc], 0xe6
je 0x41a40c
add ecx, dword [ecx]
inc ebx
cmp ebx, ebp
jb 0x41a3fa
jmp 0x41a424
mov edx, dword [esp + 0xcc]
push edx
push 6
push ecx
lea ecx, [esp + 0x30]
call fcn.0041a710
mov edi, dword [esp + 0x18]
mov ebx, dword [edi + 0x4c]
cmp byte [esi + 8], 0
mov ecx, dword [edi + 0x48]
mov dword [esp + 0x14], ebx
je 0x41a448
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], ecx
mov byte [esi + 8], 0
mov dword [esi + 0x14], edx
mov dword [esi + 0x1c], ebx
xor eax, eax
jmp 0x41a491
mov ebp, dword [esi + 0x10]
mov ebx, eax
fild qword [edi + 0x48]
fild qword [esi + 0x18]
sub ebx, ebp
mov ebp, edx
sbb ebp, dword [esi + 0x14]
mov dword [esp + 0x1c], ebx
fsubp st(1)
mov dword [esp + 0x20], ebp
mov dword [esi + 0x10], eax
fild qword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], edx
mov dword [esi + 0x1c], eax
fdiv st(1)
fmul qword [0x41eae8]
call sub.MSVCRT.dll__ftol
xor ecx, ecx
test eax, eax
setl cl
dec ecx
fstp st(0)
and eax, ecx
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xb8
ret 4