Function at 0x402220
Capabilities:
Check os version
Persist via windows service
Query or enumerate registry value
Set registry value
Shutdown system

Disassembly:
push 0xffffffffffffffff
push 0x4061a2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c4
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0x409ab0
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_2
xor ebp, ebp
push 0x409ab0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x5e0], ebp
call sub.MFC42.DLL_CString::CString_2
push 0x409ab0
lea ecx, [esp + 0x30]
mov byte [esp + 0x5e0], 1
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x28]
mov ebx, 0x100
push eax
push 0x20019
push ebp
push str.SOFTWARE_njubrasProject1
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x5f0], 2
xor edi, edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402467
mov ecx, 0x40
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
lea edx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x20]
push edx
push eax
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push str.MyValue1
push ecx
mov dword [esp + 0x2c], ebx
call ebp
test eax, eax
jne 0x402337
push ecx
mov dword [esp + 0x14], esp
mov edi, esp
call sub.MFC42.DLL_AfxGetEmptyString
mov edx, dword [eax]
lea eax, [esp + 0x44]
push eax
mov ecx, edi
mov dword [edi], edx
call fcn.00405810
lea ecx, [esp + 0x14]
push ecx
call fcn.00401280
add esp, 8
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x5e0], 3
call fcn.0040580a
lea ecx, [esp + 0x10]
mov byte [esp + 0x5dc], 2
call sub.MFC42.DLL_CString::CString
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x40]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x40]
push edx
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
push str.MyValue2
push edx
mov dword [esp + 0x2c], ebx
call ebp
test eax, eax
jne 0x4023b5
push ecx
mov dword [esp + 0x14], esp
mov edi, esp
call sub.MFC42.DLL_AfxGetEmptyString
mov eax, dword [eax]
lea ecx, [esp + 0x44]
push ecx
mov ecx, edi
mov dword [edi], eax
call fcn.00405810
lea edx, [esp + 0x14]
push edx
call fcn.00401280
add esp, 8
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5e0], 4
call fcn.0040580a
lea ecx, [esp + 0x10]
mov byte [esp + 0x5dc], 2
call sub.MFC42.DLL_CString::CString
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x40]
lea edx, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x40]
push eax
mov eax, dword [esp + 0x2c]
push ecx
push edx
push 0
push str.MyValue3
push eax
mov dword [esp + 0x2c], ebx
call ebp
test eax, eax
jne 0x402427
call sub.MFC42.DLL_AfxGetEmptyString
mov ecx, dword [eax]
lea edx, [esp + 0x40]
mov dword [esp + 0x10], ecx
push edx
lea ecx, [esp + 0x14]
call fcn.00405810
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push eax
mov byte [esp + 0x5e0], 5
call fcn.0040580a
lea ecx, [esp + 0x10]
mov byte [esp + 0x5dc], 2
call sub.MFC42.DLL_CString::CString
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x40]
lea edx, [esp + 0x40]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
lea eax, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push 0
push str.RadioCheck
push ecx
mov dword [esp + 0x2c], ebx
call ebp
test eax, eax
jne 0x402465
mov edi, dword [esp + 0x40]
and edi, 0xff
jmp 0x402467
xor edi, edi
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
push 0x409050
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 8
test eax, eax
jne 0x4024a1
mov ecx, dword [esi + 0x104]
push 0
push 1
push 0xf1
push ecx
call ebp
cmp edi, 1
jne 0x4024b7
mov edx, dword [esi + 0x144]
push 0
push edi
push 0xf1
push edx
call ebp
mov eax, dword [esp + 0x24]
lea ecx, [esi + 0x1a4]
push eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esi + 0x164]
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea edx, [esp + 0x20]
xor eax, eax
push edx
push 0x20019
mov ecx, 0x40
lea edi, [esp + 0x48]
push eax
mov ebp, 1
push str.SYSTEMCurrentControlSetServicesRasManParameters
push reloc.OLEAUT32.dll_SysReAllocString
rep stosd dword es:[edi], eax
mov dword [esp + 0x1e8], ebp
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402547
lea eax, [esp + 0x14]
lea ecx, [esp + 0x40]
push eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x20]
push ecx
push edx
push 0
push str.ProhibitIPSec
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402547
mov al, byte [esp + 0x40]
xor ecx, ecx
cmp al, 1
setne cl
mov edi, ecx
jmp 0x402549
mov edi, ebp
mov edx, dword [esp + 0x20]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call ebx
cmp edi, ebp
jne 0x402635
lea eax, [esp + 0x20]
push eax
push str.SYSTEMCurrentControlSetServicesRasManParameters
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x1d4]
push 4
push ecx
push 4
push 0
push str.ProhibitIPSec
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x20]
push eax
call ebx
push 3
push 0x409180
push str.This_is_your_first_setup_for_nju_bras_cient._nThe_computer_will_restart_to_finish_your_setup._nDo_you_want_to_restart_your_computer_now_
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
cmp eax, 6
jne 0x402635
lea ecx, [esp + 0x140]
mov dword [esp + 0x140], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x402635
mov eax, dword [esp + 0x150]
mov esi, 2
cmp eax, esi
jne 0x40262b
lea edx, [esp + 0x10]
push edx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402635
lea eax, [esp + 0x34]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov edx, dword [esp + 0x10]
push 0
push 0
lea ecx, [esp + 0x38]
push 0
push ecx
push 0
push edx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x54], esi
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5dc], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x5dc], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0x5dc], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x5d4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x5d0
ret