Function at 0x1000a6e7
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 [0x1008a084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x10092e6c]
xor ebx, ebx
push edi
cmp dword [esi + 0x10], ebx
je 0x1000a90c
mov ecx, esi
call fcn.1000a55e
test al, al
jne 0x1000a90c
mov cl, 0x6c
mov dword [ebp - 0x18], 0x1f08426c
mov word [ebp - 0x14], 0x18
mov edx, ebx
xor cl, byte [ebp + edx - 0x17]
mov byte [ebp + edx - 0x17], cl
inc edx
cmp edx, 4
jae 0x1000a73e
mov cl, byte [ebp - 0x18]
jmp 0x1000a72b
push ecx
lea eax, [ebp - 0x17]
mov byte [ebp - 0x13], bl
push eax
call fcn.1000abcd
cmp eax, 0xffffffff
je 0x1000a906
movaps xmm0, xmmword [0x100806b0]
mov ecx, ebx
push dword [0x1008eb30]
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0x494a4a1b
mov dword [ebp - 0x24], 0x541e5f25
mov dword [ebp - 0x20], 0xe0e1d
mov al, byte [ebp - 0x38]
xor byte [ebp + ecx - 0x37], al
inc ecx
cmp ecx, 0x1a
jb 0x1000a77c
sub esp, 0x18
mov byte [ebp - 0x1d], bl
lea eax, [ebp - 0x37]
mov ecx, esp
push eax
call fcn.1000289a
lea eax, [ebp - 0x50]
push eax
call fcn.10007288
add esp, 0x20
mov edi, 0x10092e70
mov ecx, edi
push eax
call fcn.100046b8
xor eax, eax
lea ecx, [ebp - 0x50]
push ebx
inc eax
push eax
call fcn.1000274f
mov eax, dword [0x10092e6c]
cmp dword [eax + 0x14], 0x10
jb 0x1000a7cd
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
mov ebx, 0x80
push ebx
push 3
push 0
push 3
push 0x80000000
push eax
call esi
cmp dword [0x10092e84], 0x10
push 0
cmovae edi, dword [0x10092e70]
push ebx
push 2
push 0
push 2
push 0x40000000
push edi
mov dword [ebp - 0x1c], eax
call esi
mov ebx, eax
mov eax, dword [ebp - 0x1c]
cmp eax, 0xffffffff
je 0x1000a8f0
cmp ebx, 0xffffffff
je 0x1000a8f0
lea ecx, [ebp - 0x10]
mov byte [ebp - 0x18], 0
push ecx
push eax
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 fcn.10052d9e
mov esi, eax
pop ecx
test esi, esi
je 0x1000a8ed
push 0
lea eax, [ebp - 8]
push eax
push 4
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000a87e
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
push esi
call fcn.1004d6e0
add esp, 0xc
and dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push edi
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000a8e0
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 8], edi
push 1
pop ecx
movzx eax, al
cmovb eax, ecx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
push eax
push esi
push 0
push ecx
push 0
push dword [0x1008eb34]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x1000a8e0
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [ebp - 0x18], 0
je 0x1000a88e
push esi
call fcn.10052937
pop ecx
mov eax, dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1000a8fd
push eax
call esi
test ebx, ebx
je 0x1000a920
push ebx
call esi
jmp 0x1000a920
mov esi, dword [0x10092e6c]
mov edi, 0x10092e70
cmp esi, edi
je 0x1000a920
push 0xffffffffffffffff
push ebx
push esi
mov ecx, edi
call fcn.10002520
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100350f5
mov esp, ebp
pop ebp
ret