Function at 0x40c060
Capabilities:
Persist via run registry key
Resolve function by parsing pe exports
Set registry value

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x68]
xor ebx, ebx
cmp eax, ebx
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
je 0x40c083
push ebx
push 7
push 0x7e8
push eax
call edi
mov ecx, esi
call fcn.0040b4c0
mov eax, dword [esi + 0x68]
cmp eax, ebx
je 0x40c09c
push ebx
push 8
push 0x7e8
push eax
call edi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], 0x2710
call fcn.00409d20
push 0x41db88
lea ecx, [esp + 0x1c]
call fcn.004047c0
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x24]
push edx
lea ebp, [esi + 0xb8]
push ebp
lea edi, [esi + 0xb4]
push edi
lea eax, [esi + 0xb0]
push eax
lea ecx, [esi + 0xac]
push ecx
lea eax, [esi + 0xa8]
push eax
lea eax, [esi + 0x9c]
push eax
mov eax, dword [esi + 0x8c]
push eax
call fcn.0040d400
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
add esp, 0x24
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c12d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, esi
call fcn.0040b980
mov ecx, esi
call fcn.0040b920
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x40c1ee
cmp dword [esi + 0x88], ebx
je 0x40c1c2
cmp dword [esp + 0x18], 1
jne 0x40c1c2
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40c16b
push eax
call fcn.00411d71
add esp, 4
mov dword [esp + 0x20], ebx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], 0x2711
call fcn.00409d20
lea ecx, [esi + 0xa4]
push ecx
lea edx, [esp + 0x24]
push edx
push ebp
push edi
lea eax, [esi + 0xb0]
push eax
lea eax, [esi + 0xac]
push eax
lea eax, [esi + 0xa8]
push eax
lea eax, [esi + 0x9c]
push eax
mov eax, dword [esi + 0x8c]
push eax
call fcn.0040d400
add esp, 0x24
mov eax, dword [esi + 0x68]
cmp eax, ebx
je 0x40c1dc
mov ecx, dword [esp + 0x18]
push ecx
push 3
push 0x7e8
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x20]
mov dword [esi + 0x74], 1
cmp eax, ebx
jmp 0x40c836
mov eax, dword [esi + 0x68]
cmp eax, ebx
je 0x40c204
push ebx
push 5
push 0x7e8
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [esp + 0x18]
push edx
push 0x2001f
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40c2a2
mov ebx, dword [esp + 0x18]
mov eax, dword [0x422978]
mov ecx, 0x422978
mov dword [esp + 0x14], ebx
call dword [eax + 0xc]
mov ecx, dword [esi + 0xa4]
mov edx, dword [ebp]
push ecx
add eax, 0x10
push edx
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x78]
push eax
lea ecx, [esp + 0x24]
push str.__s___session__s__subkey__s
push ecx
call fcn.00404490
mov edi, dword [esp + 0x2c]
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 1
push 0
push str.RavDown
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c2a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor ebx, ebx
mov eax, dword [esi + 0x7c]
push str.Rising.info
push eax
mov ecx, esi
call fcn.0040a640
test eax, eax
je 0x40c320
mov eax, dword [esi + 0x68]
cmp eax, ebx
je 0x40c2cc
push ebx
push 9
push 0x7e8
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, esi
call fcn.0040bb40
mov eax, dword [esi + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [esi + 0x68]
cmp esi, ebx
je 0x40c2f3
push ebx
push 0xa
push 0x7e8
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40c302
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40c313
push eax
call fcn.00411d71
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret
mov edx, dword [0x422978]
mov ecx, 0x422978
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40c34a
push eax
call fcn.00411d71
add esp, 4
mov dword [esp + 0x20], ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], 0x2715
call fcn.00409d20
mov edx, dword [esi + 0x8c]
lea edi, [esi + 0xa4]
push edi
lea ecx, [esp + 0x24]
push ecx
push ebp
lea eax, [esi + 0xb4]
push eax
lea eax, [esi + 0xb0]
push eax
lea eax, [esi + 0xac]
push eax
lea eax, [esi + 0xa8]
push eax
lea eax, [esi + 0x9c]
push eax
push edx
call fcn.0040d400
add esp, 0x24
mov ecx, esi
call fcn.004097e0
push eax
mov eax, dword [edi]
push eax
lea ecx, [esp + 0x18]
push str.t_saction_sver2011pt2
push ecx
call fcn.00404490
add esp, 0x10
lea edi, [esi + 0xa0]
push edi
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.0040a010
mov eax, dword [edi]
push eax
push str.http:__rsup10.rising.com.cn_Register_OnlineHelper_Web_Online_DownloaderInfo.aspx
push str._s_info_s
push esi
call fcn.00404490
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x10
lea edi, [esi + 4]
mov eax, dword [esi]
push ebx
push ebx
push ebx
push eax
mov ecx, edi
call fcn.00404cd0
cmp eax, 1
jne 0x40c454
mov ecx, edi
call fcn.004035a0
push eax
lea ecx, [esp + 0x1c]
call fcn.004047c0
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx - 0xc]
test eax, eax
jle 0x40c43a
push 0x3f
push ebx
call fcn.00412d4c
add esp, 8
test eax, eax
je 0x40c43a
sub eax, ebx
cmp eax, 0xffffffff
jne 0x40c475
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c454
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0xc8
call ebp
mov eax, dword [esi + 0x70]
test eax, eax
mov eax, dword [esi + 0x74]
jne 0x40c79b
test eax, eax
jne 0x40c79f
xor ebx, ebx
jmp 0x40c3f6
mov eax, dword [ebx - 0xc]
test eax, eax
jg 0x40c481
or eax, 0xffffffff
jmp 0x40c497
push 0x3f
push ebx
call fcn.00412d4c
add esp, 8
test eax, eax
jne 0x40c495
or eax, 0xffffffff
jmp 0x40c497
sub eax, ebx
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
call fcn.00409de0
push eax
mov ecx, esi
call fcn.004043b0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c4cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [ebx - 0xc]
test edi, edi
jg 0x40c4d8
or ebp, 0xffffffff
jmp 0x40c4f0
push 0x3f
push ebx
call fcn.00412d4c
add esp, 8
test eax, eax
jne 0x40c4ec
or ebp, 0xffffffff
jmp 0x40c4f0
sub eax, ebx
mov ebp, eax
push str._info
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, ebp
sub edi, eax
push edi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
call fcn.00409d80
push eax
lea ecx, [esi + 0xa0]
call fcn.004043b0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c538
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push str.Rising.info
push 0x41d38c
lea eax, [esi + 0x84]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.0040a300
add esp, 0xc
push eax
lea edx, [esp + 0x24]
push edx
call fcn.0040a300
mov eax, dword [eax]
add esp, 0xc
push eax
mov ecx, esi
call fcn.0040b3f0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c58c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c5aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add ebx, 0xfffffff0
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c5c4
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
lea ebx, [ebx]
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi]
push 0
push 0
push eax
push ecx
lea ecx, [esi + 4]
call fcn.00404cd0
test eax, eax
jne 0x40c5ff
mov eax, dword [esi + 0x7c]
push str.Rising.info
push eax
mov ecx, esi
call fcn.0040a640
test eax, eax
jne 0x40c6bf
push 0xc8
call edi
mov eax, dword [esi + 0x70]
test eax, eax
jne 0x40c614
mov eax, dword [esi + 0x74]
test eax, eax
je 0x40c5d0
mov eax, dword [esi + 0x74]
test eax, eax
je 0x40c67f
lea ecx, [esp + 0x20]
call fcn.004099c0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], 0x2714
call fcn.00409d20
mov edx, dword [esi + 0x8c]
lea eax, [esi + 0xa4]
push eax
lea ecx, [esp + 0x24]
push ecx
lea eax, [esi + 0xb8]
push eax
lea eax, [esi + 0xb4]
push eax
lea eax, [esi + 0xb0]
push eax
lea eax, [esi + 0xac]
push eax
lea eax, [esi + 0xa8]
push eax
lea eax, [esi + 0x9c]
push eax
push edx
call fcn.0040d400
add esp, 0x24
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c69d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40c6ac
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x20]
call fcn.004099c0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
lea ecx, [esp + 0x20]
call fcn.004099c0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], 0x2712
call fcn.00409d20
mov edx, dword [esi + 0x8c]
lea eax, [esi + 0xa4]
push eax
lea ecx, [esp + 0x24]
push ecx
lea eax, [esi + 0xb8]
push eax
lea eax, [esi + 0xb4]
push eax
lea eax, [esi + 0xb0]
push eax
lea eax, [esi + 0xac]
push eax
lea eax, [esi + 0xa8]
push eax
lea eax, [esi + 0x9c]
push eax
push edx
call fcn.0040d400
mov eax, dword [esi + 0x68]
add esp, 0x24
test eax, eax
je 0x40c73a
push 0
push 9
push 0x7e8
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, esi
call fcn.0040bb40
mov esi, dword [esi + 0x68]
test esi, esi
je 0x40c758
push 0
push 0xa
push 0x7e8
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c776
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40c785
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x20]
call fcn.004099c0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret
test eax, eax
je 0x40c803
lea ecx, [esp + 0x20]
call fcn.004099c0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], 0x2714
call fcn.00409d20
mov edx, dword [esi + 0x8c]
lea eax, [esi + 0xa4]
push eax
lea ecx, [esp + 0x24]
push ecx
lea eax, [esi + 0xb8]
push eax
lea eax, [esi + 0xb4]
push eax
lea eax, [esi + 0xb0]
push eax
lea eax, [esi + 0xac]
push eax
lea eax, [esi + 0xa8]
push eax
lea eax, [esi + 0x9c]
push eax
push edx
call fcn.0040d400
add esp, 0x24
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c821
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40c830
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40c841
push eax
call fcn.00411d71
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret