Function at 0x1000ddea
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, 0x54
mov eax, dword [0x1009a078]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x18], 0x10
push ebx
push esi
push edi
lea esi, [ecx + 4]
jb 0x1000de09
mov esi, dword [ecx + 4]
push esi
call fcn.10001f4d
pop ecx
push eax
push esi
mov esi, 0x1009bd10
mov ecx, esi
call fcn.10001ed4
cmp dword [0x1009bd20], 0
mov ebx, 0x1009ebd8
je 0x1000e037
push ebx
mov ecx, esi
call fcn.1000d739
test eax, eax
je 0x1000e037
mov cl, 0x6a
mov dword [ebp - 0x18], 0x190e446a
mov word [ebp - 0x14], 0x1e
xor eax, eax
xor byte [ebp + eax - 0x17], cl
inc eax
cmp eax, 4
jae 0x1000de60
mov cl, byte [ebp - 0x18]
jmp 0x1000de51
lea eax, [ebp - 0x17]
mov byte [ebp - 0x13], 0
push eax
call fcn.10001f4d
pop ecx
push eax
push ecx
lea eax, [ebp - 0x17]
mov ecx, esi
push eax
call fcn.10003e2a
cmp eax, 0xffffffff
je 0x1000e037
movaps xmm0, xmmword [0x1008ed00]
xor ecx, ecx
push dword [0x1009e740]
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0x595a5a0b
mov dword [ebp - 0x24], 0x440e4f35
mov dword [ebp - 0x20], 0x1e1e0d
mov al, byte [ebp - 0x38]
xor byte [ebp + ecx - 0x37], al
inc ecx
cmp ecx, 0x1a
jb 0x1000deac
sub esp, 0x18
mov byte [ebp - 0x1d], 0
lea eax, [ebp - 0x37]
mov ecx, esp
push eax
call fcn.10001f6a
lea eax, [ebp - 0x50]
push eax
call fcn.10007414
add esp, 0x20
mov ecx, ebx
push eax
call fcn.10003ac6
xor eax, eax
lea ecx, [ebp - 0x50]
push 0
inc eax
push eax
call fcn.10001e1f
cmp dword [0x1009bd24], 0x10
push 0
cmovae esi, dword [0x1009bd10]
push 0x80
push 3
push 0
push 3
push connect
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
call esi
cmp dword [0x1009ebec], 0x10
mov edi, eax
push 0
cmovae ebx, dword [0x1009ebd8]
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 0x1000e021
cmp ebx, 0xffffffff
je 0x1000e021
lea eax, [ebp - 0x10]
mov byte [ebp - 0x18], 0
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 esi, cl
neg esi
sbb esi, esi
add esi, 0x20
push esi
call fcn.10062f1f
mov edi, eax
pop ecx
test edi, edi
je 0x1000e01e
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 0x1000dfaf
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 fcn.1005ddd0
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 0x1000e011
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 [0x1009e744]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x1000e011
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 0x1000dfbf
push edi
call fcn.10061592
pop ecx
mov edi, dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x1000e02e
push edi
call esi
test ebx, ebx
je 0x1000e043
push ebx
call esi
jmp 0x1000e043
push 0xffffffffffffffff
push 0
push esi
mov ecx, ebx
call fcn.10001bf0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100454d5
mov esp, ebp
pop ebp
ret