Function at 0x1000f070
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 [0x10077604]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
cmp dword [edx + 0x14], 0x10
jae 0x1000f091
add edx, 4
jmp 0x1000f094
mov edx, dword [edx + 4]
cmp byte [edx], 0
jne 0x1000f09d
xor ecx, ecx
jmp 0x1000f0ab
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000f0a2
sub ecx, esi
push ecx
mov edi, 0x100780b4
push edx
mov ecx, edi
call fcn.10002800
mov esi, dword [0x100780c4]
mov ebx, 0x100780cc
test esi, esi
je 0x1000f351
cmp dword [0x100780e0], 0x10
mov edx, ebx
mov ecx, edi
mov edi, dword [0x100780dc]
cmovae edx, dword [0x100780cc]
mov eax, edi
cmp dword [0x100780c8], 0x10
cmovae ecx, dword [0x100780b4]
cmp esi, edi
cmovb eax, esi
push eax
push edx
push ecx
call fcn.1000bc30
add esp, 0xc
test eax, eax
jne 0x1000f112
cmp esi, edi
jb 0x1000f112
jbe 0x1000f351
mov ah, 0x75
mov byte [ebp - 0x13], 0
mov bl, 0x5b
mov byte [ebp - 0x18], ah
mov al, 0x11
mov byte [ebp - 0x13], 0
mov cl, 6
mov dl, 1
xor bl, ah
xor al, ah
xor cl, ah
mov byte [ebp - 0x17], bl
xor dl, ah
mov byte [ebp - 0x16], al
mov byte [ebp - 0x15], cl
mov byte [ebp - 0x14], dl
test bl, bl
jne 0x1000f143
xor ecx, ecx
jmp 0x1000f159
lea ecx, [ebp - 0x17]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000f150
sub ecx, edx
push ecx
push 0
lea eax, [ebp - 0x17]
mov ebx, 0x100780b4
push eax
mov ecx, ebx
call fcn.1000e3b0
cmp eax, 0xffffffff
je 0x1000f34c
movaps xmm0, xmmword [0x10066990]
xor ecx, ecx
push dword [0x10078098]
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0x21222273
mov dword [ebp - 0x24], 0x3c76374d
mov dword [ebp - 0x20], 0x666675
nop dword [eax]
mov al, byte [ebp - 0x38]
xor byte [ebp + ecx - 0x37], al
inc ecx
cmp ecx, 0x1a
jb 0x1000f1a0
sub esp, 0x18
mov byte [ebp - 0x1d], 0
lea eax, [ebp - 0x37]
mov ecx, esp
push eax
call fcn.100017e0
lea eax, [ebp - 0x50]
push eax
call fcn.100322e0
add esp, 0x20
mov ecx, 0x100780cc
push eax
call fcn.10007e10
lea ecx, [ebp - 0x50]
call fcn.10001840
cmp dword [0x100780c8], 0x10
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
cmovae ebx, dword [0x100780b4]
push 0
push 0x80
push 3
push 0
push 3
push connect
push ebx
call esi
cmp dword [0x100780e0], 0x10
mov edi, eax
push 0
push 0x80
push 2
push 0
push 2
mov eax, 0x100780cc
mov dword [ebp - 0x18], edi
cmovae eax, dword [0x100780cc]
push 0x40000000
push eax
call esi
mov ebx, eax
mov dword [ebp - 0x1c], ebx
cmp edi, 0xffffffff
je 0x1000f325
cmp ebx, 0xffffffff
je 0x1000f325
lea eax, [ebp - 0x10]
xor bl, bl
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [ebp - 0xc]
xor ecx, ecx
or ecx, dword [ebp - 0x10]
and cl, 1
cdq
movzx edi, cl
neg edi
sbb edi, edi
add edi, 0x20
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x1000f31f
push 0
lea eax, [ebp - 8]
push eax
push 4
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000f2ab
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 8], 0
nop
push 0
lea eax, [ebp - 8]
push eax
push edi
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000f311
cmp dword [ebp - 8], edi
mov eax, 1
movzx ebx, bl
cmovb ebx, eax
lea eax, [ebp - 8]
push eax
push esi
push 0
push 1
push 0
push dword [0x10078094]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x1000f311
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test bl, bl
je 0x1000f2c0
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x1000f332
push edi
call esi
test ebx, ebx
je 0x1000f361
push ebx
call esi
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005f6be
mov esp, ebp
pop ebp
ret
mov ebx, 0x100780cc
push 0xffffffffffffffff
push 0
push 0x100780b4
mov ecx, ebx
call fcn.100026e0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005f6be
mov esp, ebp
pop ebp
ret