Function at 0x40ea70
Capabilities:
Persist via run registry key
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414de0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x420
push ebx
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x12b]
mov byte [ebp - 0x12c], 0
mov byte [ebp - 0x32c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x32b]
mov byte [ebp - 0x22c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x22b]
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x22c]
push 0x100
push eax
push 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ebx, dword [sym.imp.MSVCRT.dll_strrchr]
lea ecx, [ebp - 0x22c]
push 0x5c
push ecx
call ebx
add esp, 8
test eax, eax
je 0x40eb8f
lea edx, [ebp - 0x22c]
push 0x5c
push edx
call ebx
mov edx, eax
mov edi, str.NetConfig.ini
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x12c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x22c]
push ecx
push 0x100
push edx
push str.Rav.ini
push 0x41a598
push str.SETTING
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x12c]
push 0x2e
push eax
call ebx
add esp, 8
test eax, eax
je 0x40eb8f
lea ecx, [ebp - 0x12c]
push 0x2e
push ecx
call ebx
add esp, 8
mov byte [eax], 0
lea edx, [ebp - 0x14]
mov esi, 1
push edx
xor edi, edi
push esi
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ebe5
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x32c]
push eax
lea edx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x14]
push edx
lea eax, [ebp - 0x12c]
push edi
push eax
push ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x32c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x40eeea
call fcn.00413090
test eax, eax
je 0x40ec43
push esi
mov dword [0x4237ec], esi
call fcn.0040ef00
mov ecx, dword [ebp + 8]
push ecx
call fcn.00411ac0
add esp, 8
test eax, eax
je 0x40eeea
push esi
push edi
push edi
call fcn.00411300
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.004130a0
mov dword [0x4237f4], eax
call fcn.004130b0
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov edi, dword [sym.imp.MSVCRT.dll__stricmp]
push str._install
push esi
mov dword [0x4237f8], eax
mov dword [ebp - 0x2c], str.RsRavMon
mov dword [ebp - 0x28], 0x4111c0
call edi
add esp, 8
test eax, eax
jne 0x40ee50
lea edx, [ebp - 0x42c]
push 0x200
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40eeea
lea eax, [ebp - 0x42c]
push 0x5c
push eax
call ebx
add esp, 8
test eax, eax
je 0x40ecb7
mov byte [eax], 0
lea edi, [ebp - 0x42c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x3f
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
lea edi, [ebp - 0x42c]
or ecx, 0xffffffff
xor eax, eax
mov dword [ebx], 0
push str.BaseTDI
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 3
mov edx, ecx
mov esi, edi
mov edi, ebx
push 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push str.Rising_Exploit_Scaner_1.0
and ecx, 3
push str.ExpScaner
rep movsb byte es:[edi], byte [esi]
mov edi, str.ExpScan.sys
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [ebp + 8], ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00411010
lea edi, [ebp - 0x42c]
or ecx, 0xffffffff
xor eax, eax
mov dword [ebx], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Ravmond.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push eax
push 2
push 0x10
push str.RsRavMon_Service
push str.RsRavMon
push ebx
rep movsb byte es:[edi], byte [esi]
call fcn.00411010
add esp, 0x34
mov dword [ebp - 4], 0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
call dword [sym.imp.KERNEL32.dll_GetACP]
push 0
cmp eax, 0x3a8
push 0
push 1
je 0x40edd9
push str.Rising_AntiVirus_Software
push 0
push str.Beijing_Rising_Tech._Co._Ltd.
jmp 0x40ede5
push 0x41a45c
push 0
push 0x41a440
push 0x4153f8
call fcn.00413ba0
add esp, 0x1c
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x40ee03
push str.HookCont
push str.HOOKCONT.sys
mov dword [ebp - 4], 0xffffffff
call fcn.00411740
push str.HookSys
push str.hooksys.sys
call fcn.00411740
push str.HookReg
push str.HOOKREG.sys
call fcn.00411740
add esp, 0x18
test ebx, ebx
je 0x40eeea
push ebx
call fcn.00414922
add esp, 4
jmp 0x40eeea
push str._remove
push esi
call edi
add esp, 8
test eax, eax
jne 0x40eeaa
call fcn.004110d0
push str.RsRavMon
call fcn.00411170
push str.ExpScaner
call fcn.00411170
push str.HookCont
push str.HOOKCONT.sys
call fcn.00411930
push str.HookSys
push str.hooksys.sys
call fcn.00411930
push str.HookReg
push str.HOOKREG.sys
call fcn.00411930
add esp, 0x20
jmp 0x40eeea
push str._start
push esi
call edi
add esp, 8
test eax, eax
jne 0x40eec0
call fcn.00411080
jmp 0x40eeea
push str._stop
push esi
call edi
add esp, 8
test eax, eax
jne 0x40eed6
call fcn.004110d0
jmp 0x40eeea
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
test eax, eax
jne 0x40eeea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10