Function at 0x100f4350
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
push 0xffffffffffffffff
push 0x1019d09e
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x101f6e00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x64], esi
mov eax, dword [0x102c9a2c]
mov dword [ebp - 0x5c], esi
cmp eax, 0x102c9bf4
je 0x100f43ac
cmp dword [eax + 0x18], 0xf
lea ecx, [eax + 4]
jbe 0x100f4399
mov ecx, dword [ecx]
push dword [eax + 0x14]
push ecx
mov ecx, 0x102c9bf4
call fcn.10047890
mov eax, dword [0x102c9a2c]
cmp dword [eax + 0x14], esi
je 0x100f446c
mov dl, 0x23
mov dword [ebp - 0x1c], 0x5a410d23
mov dword [ebp - 0x18], 0x50404251
xor ecx, ecx
mov byte [ebp - 0x14], 0
nop dword [eax + eax]
xor byte [ebp + ecx - 0x1b], dl
inc ecx
cmp ecx, 7
jae 0x100f43df
mov dl, byte [ebp - 0x1c]
jmp 0x100f43d0
xorps xmm0, xmm0
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x1b]
mov dword [ebp - 0x38], esi
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], esi
lea edx, [ecx + 1]
mov dword [ebp - 0x20], esi
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100f4400
sub ecx, edx
lea eax, [ebp - 0x1b]
push ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.100484d0
mov dword [ebp - 4], 0
or esi, 1
mov edi, dword [0x102c9a2c]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x64], esi
mov ecx, dword [edi + 0x14]
cmp ecx, edx
jb 0x100f446c
mov eax, ecx
sub eax, edx
cmp ecx, eax
jb 0x100f478c
cmp dword [ebp - 0x20], 0xf
lea esi, [ebp - 0x34]
lea ecx, [edi + 4]
cmova esi, dword [ebp - 0x34]
cmp dword [edi + 0x18], 0xf
jbe 0x100f4458
mov ecx, dword [ecx]
push edx
push esi
add ecx, eax
call fcn.10099dc0
add esp, 8
mov byte [ebp - 0x55], 1
test eax, eax
je 0x100f4470
mov byte [ebp - 0x55], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x5c]
test al, 1
je 0x100f4540
push 3
lea ecx, [ebp - 0x5c]
call fcn.10139310
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x100f44ae
mov eax, dword [ecx + 4]
mov dword [ecx + 4], 0
test eax, eax
je 0x100f44ae
mov dword [eax], 0
mov eax, dword [eax + 4]
test eax, eax
jne 0x100f44a1
lea ecx, [ebp - 0x5c]
call fcn.101393c0
mov eax, dword [ebp - 0x20]
cmp eax, 0xf
jbe 0x100f4519
mov edi, dword [ebp - 0x34]
lea esi, [eax + 1]
test edi, edi
jne 0x100f450f
test esi, esi
je 0x100f450f
push str.null_pointer_cannot_point_to_a_block_of_non_zero_size
push 0x101d467c
push edi
push 0x3b4
push 0x101d4680
push 2
call fcn.10143d00
add esp, 0x18
cmp eax, 1
jne 0x100f44f1
int3
push 0
push 0x3b4
push str.C:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.40.33807includexmemory
push 0x101d47ac
push str._null_pointer_cannot_point_to_a_block_of_non_zero_size_
call fcn.10152640
add esp, 0x14
push esi
push edi
call fcn.10048760
add esp, 8
mov eax, dword [ebp - 0x38]
push 8
push eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
call fcn.1013c8d0
add esp, 8
cmp byte [ebp - 0x55], 0
je 0x100f4771
movaps xmm0, xmmword [0x101ddd80]
xor ecx, ecx
push dword [0x10297f68]
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0x502a0616
mov dword [ebp - 0x24], 0xd115b11
mov word [ebp - 0x20], 1
mov al, byte [ebp + ecx - 0x37]
xor al, byte [ebp - 0x38]
mov byte [ebp + ecx - 0x37], al
inc ecx
cmp ecx, 0x18
jb 0x100f4571
sub esp, 0x1c
mov byte [ebp - 0x1f], 0
mov edx, esp
lea ecx, [ebp - 0x37]
xorps xmm0, xmm0
lea esi, [ecx + 1]
mov dword [edx], 0
movups xmmword [edx + 4], xmm0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100f45b0
sub ecx, esi
lea eax, [ebp - 0x37]
push ecx
push eax
mov ecx, edx
call fcn.100484d0
lea eax, [ebp - 0x54]
push eax
call fcn.10052ec0
mov esi, eax
add esp, 0x24
cmp esi, 0x102c9bf4
je 0x100f45f0
mov ecx, 0x102c9bf4
call fcn.100477d0
push esi
mov ecx, 0x102c9bf4
call fcn.10047a50
lea ecx, [ebp - 0x54]
call fcn.100477d0
mov eax, dword [ebp - 0x54]
push 8
push eax
mov dword [ebp - 0x54], 0
call fcn.1013c8d0
mov eax, dword [0x102c9a2c]
add esp, 8
cmp dword [eax + 0x18], 0xf
lea ecx, [eax + 4]
jbe 0x100f461d
mov ecx, dword [ecx]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 1
push 1
push ecx
call esi
cmp dword [0x102c9c0c], 0xf
mov ecx, 0x102c9bf8
push 0
cmova ecx, dword [0x102c9bf8]
mov edi, eax
push 0x80
push 4
push 0
push 1
push 2
push ecx
mov dword [ebp - 0x68], edi
call esi
mov esi, eax
mov dword [ebp - 0x64], esi
cmp edi, 0xffffffff
je 0x100f475f
cmp esi, 0xffffffff
je 0x100f475b
lea eax, [ebp - 0x70]
mov byte [ebp - 0x5c], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov esi, dword [ebp - 0x70]
and esi, 0x80000001
jns 0x100f4695
dec esi
or esi, 0xfffffffe
inc esi
neg esi
sbb esi, esi
add esi, 0x20
push esi
call fcn.10158830
mov edi, eax
add esp, 4
test edi, edi
je 0x100f4755
push 0
lea eax, [ebp - 0x60]
push eax
push 4
push edi
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100f46d8
push 0
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x60]
push edi
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push 0
push edi
call fcn.1013f8f0
add esp, 0xc
mov dword [ebp - 0x60], 0
nop dword [eax + eax]
push 0
lea eax, [ebp - 0x60]
push eax
push esi
push edi
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100f4746
mov eax, dword [ebp - 0x5c]
mov ecx, 1
cmp dword [ebp - 0x60], esi
movzx eax, al
cmovb eax, ecx
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x60]
push eax
push edi
push 0
push ecx
push 0
push dword [0x10297f54]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x100f4746
push 0
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x60]
push edi
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [ebp - 0x5c], 0
je 0x100f46f0
push edi
call fcn.10156e30
add esp, 4
mov esi, dword [ebp - 0x64]
mov edi, dword [ebp - 0x68]
test edi, edi
je 0x100f4766
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x100f4771
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1013c8c0
mov esp, ebp
pop ebp
ret
call fcn.10047e80
int3