Function at 0x10006d21
Capabilities:
Delete file
Encode data using xor
Get file size
Read file on windows
Write file on windows

Disassembly:
push 0x78
mov eax, 0x1004664d
call fcn.10044ac9
mov eax, ecx
mov dword [ebp - 0x4c], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x48], edi
cmp dword [edi + 0x10], ebx
jne 0x10006d46
xor al, al
jmp 0x10006fa0
lea ecx, [eax + 0x18]
cmp ecx, edi
je 0x10006d56
push 0xffffffffffffffff
push ebx
push edi
call fcn.10001d29
cmp dword [edi + 0x14], 0x10
jb 0x10006d60
mov eax, dword [edi]
jmp 0x10006d62
mov eax, edi
push ebx
push 0x80
push 3
push ebx
push ebx
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10006de6
movaps xmm0, xmmword [0x1004a710]
mov ecx, ebx
movups xmmword [ebp - 0x84], xmm0
mov dword [ebp - 0x54], 0x2e2e397c
movaps xmm0, xmmword [0x1004a740]
movups xmmword [ebp - 0x74], xmm0
mov dword [ebp - 0x50], 0x562e33
movaps xmm0, xmmword [0x1004a760]
movups xmmword [ebp - 0x64], xmm0
mov al, byte [ebp - 0x84]
xor byte [ebp + ecx - 0x83], al
inc ecx
cmp ecx, 0x36
jb 0x10006db3
cmp dword [edi + 0x14], 0x10
mov byte [ebp - 0x4d], bl
jb 0x10006dd1
mov edi, dword [edi]
push ebx
lea eax, [ebp - 0x83]
push eax
push edi
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x10006d3f
mov cl, 0x4d
mov dword [ebp - 0x38], 0x3e29634d
mov dword [ebp - 0x34], 0x3d2039
mov eax, ebx
xor byte [ebp + eax - 0x37], cl
inc eax
cmp eax, 6
jae 0x10006e07
mov cl, byte [ebp - 0x38]
jmp 0x10006df8
lea eax, [ebp - 0x37]
mov byte [ebp - 0x31], bl
push eax
lea eax, [ebp - 0x2c]
push edi
push eax
call fcn.100058b7
add esp, 0xc
lea eax, [ebp - 0x30]
mov dword [ebp - 4], ebx
push eax
push esi
mov dword [ebp - 0x30], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
jne 0x10006e52
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
xor bl, bl
jmp 0x10006f91
push ebx
call fcn.10044f6a
and dword [ebp - 0x14], 0
pop ecx
push 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x40], eax
push ecx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x44], 0
mov ecx, 0x816
mov dword [ebp - 0x3c], ecx
test ebx, ebx
je 0x10006ec0
mov esi, dword [ebp - 0x40]
mov edi, dword [ebp - 0x44]
mov edx, ecx
mov eax, 0x6081
movzx ecx, byte [edi + esi]
add cx, word [ebp - 0x3c]
movzx ecx, cx
imul ecx, eax
mov eax, 0x7105
shr edx, 8
xor dl, byte [edi + esi]
mov byte [edi + esi], dl
add cx, ax
inc edi
movzx ecx, cx
mov dword [ebp - 0x3c], ecx
cmp edi, ebx
jb 0x10006e8c
mov edi, dword [ebp - 0x48]
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
xor ecx, ecx
push ecx
push 0x80
push 2
push ecx
push ecx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov esi, eax
lea eax, [ebp - 0x14]
push eax
push ebx
mov ebx, dword [ebp - 0x40]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.10044f73
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
pop ecx
cmovae eax, dword [ebp - 0x2c]
xor ecx, ecx
push ecx
push 0x80
push 3
push ecx
push ecx
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 0x4c]
mov esi, eax
push esi
call fcn.100064df
push esi
mov bl, al
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x10006f7f
movaps xmm0, xmmword [0x1004a790]
xor edx, edx
movups xmmword [ebp - 0x6c], xmm0
mov ecx, edx
movaps xmm0, xmmword [str.UXTIIXOeOZYW1]
movups xmmword [ebp - 0x5c], xmm0
mov al, byte [ebp - 0x6c]
xor byte [ebp + ecx - 0x6b], al
inc ecx
cmp ecx, 0x1e
jb 0x10006f5a
cmp dword [edi + 0x14], 0x10
mov byte [ebp - 0x4d], dl
jb 0x10006f72
mov edi, dword [edi]
push edx
lea eax, [ebp - 0x6b]
push eax
push edi
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
pop ecx
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.10001cd4
mov al, bl
call fcn.10044a84
ret 4