Function at 0x40de30
Capabilities:
Delete file
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 0x40de53
push ebx
push 7
push 0x7e8
push eax
call edi
mov eax, dword [esi + 0x68]
cmp eax, ebx
je 0x40de65
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.0040b8c0
push 0x41fcd0
lea ecx, [esp + 0x1c]
call fcn.004048b0
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.0040f230
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 0x40def6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, esi
call fcn.0040d730
mov ecx, esi
call fcn.0040d6d0
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x40dfb7
cmp dword [esi + 0x88], ebx
je 0x40df8b
cmp dword [esp + 0x18], 1
jne 0x40df8b
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40df34
push eax
call fcn.00413ba1
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.0040b8c0
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.0040f230
add esp, 0x24
mov eax, dword [esi + 0x68]
cmp eax, ebx
je 0x40dfa5
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 0x40e5fa
mov eax, dword [esi + 0x68]
cmp eax, ebx
je 0x40dfcd
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 0x40e06b
mov ebx, dword [esp + 0x18]
mov eax, dword [0x4259c0]
mov ecx, 0x4259c0
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.00404580
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 0x40e069
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.0040c3f0
test eax, eax
je 0x40e0e9
mov eax, dword [esi + 0x68]
cmp eax, ebx
je 0x40e095
push ebx
push 9
push 0x7e8
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, esi
call fcn.0040d8f0
mov eax, dword [esi + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [esi + 0x68]
cmp esi, ebx
je 0x40e0bc
push ebx
push 0xa
push 0x7e8
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40e0cb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40e0dc
push eax
call fcn.00413ba1
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret
mov edx, dword [0x4259c0]
mov ecx, 0x4259c0
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40e113
push eax
call fcn.00413ba1
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.0040b8c0
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.0040f230
add esp, 0x24
mov ecx, esi
call fcn.0040b380
push eax
mov eax, dword [edi]
push eax
lea ecx, [esp + 0x18]
push str.t_saction_sver2011pt2
push ecx
call fcn.00404580
add esp, 0x10
lea edi, [esi + 0xa0]
push edi
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.0040bc60
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.00404580
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x10
lea edi, [esi + 4]
nop
mov eax, dword [esi]
push ebx
push ebx
push ebx
push eax
mov ecx, edi
call fcn.00405120
cmp eax, 1
jne 0x40e21e
mov ecx, edi
call fcn.00403640
push eax
lea ecx, [esp + 0x1c]
call fcn.004048b0
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx - 0xc]
test eax, eax
jle 0x40e204
push 0x3f
push ebx
call fcn.00414b7c
add esp, 8
test eax, eax
je 0x40e204
sub eax, ebx
cmp eax, 0xffffffff
jne 0x40e23f
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e21e
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 0x40e55f
test eax, eax
jne 0x40e563
xor ebx, ebx
jmp 0x40e1c0
mov eax, dword [ebx - 0xc]
test eax, eax
jg 0x40e24b
or eax, 0xffffffff
jmp 0x40e261
push 0x3f
push ebx
call fcn.00414b7c
add esp, 8
test eax, eax
jne 0x40e25f
or eax, 0xffffffff
jmp 0x40e261
sub eax, ebx
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
call int.0040ba30
push eax
mov ecx, esi
call fcn.00404470
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 0x40e296
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [ebx - 0xc]
test edi, edi
jg 0x40e2a2
or ebp, 0xffffffff
jmp 0x40e2ba
push 0x3f
push ebx
call fcn.00414b7c
add esp, 8
test eax, eax
jne 0x40e2b6
or ebp, 0xffffffff
jmp 0x40e2ba
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.0040b9d0
push eax
lea ecx, [esi + 0xa0]
call fcn.00404470
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 0x40e302
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push str.Rising.info
push 0x41f424
lea eax, [esi + 0x84]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.0040bf50
add esp, 0xc
push eax
lea edx, [esp + 0x24]
push edx
call fcn.0040bf50
mov eax, dword [eax]
add esp, 0xc
push eax
mov ecx, esi
call fcn.0040d1a0
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 0x40e356
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 0x40e374
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 0x40e38e
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi]
push 0
push 0
push eax
push ecx
lea ecx, [esi + 4]
call fcn.00405120
test eax, eax
jne 0x40e3c3
mov eax, dword [esi + 0x7c]
push str.Rising.info
push eax
mov ecx, esi
call fcn.0040c3f0
test eax, eax
jne 0x40e483
push 0xc8
call edi
mov eax, dword [esi + 0x70]
test eax, eax
jne 0x40e3d8
mov eax, dword [esi + 0x74]
test eax, eax
je 0x40e394
mov eax, dword [esi + 0x74]
test eax, eax
je 0x40e443
lea ecx, [esp + 0x20]
call fcn.0040b560
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], 0x2714
call fcn.0040b8c0
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.0040f230
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 0x40e461
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40e470
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x20]
call fcn.0040b560
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
lea ecx, [esp + 0x20]
call fcn.0040b560
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], 0x2712
call fcn.0040b8c0
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.0040f230
mov eax, dword [esi + 0x68]
add esp, 0x24
test eax, eax
je 0x40e4fe
push 0
push 9
push 0x7e8
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, esi
call fcn.0040d8f0
mov esi, dword [esi + 0x68]
test esi, esi
je 0x40e51c
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 0x40e53a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40e549
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x20]
call fcn.0040b560
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret
test eax, eax
je 0x40e5c7
lea ecx, [esp + 0x20]
call fcn.0040b560
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], 0x2714
call fcn.0040b8c0
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.0040f230
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 0x40e5e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40e5f4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40e605
push eax
call fcn.00413ba1
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret