Function at 0x100023d0
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
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x10010040]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
mov esi, dword [0x100107f0]
push edi
cmp dword [esi + 0x10], 0
je 0x10002664
call fcn.10002ac0
test al, al
jne 0x10002664
mov ah, 0x23
mov byte [esp + 0x11], 0
mov al, 0xd
mov byte [esp + 0xc], ah
mov cl, 0x47
mov byte [esp + 0x11], 0
xor al, ah
xor cl, ah
mov dl, 0x50
mov byte [esp + 0xd], al
mov bl, 0x57
mov byte [esp + 0xe], cl
xor dl, ah
xor bl, ah
push ecx
lea eax, [esp + 0x11]
mov byte [esp + 0x13], dl
push eax
mov byte [esp + 0x18], bl
call fcn.100029a0
cmp eax, 0xffffffff
je 0x10002664
movaps xmm0, xmmword [0x1000d4a0]
xor ecx, ecx
push dword [0x10010788]
movups xmmword [esp + 0x1c], xmm0
mov dword [esp + 0x2c], 0x26252574
mov dword [esp + 0x30], 0x3b71304a
mov dword [esp + 0x34], 0x616172
mov al, byte [esp + 0x1c]
xor byte [esp + ecx + 0x1d], al
inc ecx
cmp ecx, 0x1a
jb 0x10002474
sub esp, 0x18
mov byte [esp + 0x4f], 0
lea eax, [esp + 0x35]
mov ecx, esp
push eax
call fcn.10002e60
lea eax, [esp + 0x50]
push eax
call fcn.10002c60
add esp, 0x20
mov ecx, 0x100107f4
push eax
call fcn.10002de0
mov ecx, dword [esp + 0x48]
cmp ecx, 0xf
jbe 0x100024e6
mov edx, dword [esp + 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100024dc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100024dc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1000b2ce
add esp, 8
mov eax, dword [0x100107f0]
cmp dword [eax + 0x14], 0xf
jbe 0x100024f3
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 [0x10010808], 0xf
mov ecx, 0x100107f4
push 0
cmova ecx, dword [0x100107f4]
mov edi, eax
push 0x80
push 2
push 0
push 2
push 0x40000000
push ecx
mov dword [esp + 0x30], edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
mov dword [esp + 0xc], ebx
cmp edi, 0xffffffff
je 0x10002648
cmp ebx, 0xffffffff
je 0x10002644
lea eax, [esp + 0x50]
xor bl, bl
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor esi, esi
or esi, dword [esp + 0x50]
not esi
and esi, 1
add esi, 0x1f
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x10002636
push 0
lea eax, [esp + 0x50]
push eax
push 4
push edi
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100025b8
push 0
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x54]
push edi
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x4c], 0
nop dword [eax]
push 0
lea eax, [esp + 0x50]
push eax
push esi
push edi
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10002628
cmp dword [esp + 0x4c], esi
mov eax, 1
movzx ebx, bl
cmovb ebx, eax
lea eax, [esp + 0x4c]
push eax
push edi
push 0
push 1
push 0
push dword [0x1001078c]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x10002628
push 0
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x54]
push edi
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test bl, bl
je 0x100025d0
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0xc]
mov edi, dword [esp + 0x14]
test edi, edi
je 0x1000264b
push edi
call esi
test ebx, ebx
je 0x10002683
push ebx
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.1000b2c0
mov esp, ebp
pop ebp
ret
cmp esi, 0x100107f4
je 0x10002683
cmp dword [esi + 0x14], 0xf
mov eax, dword [esi + 0x10]
jbe 0x10002677
mov esi, dword [esi]
push eax
push esi
mov ecx, 0x100107f4
call fcn.100020c0
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000b2c0
mov esp, ebp
pop ebp
ret