Function at 0x45c980
Capabilities:
Encode data using xor
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5301ab
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x5c6150]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x140], esi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x13c], 0
cmp dword [edi + 4], ebx
jbe 0x45ca04
mov eax, ebx
lea esi, [ebp - 0x13c]
and eax, 1
mov ecx, edi
lea esi, [esi + eax*2]
call fcn.00450480
movzx eax, word [eax + ebx*2]
push eax
call fcn.004ed3d4
xor word [esi], ax
inc ebx
add esp, 4
cmp ebx, dword [edi + 4]
jb 0x45c9d3
mov esi, dword [ebp - 0x140]
mov eax, 4
mov dword [ebp - 0x138], vtable.t_str.0
mov word [ebp - 0x1e], ax
lea ecx, [ebp - 0x130]
lea eax, [ebp - 0x12c]
mov byte [ebp - 0x1c], 1
push 1
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x134], 0
call fcn.00450b00
cmp byte [ebp - 0x1c], 0
lea eax, [ebp - 0x12c]
cmove eax, dword [ebp - 0x130]
xor ecx, ecx
mov word [eax + 4], cx
push str.Local_
lea eax, [ebp - 0x138]
mov dword [ebp - 4], ecx
push 0x5971f4
push eax
call fcn.00450580
add esp, 0xc
lea eax, [ebp - 0x138]
push str.mutex_file_
push 0x5971f4
push eax
call fcn.00450580
add esp, 0xc
lea eax, [ebp - 0x138]
push dword [ebp - 0x13c]
push str.0x_p
push eax
call fcn.00450580
mov ebx, dword [ebp - 0x144]
lea eax, [ebp - 0x12c]
add esp, 0xc
lea ecx, [esi + 0x130]
cmp byte [ebp - 0x1c], 0
cmove eax, dword [ebp - 0x130]
add eax, 4
push eax
push ebx
call fcn.004636b0
test al, al
jne 0x45cba2
cmp dword [ebx], 0
mov edi, ebx
je 0x45cafd
nop dword [eax + eax]
mov edi, dword [edi]
add edi, 0x124
cmp dword [edi], 0
jne 0x45caf0
push 0x128
call fcn.004d7188
mov esi, eax
add esp, 4
mov ecx, esi
mov dword [ebp - 0x148], esi
call fcn.0044fd40
push 0x59fd7c
push 0x5971f4
mov dword [esi + 0x124], 0
push esi
mov dword [edi], esi
call fcn.00450580
mov dword [ebp - 4], 0xffffffff
add esp, 0xc
cmp byte [ebp - 0x1c], 0
mov dword [ebp - 0x138], vtable.t_str.0
jne 0x45cb68
mov eax, dword [ebp - 0x130]
lea ecx, [ebp - 0x12c]
cmp eax, ecx
je 0x45cb68
push eax
call fcn.004e1b56
add esp, 4
mov ecx, ebx
call fcn.00450c80
push 0x597610
push 0x5971f4
push eax
call fcn.00450580
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x1c], 0
mov dword [ebp - 0x138], vtable.t_str.0
jne 0x45cbd2
mov eax, dword [ebp - 0x130]
lea ecx, [ebp - 0x12c]
cmp eax, ecx
je 0x45cbd2
push eax
call fcn.004e1b56
add esp, 4
push ecx
push ebx
lea ecx, [esi + 0x130]
call fcn.004638b0
test al, al
je 0x45cb68
mov edx, dword [ebp + 0x10]
lea eax, [esi + 0x130]
mov dword [esi + 0x34c], eax
xor ecx, ecx
mov dword [esi + 8], edx
mov eax, 0x58b250
nop dword [eax]
cmp dword [eax], edx
je 0x45cd1d
add ecx, 0x10
add eax, 0x10
cmp ecx, 0x50
jb 0x45cc00
cmp dword [ebx], 0
mov esi, ebx
je 0x45cc2d
nop word [eax + eax]
mov esi, dword [esi]
add esi, 0x124
cmp dword [esi], 0
jne 0x45cc20
push 0x128
call fcn.004d7188
mov dword [ebp - 0x13c], eax
mov edx, 4
add esp, 4
lea ecx, [eax + 8]
mov dword [eax], vtable.t_str.0
mov word [ecx + 0x112], dx
lea edx, [ecx + 4]
mov byte [ecx + 0x114], 1
mov dword [ecx], edx
mov dword [edx], 0
push 1
mov dword [ebp - 0x144], ecx
mov dword [ebp - 0x140], edx
mov dword [eax + 0x120], 0
mov dword [eax + 4], 0
call fcn.00450b00
mov eax, dword [ebp - 0x144]
cmp byte [eax + 0x114], 0
je 0x45cca2
mov eax, dword [ebp - 0x140]
jmp 0x45cca4
mov eax, dword [eax]
xor ecx, ecx
mov word [eax + 4], cx
mov eax, dword [ebp - 0x13c]
push 0x5a0f68
push 0x5971f4
push eax
mov dword [eax + 0x124], ecx
mov dword [esi], eax
call fcn.00450580
add esp, 0xc
push dword [ebp + 0x10]
push 0x5986d4
push dword [ebp - 0x13c]
call fcn.00450580
add esp, 0xc
cmp byte [edi + 0x11c], 0
je 0x45ccef
add edi, 0xc
jmp 0x45ccf2
mov edi, dword [edi + 8]
mov ecx, ebx
call fcn.00450c80
push 0x5a0f58
mov esi, eax
push 0x5971f4
push esi
call fcn.00450580
add esp, 0xc
lea ecx, [edi + 4]
push ecx
push 0x5971f4
push esi
jmp 0x45cb7a
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
push 0
push 0x80
push edx
push 0
push eax
mov dword [ebp - 0x148], ecx
push ecx
mov ecx, edi
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x13c], eax
call fcn.00450480
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
mov esi, 1
cmp eax, 0xffffffff
jne 0x45cded
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x45cd90
cmp esi, 3
jge 0x45ce37
mov eax, dword [ebp - 0x140]
cmp byte [eax + 0x350], 0
je 0x45cdb1
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x45cdb1
cmp eax, 5
jne 0x45ce03
cmp esi, 3
jge 0x45ce37
push 0x80
mov ecx, edi
call fcn.00450480
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push dword [ebp - 0x144]
mov ecx, edi
push 0
push dword [ebp - 0x13c]
push dword [ebp - 0x148]
call fcn.00450480
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x140]
inc esi
mov dword [ecx + 4], eax
cmp eax, 0xffffffff
je 0x45cd63
mov ecx, dword [ebp - 0x140]
push edi
lea ecx, [ecx + 0xc]
call fcn.00451cf0
mov al, 1
jmp 0x45cb84
test eax, eax
jne 0x45ce37
cmp byte [edi + 0x11c], al
je 0x45ce23
mov ecx, ebx
add edi, 0xc
call fcn.00450c80
push 0x5a0f38
jmp 0x45ccfe
mov edi, dword [edi + 8]
mov ecx, ebx
call fcn.00450c80
push 0x5a0f38
jmp 0x45ccfe
cmp byte [edi + 0x11c], 0
je 0x45ce57
push eax
mov ecx, ebx
add edi, 0xc
call fcn.00450c80
mov ecx, eax
call fcn.00450ff0
jmp 0x45ccf2
mov edi, dword [edi + 8]
mov ecx, ebx
push eax
call fcn.00450c80
mov ecx, eax
call fcn.00450ff0
jmp 0x45ccf2