Function at 0x45aea0
Capabilities:
Check mutex on windows
Delete registry key
Query or enumerate registry key
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd860
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x522f10]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 2
xor eax, eax
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x228]
push eax
mov eax, dword [ebp + 8]
push ecx
xor ebx, ebx
add eax, 0xfffffff0
mov dword [ebp - 0x224], esp
mov esi, esp
push eax
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x23c], ebx
call fcn.00425484
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0046b540
add esp, 8
cmp eax, ebx
jne 0x45afdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 8]
push ecx
mov ecx, esp
mov dword [ebp - 0x224], esp
push eax
push edx
push str.RegDiff_PostScan:_CreateNewFile__s__failed__LE_d
push ecx
call fcn.0046aaf0
add esp, 0x10
call fcn.00459800
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45af90
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45afb2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45afd8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x45b720
mov edi, dword [ebp - 0x228]
push ebx
lea ecx, [ebp - 0x23c]
push ecx
push 4
push 0x4ed92c
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x4eaa5c
call fcn.004b8a1a
add esp, 4
push eax
push 0x4eaa5c
mov ecx, 0x528ed8
call fcn.00425413
push ecx
mov edx, esp
mov dword [ebp - 0x224], esp
push ebx
push str.PATHTREE_Initialize__s_
push edx
call fcn.0046aaf0
add esp, 0xc
call fcn.0048aea0
add esp, 4
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x248], eax
mov eax, 0x5c
mov dword [ebp - 0x244], ebx
mov word [ebp - 0x240], ax
mov dword [ebp - 0x258], ebx
mov dword [0x528ec4], edi
mov eax, dword [ecx - 0xc]
cmp eax, ebx
je 0x45b14a
lea edx, [ebp - 0x26c]
push edx
mov esi, 0x528ecc
call fcn.00471340
add esp, 4
push ebx
push 0x528ec8
push esi
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareCameyoPackagerVirtReg
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x45b14a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, esp
mov dword [ebp - 0x224], esp
push eax
push str.RegDiff_PostScan:_ExportHive_key_creation_failed__LE_d
push ecx
call fcn.0046aaf0
add esp, 0xc
call fcn.00459800
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45b0f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45b119
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45afd8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x45b720
mov ecx, dword [0x528ef0]
mov eax, dword [0x528ef4]
mov esi, ecx
cmp ecx, eax
jbe 0x45b16b
call fcn.004b8b91
mov eax, dword [0x528ef4]
mov ecx, dword [0x528ef0]
mov edx, dword [0x528ee4]
sub eax, ecx
sar eax, 2
mov dword [ebp - 0x238], edx
mov dword [ebp - 0x234], esi
test eax, eax
ja 0x45b30c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x230], 1
cmp dword [eax - 0xc], ebx
je 0x45b6ae
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x22c], esp
mov esi, esp
push eax
call fcn.00425484
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0046dbf0
mov ecx, esp
mov dword [ebp - 0x22c], esp
push 0x4e8fa8
call fcn.004247f3
push ecx
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0x228], esp
push str.AppVirtDll.dll
call fcn.004247f3
push ecx
mov byte [ebp - 4], 7
mov edx, esp
mov dword [ebp - 0x220], esp
push edx
call fcn.00469c20
add esp, 4
lea edi, [ebp - 0x224]
mov byte [ebp - 4], 2
call fcn.0046a3b0
mov bl, 8
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x224]
add esp, 8
add eax, 0xfffffff0
mov dword [ebp - 0x22c], esp
mov esi, esp
push eax
call fcn.00425484
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 9
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov dword [ebp - 0x228], esp
mov esi, esp
push eax
call fcn.00425484
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0xa
mov ecx, esp
mov dword [ebp - 0x220], esp
push str.SoftwareCameyoPackagerVirtReg
call fcn.004247f3
mov byte [ebp - 4], bl
call fcn.0047dec0
add esp, 0xc
test eax, eax
jne 0x45b5b1
push ecx
mov dword [ebp - 0x22c], esp
mov esi, esp
push ecx
mov ecx, esp
mov dword [ebp - 0x22c], esp
push str.VirtRegHiveDbg
call fcn.004247f3
push esi
call fcn.0046a0c0
add esp, 8
call fcn.0046d1a0
add esp, 4
test eax, eax
je 0x45b2c2
mov eax, dword [ebp + 0xc]
push 0
push str.About_to_save
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp + 0xc]
push 0
push 0
push 0
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x22c], esp
mov edi, esp
push eax
mov esi, 2
call fcn.00425484
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [edi], eax
call fcn.00494bd0
add esp, 0x10
jmp 0x45b5e5
mov esi, dword [ebp - 0x234]
mov edx, dword [ebp - 0x238]
mov dword [ebp - 0x230], ebx
cmp edx, ebx
jne 0x45b34f
call fcn.004b8b91
xor edx, edx
cmp esi, dword [edx + 0x10]
jb 0x45b327
call fcn.004b8b91
mov esi, dword [esi]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
sub esi, 0x10
call eax
cmp dword [esi + 0xc], ebx
lea ecx, [esi + 0xc]
jl 0x45b353
cmp eax, dword [esi]
jne 0x45b353
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x45b38e
mov edx, dword [edx]
jmp 0x45b31d
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
cmp edi, ebx
je 0x45b598
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.004b849e
add esp, 0x10
lea esi, [edi + 0x10]
mov dword [ebp - 0x224], esi
mov byte [ebp - 4], 3
cmp dword [esi - 4], 1
jle 0x45b3b6
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [ebp - 0x224]
call fcn.0042257b
mov esi, dword [ebp - 0x224]
mov edx, dword [0x528eb8]
push 0xffffffffffffffff
push edx
lea edi, [esi + 2]
mov dword [ebp - 0x220], ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x23c]
mov edx, dword [0x528eb0]
push ebx
push ebx
lea eax, [ebp - 0x230]
push eax
push edi
push ebx
push ebx
push ecx
push ebx
push edx
push edi
push 0x528ea8
mov dword [ebp - 0x230], ebx
call fcn.0048b0e0
mov eax, dword [0x528eb8]
add esp, 0x2c
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call fcn.0049b1b0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x45b4e9
mov eax, dword [ebp + 0x10]
push ebx
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x22c], esp
mov dword [ebp - 0x220], esp
push eax
call fcn.00425484
mov ecx, dword [ebp - 0x220]
add eax, 0x10
mov dword [ecx], eax
mov byte [ebp - 4], 4
mov dword [ebp - 0x220], esp
mov dword [ebp - 0x220], esp
call fcn.004aa2e3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x45b59d
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp - 0x220]
add eax, 0x10
mov dword [ecx], eax
mov byte [ebp - 4], 5
test edi, edi
je 0x45b4a5
test edi, 0xffff0000
jne 0x45b4a9
movzx edi, di
push edi
call fcn.004b2260
test eax, eax
je 0x45b4bf
mov ecx, dword [ebp - 0x220]
push edi
push eax
call fcn.00424e90
jmp 0x45b4bf
xor eax, eax
jmp 0x45b4b2
push edi
call fcn.004b8a1a
add esp, 4
mov ecx, dword [ebp - 0x220]
push eax
push edi
call fcn.00425413
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x230]
push edx
lea eax, [ebp - 0x258]
push eax
push 0x528ea8
mov byte [ebp - 4], 3
call fcn.0045a070
add esp, 0x18
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004b89fb
add esp, 8
test eax, eax
jl 0x45b5a7
cmp eax, dword [esi - 8]
jg 0x45b5a7
mov edx, dword [ebp - 0x234]
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x238]
push edx
push eax
lea ecx, [ebp - 0x268]
push ecx
push 0x528ee4
call fcn.00457ae0
mov edi, dword [0x528ef0]
cmp edi, dword [0x528ef4]
jbe 0x45b542
call fcn.004b8b91
mov edx, dword [0x528ee4]
lea eax, [esi - 0x10]
mov dword [ebp - 0x238], edx
mov dword [ebp - 0x234], edi
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45b574
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x528ef4]
sub ecx, dword [0x528ef0]
xor ebx, ebx
sar ecx, 2
test ecx, ecx
ja 0x45b300
mov edi, dword [ebp - 0x228]
jmp 0x45b18a
call fcn.00422570
push 0x80004005
call fcn.00422000
push 0x80070057
call fcn.00422000
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, esp
mov dword [ebp - 0x22c], esp
push eax
push edx
push str.RegDiff_PostScan:_MyRegSaveKey__s__failed__LE_d
push ecx
call fcn.0046aaf0
add esp, 0x10
call fcn.00459800
add esp, 4
mov dword [ebp - 0x230], 0
mov eax, dword [0x528ec8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebx
lea ecx, [ebp - 0x228]
push ecx
push 0x10008
push 0
push str.SoftwareCameyoPackagerVirtReg
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45b688
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, 0x104
mov ecx, dword [ebp - 0x228]
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x21c]
push eax
push 0
push ecx
mov dword [ebp - 0x220], edi
call esi
cmp eax, 0x103
je 0x45b66f
test eax, eax
jne 0x45b67f
push eax
mov eax, dword [ebp - 0x228]
lea edx, [ebp - 0x21c]
push edx
push eax
call fcn.0046bc30
add esp, 0xc
test eax, eax
je 0x45b620
jmp 0x45b67f
push str.SoftwareCameyoPackagerVirtReg
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 0x228]
push ecx
call ebx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45b6ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45b6d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45b6f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45b71a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b80af
mov esp, ebp
pop ebp
ret