Function at 0x57678924
Capabilities:
Delete file
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x92
push 0
push 0
dec ecx
jne 0x5767892c
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x57678d58
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call fcn.5767f60c
lea eax, [ebp - 0x228]
xor edx, edx
call fcn.57677d6c
test al, al
je 0x57678d3a
push 1
lea edx, [ebp - 0x450]
mov eax, dword [0x5768edd4]
call fcn.57667e90
mov eax, dword [ebp - 0x450]
lea ecx, [ebp - 0x44c]
mov dl, 1
call fcn.57667ec4
mov eax, dword [ebp - 0x44c]
push eax
lea edx, [ebp - 0x458]
mov eax, dword [0x5768edd0]
call fcn.57667e90
mov eax, dword [ebp - 0x458]
lea ecx, [ebp - 0x454]
mov dl, 1
call fcn.57667ec4
mov eax, dword [ebp - 0x454]
lea edx, [ebp - 0x228]
pop ecx
call fcn.576781ec
mov ebx, eax
test bl, bl
jne 0x57678d3a
mov word [ebp - 0x432], 0x5c
mov word [ebp - 0x430], 0x3f
mov word [ebp - 0x42e], 0x3f
mov word [ebp - 0x42c], 0x5c
mov word [ebp - 0x42a], 0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x432]
push eax
call sub.KERNEL32.dll_lstrcatW
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
lea edx, [ebp - 0x460]
mov eax, dword [0x5768ee00]
call fcn.57667e90
push dword [ebp - 0x460]
push 0x57678d70
lea edx, [ebp - 0x464]
mov eax, dword [0x5768edd0]
call fcn.57667e90
push dword [ebp - 0x464]
lea eax, [ebp - 0x45c]
mov edx, 3
call fcn.57665858
mov eax, dword [ebp - 0x45c]
call fcn.57665998
push eax
push SysReAllocStringLen
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x57678ab0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x468]
mov eax, dword [0x5768ede8]
call fcn.57667e90
mov eax, dword [ebp - 0x468]
call fcn.57665998
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
test eax, eax
setne byte [ebp - 0x15]
mov eax, dword [ebp - 0x10]
push eax
call sub.ADVAPI32.dll_RegCloseKey
jmp 0x57678ab4
mov byte [ebp - 0x15], 1
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
lea edx, [ebp - 0x46c]
mov eax, dword [0x5768ee00]
call fcn.57667e90
mov eax, dword [ebp - 0x46c]
call fcn.57665998
push eax
push SysReAllocStringLen
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x57678d24
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea edx, [ebp - 0x470]
mov eax, dword [0x5768edd0]
call fcn.57667e90
mov eax, dword [ebp - 0x470]
call fcn.57665998
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.ADVAPI32.dll_RegCreateKeyExA
test eax, eax
jne 0x57678cf5
mov dword [ebp - 4], 1
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0x446]
push eax
lea edx, [ebp - 0x474]
mov eax, dword [0x5768edf8]
call fcn.57667e90
mov eax, dword [ebp - 0x474]
call fcn.57665998
push eax
call fcn.5766f648
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
lea edx, [ebp - 0x478]
mov eax, dword [0x5768edec]
call fcn.57667e90
mov eax, dword [ebp - 0x478]
call fcn.57665998
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.ADVAPI32.dll_RegSetValueExA
test eax, eax
jne 0x57678cec
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
lea edx, [ebp - 0x47c]
mov eax, dword [0x5768edf0]
call fcn.57667e90
mov eax, dword [ebp - 0x47c]
call fcn.57665998
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.ADVAPI32.dll_RegSetValueExA
test eax, eax
jne 0x57678cec
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
lea edx, [ebp - 0x480]
mov eax, dword [0x5768edf4]
call fcn.57667e90
mov eax, dword [ebp - 0x480]
call fcn.57665998
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.ADVAPI32.dll_RegSetValueExA
test eax, eax
jne 0x57678cec
lea eax, [ebp - 0x432]
push eax
call sub.KERNEL32.dll_lstrlenW
add eax, eax
add eax, 2
push eax
lea eax, [ebp - 0x432]
push eax
push 1
push 0
lea eax, [ebp - 0x446]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.ADVAPI32.dll_RegSetValueExW
test eax, eax
jne 0x57678cec
lea eax, [ebp - 0x432]
push eax
push 0x57678d70
lea edx, [ebp - 0x488]
mov eax, dword [0x5768ee04]
call fcn.57667e90
push dword [ebp - 0x488]
push 0x57678d70
lea edx, [ebp - 0x48c]
mov eax, dword [0x5768ee00]
call fcn.57667e90
push dword [ebp - 0x48c]
push 0x57678d70
lea edx, [ebp - 0x490]
mov eax, dword [0x5768edd0]
call fcn.57667e90
push dword [ebp - 0x490]
lea eax, [ebp - 0x484]
mov edx, 6
call fcn.57665858
mov eax, dword [ebp - 0x484]
call fcn.57665998
push eax
call fcn.5766f648
lea esi, [ebp - 0x432]
mov dword [ebp - 0x19], esi
push esi
call sub.KERNEL32.dll_lstrlenW
mov edi, eax
add edi, edi
mov word [ebp - 0x1d], di
add di, 2
mov word [ebp - 0x1b], di
xor edx, edx
mov eax, dword [0x5768ec38]
call fcn.5766bb90
lea edx, [ebp - 0x1d]
push edx
call eax
mov eax, dword [ebp - 0x14]
push eax
call sub.ADVAPI32.dll_RegCloseKey
cmp byte [ebp - 0x15], 0
je 0x57678d1b
push ebp
lea edx, [ebp - 0x494]
mov eax, dword [0x5768edd0]
call fcn.57667e90
mov edx, dword [ebp - 0x494]
mov eax, dword [ebp - 0x10]
call fcn.57678848
pop ecx
mov eax, dword [ebp - 0x10]
push eax
call sub.ADVAPI32.dll_RegCloseKey
cmp word [0x576906b8], 0
jne 0x57678d3a
lea eax, [ebp - 0x228]
push eax
call sub.KERNEL32.dll_DeleteFileW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57678d5f
lea eax, [ebp - 0x494]
mov edx, 0x13
call fcn.5766552c
ret