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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1a4b
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x513200]
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 dword [ebp - 0x140], ecx
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x13c], 0
cmp dword [edi + 4], ebx
jbe 0x430952
mov eax, ebx
lea esi, [ebp - 0x13c]
and eax, 1
mov ecx, edi
lea esi, [esi + eax*2]
call fcn.004045e0
movzx eax, word [eax + ebx*2]
push eax
call fcn.004a97f6
xor word [esi], ax
inc ebx
add esp, 4
cmp ebx, dword [edi + 4]
jb 0x430921
mov esi, dword [ebp - 0x138]
mov eax, 4
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
mov word [ebp - 0x1a], ax
lea ecx, [ebp - 0x12c]
lea eax, [ebp - 0x128]
mov byte [ebp - 0x18], 1
push 1
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x130], 0
call fcn.004056f0
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
cmove eax, dword [ebp - 0x12c]
xor ecx, ecx
mov word [eax + 4], cx
push 0x4fd038
lea eax, [ebp - 0x134]
mov dword [ebp - 4], ecx
push 0x4fc47c
push eax
call fcn.004048f0
push str.mutex_file_
lea eax, [ebp - 0x134]
push 0x4fc47c
push eax
call fcn.004048f0
push dword [ebp - 0x13c]
lea eax, [ebp - 0x134]
push str.0x_p
push eax
call fcn.004048f0
mov ebx, dword [ebp - 0x140]
lea eax, [ebp - 0x128]
add esp, 0x24
cmp byte [ebp - 0x18], 0
cmove eax, dword [ebp - 0x12c]
add eax, 4
lea ecx, [ebx + 0x130]
push eax
push esi
call fcn.00437270
test al, al
jne 0x430a90
push 0x4fd060
mov ecx, esi
call fcn.004058b0
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x430a64
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je 0x430a64
push eax
call fcn.00496f41
add esp, 4
push 0x4fd0b4
mov ecx, esi
call fcn.004058b0
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.00489940
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x430ac0
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je 0x430ac0
push eax
call fcn.00496f41
add esp, 4
push ecx
push esi
lea ecx, [ebx + 0x130]
call fcn.00437450
test al, al
je 0x430a64
mov esi, dword [ebp + 0x10]
lea eax, [ebx + 0x130]
mov dword [ebx + 0x34c], eax
xor ecx, ecx
mov dword [ebx + 8], esi
mov eax, 0x4f6af0
nop word [eax + eax]
cmp dword [eax], esi
je 0x430b54
add ecx, 0x10
add eax, 0x10
cmp ecx, 0x50
jb 0x430af0
mov ebx, dword [ebp - 0x138]
mov ecx, ebx
push 0x4ffe50
call fcn.004058b0
push esi
push 0x4fc45c
push eax
call fcn.004048f0
add esp, 0xc
cmp byte [edi + 0x11c], 0
je 0x430b2e
add edi, 0xc
jmp 0x430b31
mov edi, dword [edi + 8]
push 0x4ffe64
mov ecx, ebx
call fcn.004058b0
lea ecx, [edi + 4]
push ecx
push 0x4fc47c
push eax
call fcn.004048f0
add esp, 0xc
jmp 0x430a70
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
push ecx
mov dword [ebp - 0x144], ecx
mov ecx, edi
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x13c], eax
call fcn.0040eaf0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 4], eax
mov esi, 1
cmp eax, 0xffffffff
jne 0x430c10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x430bbd
cmp esi, 3
jge 0x430c5b
cmp byte [ebx + 0x350], 0
je 0x430bde
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x430bde
cmp eax, 5
jne 0x430c20
cmp esi, 3
jge 0x430c5b
push 0x80
mov ecx, edi
call fcn.0040eaf0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push dword [ebp - 0x140]
mov ecx, edi
push 0
push dword [ebp - 0x13c]
push dword [ebp - 0x144]
call fcn.0040eaf0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
inc esi
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x430b96
push edi
lea ecx, [ebx + 0xc]
call fcn.0040ecf0
mov al, 1
jmp 0x430a72
test eax, eax
jne 0x430c5b
cmp byte [edi + 0x11c], al
je 0x430c31
add edi, 0xc
jmp 0x430c34
mov edi, dword [edi + 8]
mov ecx, dword [ebp - 0x138]
push 0x4ffe74
call fcn.004058b0
lea ecx, [edi + 4]
push ecx
push 0x4fc47c
push eax
call fcn.004048f0
add esp, 0xc
jmp 0x430a70
cmp byte [edi + 0x11c], 0
je 0x430c69
add edi, 0xc
jmp 0x430c6c
mov edi, dword [edi + 8]
mov ecx, dword [ebp - 0x138]
push eax
call fcn.004272c0
push 0x4ffe64
mov esi, eax
push 0x4fc47c
push esi
call fcn.004048f0
lea ecx, [edi + 4]
push ecx
push 0x4fc47c
push esi
call fcn.004048f0
add esp, 0x18
jmp 0x430a70