Function at 0x404dd0
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
mov eax, 0x2660
call fcn.00405580
push ebx
push ebp
push esi
push edi
mov ecx, 5
mov esi, str.SOFTWARE_risingRav
lea edi, [esp + 0x270]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x7b
lea edi, [esp + 0x284]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x270]
push eax
mov ebx, 0x200
push ecx
push 0x80000002
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40531e
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x24]
lea eax, [esp + 0x70]
push edx
push eax
push 0
push 0
push str.installpath
push ecx
call esi
test eax, eax
jne 0x40531e
mov ecx, 0x10
lea edi, [esp + 0x30]
lea edx, [esp + 0x70]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x674]
push str._s_rav.exe
push eax
mov dword [esp + 0x38], 0x44
call fcn.00405520
lea ecx, [esp + 0x67c]
push 0
push ecx
call fcn.00409106
add esp, 0x14
cmp eax, 0xffffffff
je 0x4050bb
mov eax, dword [0x40c2d0]
lea edx, [esp + 0x70]
test eax, eax
push edx
lea eax, [esp + 0x674]
push str.__s_rav.exe_
push eax
je 0x404f9d
call fcn.00405520
mov ebx, dword [0x4102d4]
add esp, 0xc
test ebx, ebx
jle 0x404f33
mov edx, 0x40c2d4
mov edi, 0x40b074
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x670]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebp
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea ebp, [esp + 0x670]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
add edx, 0x200
mov esi, edi
mov edi, ebp
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
dec ebx
rep movsb byte es:[edi], byte [esi]
jne 0x404ecd
lea ecx, [esp + 0x14]
lea edx, [esp + 0x2c]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x68c]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40531e
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2660
ret
call fcn.00405520
mov ebx, dword [0x4102d4]
add esp, 0xc
test ebx, ebx
jle 0x405051
mov edx, 0x40c2d4
or ecx, 0xffffffff
mov edi, 0x40b0bc
xor eax, eax
lea ebp, [esp + 0x670]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebp
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea ebp, [esp + 0x670]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
add edx, 0x200
mov esi, edi
mov edi, ebp
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea ebp, [esp + 0x670]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40b0b8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebp
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
dec ebx
rep movsb byte es:[edi], byte [esi]
jne 0x404fb8
lea ecx, [esp + 0x14]
lea edx, [esp + 0x2c]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x68c]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40531e
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2660
ret
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x28]
lea eax, [esp + 0x470]
push edx
push eax
push 0
push 0
push 0x40b9f8
push ecx
mov dword [esp + 0x40], ebx
call esi
test eax, eax
jne 0x40531e
lea edx, [esp + 0x470]
push eax
push edx
call fcn.00409106
add esp, 8
cmp eax, 0xffffffff
je 0x40531e
mov eax, dword [0x40c2d0]
lea ecx, [esp + 0x670]
test eax, eax
lea eax, [esp + 0x70]
push eax
push str.__s_rav.exe_
push ecx
je 0x405204
call fcn.00405520
mov ebx, dword [0x4102d4]
add esp, 0xc
test ebx, ebx
jle 0x40519a
mov edx, 0x40c2d4
mov edi, 0x40b074
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x670]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebp
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea ebp, [esp + 0x670]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
add edx, 0x200
mov esi, edi
mov edi, ebp
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
dec ebx
rep movsb byte es:[edi], byte [esi]
jne 0x405134
lea edx, [esp + 0x14]
lea eax, [esp + 0x2c]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x68c]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40531e
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
push edx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2660
ret
call fcn.00405520
mov ebx, dword [0x4102d4]
add esp, 0xc
test ebx, ebx
jle 0x4052b8
mov edx, 0x40c2d4
or ecx, 0xffffffff
mov edi, 0x40b0bc
xor eax, eax
lea ebp, [esp + 0x670]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebp
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea ebp, [esp + 0x670]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
add edx, 0x200
mov esi, edi
mov edi, ebp
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea ebp, [esp + 0x670]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40b0b8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebp
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
dec ebx
rep movsb byte es:[edi], byte [esi]
jne 0x40521f
lea edx, [esp + 0x14]
lea eax, [esp + 0x2c]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x68c]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40531e
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
push edx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2660
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2660
ret