Function at 0x451950
Capabilities:
Check mutex on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d01d8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x504c94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 2
xor eax, eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 8]
push ecx
xor ebx, ebx
add eax, 0xfffffff0
mov dword [ebp - 0x30], esp
mov esi, esp
push eax
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
call fcn.00423f84
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00467740
add esp, 8
cmp eax, ebx
jne 0x451a47
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 0x4519eb
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 0x451a0d
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 0x451a33
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x1c]
push ebx
lea ecx, [ebp - 0x20]
push ecx
push 4
push 0x4ddb98
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x4d9c38
call fcn.004ab8ea
add esp, 4
push eax
push 0x4d9c38
mov ecx, 0x50a108
call fcn.00423f13
push ecx
mov edx, esp
mov dword [ebp - 0x30], esp
push ebx
push str.PATHTREE_Initialize__s_
push edx
call fcn.00466a00
add esp, 0xc
call fcn.00485630
add esp, 4
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x58], eax
mov eax, 0x5c
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x50], ax
mov dword [ebp - 0x68], ebx
mov dword [0x50a0f4], edi
mov eax, dword [ecx - 0xc]
cmp eax, ebx
je 0x451ba4
lea edx, [ebp - 0x4c]
push edx
mov esi, 0x50a0fc
call fcn.0046d490
add esp, 4
push ebx
push 0x50a0f8
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 0x451ba4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
push str.RegDiff_PostScan:_ExportHive_key_creation_failed__LE_d
push ecx
call fcn.00466a00
add esp, 0xc
call fcn.0044f2d0
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 0x451b44
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 0x451b66
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 0x451a33
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x50a120]
mov eax, dword [0x50a124]
mov esi, ecx
cmp ecx, eax
jbe 0x451bc5
call fcn.004aba61
mov eax, dword [0x50a124]
mov ecx, dword [0x50a120]
mov edx, dword [0x50a114]
sub eax, ecx
sar eax, 2
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], esi
test eax, eax
ja 0x451d86
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], 1
cmp dword [eax - 0xc], ebx
je 0x451cf8
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x34], esp
mov esi, esp
push eax
call fcn.00423f84
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0046a050
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x4d9c3c
call fcn.0042341f
push ecx
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.AppVirtDll.dll
call fcn.0042341f
push ecx
mov edx, esp
mov dword [ebp - 0x2c], esp
push edx
mov byte [ebp - 4], 7
call fcn.00465ab0
add esp, 4
lea edi, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00466550
mov bl, 8
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add esp, 8
add eax, 0xfffffff0
mov dword [ebp - 0x34], esp
mov esi, esp
push eax
call fcn.00423f84
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 9
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov dword [ebp - 0x30], esp
mov esi, esp
push eax
call fcn.00423f84
add eax, 0x10
mov dword [esi], eax
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.SoftwareCameyoPackagerVirtReg
mov byte [ebp - 4], 0xa
call fcn.0042341f
mov byte [ebp - 4], bl
call fcn.0047b880
add esp, 0xc
test eax, eax
je 0x451cb7
mov dword [ebp - 0x18], 0
mov eax, dword [0x50a0f8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SoftwareCameyoPackagerVirtReg
push SysReAllocStringLen
call fcn.00467e50
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x451cf8
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 0x451d1b
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 0x451d3e
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 0x451d64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], ebx
cmp edx, ebx
jne 0x451dc6
call fcn.004aba61
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x451d9e
call fcn.004aba61
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 0x451dca
cmp eax, dword [esi]
jne 0x451dca
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x451e05
mov eax, dword [edx]
jmp 0x451d94
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x4520ec
mov eax, dword [esi + 4]
mov dword [ebx + 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, [ebx + 0x10]
push eax
call fcn.004ab372
add esp, 0x10
lea esi, [ebx + 0x10]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 3
cmp dword [esi - 4], 1
jle 0x451e24
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00421593
mov esi, dword [ebp - 0x18]
mov edx, dword [0x50a0e8]
push 0xffffffffffffffff
xor edi, edi
push edx
lea ebx, [esi + 2]
mov dword [ebp - 0x30], edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp + 8]
mov edx, dword [0x50a0e0]
push edi
push edi
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
push edi
push ecx
push edi
push edx
push ebx
push 0x50a0d8
mov dword [ebp - 0x14], edi
call fcn.00485870
mov eax, dword [0x50a0e8]
add esp, 0x2c
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call fcn.004952f0
add esp, 4
mov dword [ebp - 0x30], eax
cmp eax, edi
je 0x452050
mov edi, dword [ebp + 0x10]
push eax
push ecx
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add edi, 0xfffffff0
mov dword [ebp - 0x34], esp
mov dword [ebp - 0x24], esp
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x451eb3
cmp eax, dword [edi]
jne 0x451eb3
mov esi, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x451eee
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
je 0x4520ec
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
lea ecx, [eax + eax + 2]
push ecx
add edi, 0x10
lea edx, [eax + eax + 2]
push edi
push edx
lea eax, [esi + 0x10]
push eax
call fcn.004ab372
add esp, 0x10
mov ecx, dword [ebp - 0x24]
add esi, 0x10
mov dword [ecx], esi
push ecx
mov esi, esp
mov byte [ebp - 4], 4
mov dword [ebp - 0x2c], esp
mov dword [ebp - 0x24], esi
call fcn.0049d1fb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4520f1
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 5
test ebx, ebx
je 0x452010
test ebx, 0xffff0000
jne 0x452014
movzx esi, bx
push esi
call fcn.004a5121
mov edi, eax
test edi, edi
je 0x452026
mov ecx, esi
shr ecx, 4
inc ecx
movzx edx, cx
push 6
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x452026
push esi
push eax
push edi
call fcn.004216fe
mov esi, eax
add esp, 0xc
test esi, esi
je 0x452026
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
movzx edi, word [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edi
or eax, ecx
jge 0x451fa4
push edi
mov ecx, ebx
call fcn.0042151d
mov eax, dword [ebx]
mov dword [ebp - 0x28], eax
movzx eax, word [esi]
add esi, 2
cmp eax, 0xffffffff
jne 0x451fbe
push esi
call fcn.004ab8ea
add esp, 4
inc eax
lea edx, [eax + eax]
mov eax, dword [ebp - 0x28]
push edx
lea ecx, [edi + edi]
push esi
push ecx
push eax
mov dword [ebp - 0x2c], ecx
call fcn.004ab372
add esp, 0x10
cmp eax, 0x50
ja case.0x451fe6.1
movzx ecx, byte [eax + 0x452120]
jmp dword [ecx*4 + 0x452110]
test edi, edi
jl 0x452105
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x452105
mov ecx, dword [ebp - 0x2c]
mov dword [eax - 0xc], edi
mov edx, dword [ebx]
xor eax, eax
mov word [ecx + edx], ax
jmp 0x452026
xor eax, eax
jmp 0x45201d
push ebx
call fcn.004ab8ea
add esp, 4
push eax
push ebx
mov ecx, esi
call fcn.00423f13
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x14]
push edx
lea eax, [ebp - 0x68]
push eax
push 0x50a0d8
mov byte [ebp - 4], 3
call fcn.00450670
mov ecx, dword [ebp - 0x30]
add esp, 0x18
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x18]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004ab8cb
add esp, 8
test eax, eax
jl 0x452105
cmp eax, dword [esi - 8]
jg 0x452105
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
mov eax, dword [ebp - 0x38]
push eax
push ecx
lea edx, [ebp - 0x48]
push edx
push 0x50a114
call fcn.0044d6b0
mov edi, dword [0x50a120]
cmp edi, dword [0x50a124]
jbe 0x4520a0
call fcn.004aba61
mov eax, dword [0x50a114]
mov dword [ebp - 0x3c], eax
lea eax, [esi - 0x10]
mov dword [ebp - 0x38], edi
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4520cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x50a124]
sub ecx, dword [0x50a120]
xor ebx, ebx
sar ecx, 2
test ecx, ecx
ja 0x451d80
mov edi, dword [ebp - 0x1c]
jmp 0x451bde
call fcn.00421588
push 0x80004005
call fcn.00421000
call fcn.0049d763
call fcn.0049d79b
push 0x80070057
call fcn.00421000
nop
in eax, dx
pop ds
inc ebp
add bl, bh
and byte [ebp], al
add byte [ecx], ah
inc ebp
add byte [eax], al
and dword [ebp], eax
add byte [ebx], al
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add dword [ebx], eax
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add al, byte [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add al, byte [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add ah, cl
int3