Function at 0x410140
Capabilities:
Create directory
Delete file
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431160
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x264
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edx, dword [ebp + 8]
xor ebx, ebx
cmp edx, ebx
je 0x4103f1
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x4103f1
cmp dword [ebp + 0xc], ebx
je 0x410230
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 1
mov byte [ebp - 0x11c], bl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x11b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push edx
push str.SOFTWARERising_s
lea eax, [ebp - 0x11c]
push eax
call fcn.00426b7c
add esp, 0xc
lea ecx, [ebp - 0x18]
push ecx
push 0x20019
push ebx
lea edx, [ebp - 0x11c]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410211
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x120], eax
lea ecx, [ebp - 0x120]
push ecx
push esi
lea edx, [ebp - 0x14]
push edx
push ebx
push str.installpath
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x128], 1
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x124], eax
cmp eax, ebx
je 0x4103d2
push str.SHGetFolderPathA
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call ebx
mov edi, eax
test edi, edi
jne 0x41029b
mov edx, dword [ebp - 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.SHFolder.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x124], eax
test eax, eax
je 0x410293
push str.SHGetFolderPathA
push eax
call ebx
mov edi, eax
test edi, edi
je 0x4103c1
push esi
push 1
push 0
push 0x23
push 0
call edi
test eax, eax
jl 0x4103c1
mov ebx, dword [ebp + 0x14]
push ebx
push 0x435634
push esi
call fcn.00428124
add esp, 0xc
lea eax, [ebp - 0x26c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov dword [ebp - 0x270], edi
cmp edi, 0xffffffff
je 0x4102e4
test byte [ebp - 0x26c], 0x10
jne 0x410325
test byte [ebp - 0x26c], 0x10
jne 0x410316
mov dword [ebp - 4], 0
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x41030f
mov dword [ebp - 4], 0xffffffff
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x128], eax
cmp edi, 0xffffffff
je 0x410331
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x128]
test eax, eax
je 0x4103c1
push ebx
push 0x4351b8
push esi
call fcn.00428124
push ebx
mov ecx, dword [ebp + 8]
push ecx
push esi
call fcn.00428124
add esp, 0x18
lea edx, [ebp - 0x26c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov dword [ebp - 0x270], edi
cmp edi, 0xffffffff
je 0x41037d
test byte [ebp - 0x26c], 0x10
jne 0x4103b5
test byte [ebp - 0x26c], 0x10
jne 0x4103ac
mov dword [ebp - 4], 2
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4103a5
mov dword [ebp - 4], 0xffffffff
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp edi, 0xffffffff
je 0x4103c1
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x124]
test eax, eax
je 0x4103d2
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret