Function at 0x10007f07
Capabilities:
Encode data using xor
Encrypt or decrypt via wincrypt
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x10044040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x10046368]
xor ebx, ebx
push edi
cmp dword [esi + 0x10], ebx
je 0x10008110
call fcn.10007a57
test al, al
jne 0x10008110
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0x7f68220c
mov word [ebp - 0x14], 0x78
call fcn.1000812a
push ecx
push eax
call fcn.100083da
cmp eax, 0xffffffff
je 0x1000810a
movaps xmm0, xmmword [0x1003e360]
mov ecx, ebx
push dword [0x100460bc]
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0x50535302
mov dword [ebp - 0x24], 0x4d07463c
mov dword [ebp - 0x20], 0x171704
mov al, byte [ebp - 0x38]
xor byte [ebp + ecx - 0x37], al
inc ecx
cmp ecx, 0x1a
jb 0x10007f85
sub esp, 0x18
mov byte [ebp - 0x1d], bl
lea eax, [ebp - 0x37]
mov ecx, esp
push eax
call fcn.10002604
lea eax, [ebp - 0x50]
push eax
call fcn.10004864
add esp, 0x20
mov ebx, 0x1004636c
mov ecx, ebx
push eax
call fcn.1000539f
lea ecx, [ebp - 0x50]
call fcn.10002410
mov eax, dword [0x10046368]
cmp dword [eax + 0x14], 0xf
jbe 0x10007fd1
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push eax
call esi
cmp dword [0x10046380], 0xf
mov edi, eax
push 0
cmova ebx, dword [0x1004636c]
push 0x80
push 2
push 0
push 2
push 0x40000000
push ebx
mov dword [ebp - 0x1c], edi
call esi
mov ebx, eax
cmp edi, 0xffffffff
je 0x100080f6
cmp ebx, 0xffffffff
je 0x100080f2
lea eax, [ebp - 0x10]
mov byte [ebp - 0x18], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor esi, esi
xor eax, eax
or esi, dword [ebp - 0x10]
inc eax
not esi
and esi, eax
add esi, 0x1f
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x100080ef
push 0
lea eax, [ebp - 8]
push eax
push 4
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000807f
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
and dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push esi
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100080e1
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 8], esi
push 1
pop ecx
movzx eax, al
cmovb eax, ecx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
push eax
push edi
push 0
push ecx
push 0
push dword [0x100460c0]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x100080e1
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [ebp - 0x18], 0
je 0x1000808f
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x100080fd
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1000811b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000811b
mov esi, dword [0x10046368]
push esi
mov ecx, 0x1004636c
call fcn.10003baf
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100334f4
leave
ret