Function at 0x48dbd0
Capabilities:
Delete file
Delete registry value
Query or enumerate registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov edx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov ebx, dword [esi + 0x20]
mov ecx, ebx
and ebx, 0x100
and ecx, 0xfffffcff
neg ebx
mov dword [ebp - 0x14], ecx
sbb ebx, ebx
and ebx, 0xffffff00
add ebx, 0xf023f
test byte [esi + 0x1c], 1
jne 0x48ddeb
lea eax, [ebp - 4]
push eax
push ebx
push edi
lea eax, [esi + 0x24]
push eax
push ecx
call edx
mov edi, eax
test edi, edi
jne 0x48ddc7
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
push edi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x18], eax
push ecx
push edi
push dword [esi + 4]
mov dword [ebp - 8], edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x48ddc7
mov eax, dword [ebp - 8]
add eax, 4
add eax, dword [esi + 8]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov dword [ebp - 0x10], ecx
test ecx, ecx
jne 0x48dc79
lea edi, [eax + 0xe]
jmp 0x48ddc7
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 8]
add eax, 4
add eax, ecx
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [esi + 4]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x48ddb5
mov eax, dword [esi + 8]
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], ecx
mov dword [edi + eax], ecx
push dword [esi + 8]
push dword [esi + 4]
push edi
call fcn.004abd70
mov eax, dword [ebp - 8]
add esp, 0xc
mov dword [esi + 0x10], eax
mov eax, dword [esi + 8]
add eax, 4
add eax, edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x48dce8
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 4], edi
lea eax, [esi + 0x22c]
mov dword [esi + 0x434], edi
xor edi, edi
push edi
push 0x80
push 2
push edi
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x48ddd4
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 8]
add edx, 4
mov ecx, dword [esi + 4]
add eax, edx
push eax
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], ecx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x48dd4b
lea edi, [eax + 0xe]
jmp 0x48dda6
push dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
mov edx, eax
call fcn.0048c560
add esp, 4
lea eax, [ebp - 0x1c]
push 0
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x48dd7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x48dd8c
mov eax, dword [ebp - 8]
mov ecx, 0x1d
cmp dword [ebp - 0x1c], eax
cmovne edi, ecx
push dword [ebp - 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
jne 0x48dda6
or dword [esi + 0x1c], 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x48ddd4
jmp 0x48ddc7
push dword [ebp - 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [esi + 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x48dde2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x14]
test byte [esi + 0x1c], 2
jne 0x48de57
test edi, edi
jne 0x48de57
lea eax, [ebp - 4]
push eax
push ebx
push edi
lea eax, [esi + 0x24]
push eax
push ecx
call edx
test eax, eax
jne 0x48de49
push dword [esi + 4]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x48de30
or dword [esi + 0x1c], 2
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push dword [ebp - 4]
mov esi, 0x15e
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
mov eax, 0x15e
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4