Function at 0xa6440
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1ec
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0xf6233b4a
call fcn.00094970
add esp, 4
lea ecx, [ebp - 0x2c]
push eax
push esi
push ecx
call fcn.0009fce0
add esp, 0xc
mov eax, dword [ebp - 0x2c]
mov esi, edi
not esi
mov dword [ebp - 0x10], eax
push 0xc33814f
call fcn.00094970
add esp, 4
mov ecx, edi
and eax, esi
mov esi, edi
and ecx, 0x5ef45ea
push ecx
push eax
call fcn.00097ec0
add esp, 8
mov edi, eax
push 0xfa10ba15
push esi
call fcn.00091cc0
add esp, 8
mov ebx, edi
not ebx
push 0x2cb90567
call fcn.00094970
add esp, 4
and eax, ebx
mov dword [ebp - 0x18], eax
push 0x2cb90567
call fcn.00094970
add esp, 4
push 0xffffffffffffffff
push eax
call fcn.00091cc0
add esp, 8
mov ebx, eax
push eax
push edi
call fcn.000944d0
add esp, 8
mov esi, dword [ebp - 0x10]
mov edi, eax
mov eax, esi
not eax
push 0xda9a3e3d
push eax
call fcn.000944d0
add esp, 8
mov dword [ebp - 0x1c], eax
push ebx
push esi
call fcn.000944d0
add esp, 8
or edi, dword [ebp - 0x18]
or eax, dword [ebp - 0x1c]
mov esi, dword [ebp + 0xc]
xor eax, edi
mov dword [ebp - 0x2c], eax
xor word [ebp - 0x28], si
movzx edi, word [ebp - 0x26]
mov dword [ebp - 0x10], edi
push 0xf6233b4a
call fcn.00094970
add esp, 4
mov ecx, eax
shr esi, cl
mov dword [ebp - 0x18], esi
push 0xffff
push edi
call fcn.00094370
add esp, 8
mov esi, eax
push 0x8586
call fcn.000959f0
add esp, 4
mov edi, eax
and edi, esi
push 0x8586
call fcn.000959f0
add esp, 4
mov ebx, dword [ebp - 0x10]
mov esi, eax
not esi
and ebx, esi
or ebx, edi
push 0xffff
mov edi, dword [ebp - 0x18]
push edi
call fcn.00094370
add esp, 8
and eax, 0xffffbedc
and esi, edi
or esi, eax
xor esi, ebx
push edi
push dword [ebp - 0x10]
call fcn.00094370
add esp, 8
mov word [ebp - 0x26], si
xor edi, edi
xor esi, esi
nop
nop
movzx ebx, byte [ebp + esi - 0x24]
movzx eax, byte [ebp + edi + 0x10]
mov bh, bl
mov dword [ebp - 0x10], eax
not bh
and bh, 0x3c
push 0xff
push 0x3c
call fcn.00098320
add esp, 8
and bl, al
mov byte [ebp - 0x11], al
mov byte [ebp - 0x18], bl
push 0xff
push dword [ebp - 0x10]
call fcn.00098320
add esp, 8
mov bl, al
push 0x66
call fcn.0009a200
add esp, 4
and al, bl
mov byte [ebp - 0x1c], al
movzx eax, byte [ebp - 0x11]
push eax
push dword [ebp - 0x10]
call fcn.00095780
add esp, 8
mov bl, al
movzx eax, byte [ebp - 0x18]
movzx ecx, bh
push eax
push ecx
call fcn.00093cb0
add esp, 8
or bl, byte [ebp - 0x1c]
xor bl, al
mov byte [ebp + esi - 0x24], bl
push 1
push 0
call fcn.00093630
add esp, 8
push 1
push edi
sub edi, eax
call fcn.00095fa0
add esp, 8
push 4
push edi
call fcn.00091f70
add esp, 8
test al, 1
mov eax, 0
cmovne edi, eax
inc esi
push 0xf6233b52
call fcn.00094970
add esp, 4
cmp esi, eax
jne 0xa65a0
mov edi, dword [ebp + 0x18]
lea ebx, [ebp - 0x2c]
test edi, edi
je 0xa6690
push 0xf6233a58
call fcn.00094970
add esp, 4
lea esi, [ebp - 0x1f8]
push eax
push edi
push esi
call fcn.0009fce0
add esp, 0xc
push esi
push 0x10
push ebx
call fcn.000ab080
add esp, 0xc
mov al, byte [ebp + 0x1c]
mov edi, dword [ebp + 0x14]
cmp al, 2
je 0xa66aa
cmp al, 1
jne 0xa66d2
mov esi, 6
mov eax, 0xb0694
jmp 0xa66b4
mov esi, 7
mov eax, 0xb0db2
lea ecx, [ebp - 0xf4]
push ecx
push eax
call fcn.000940e0
add esp, 8
push esi
push eax
push edi
call fcn.00094330
add esp, 0xc
lea edi, [edi + esi*2]
push 0xd3a1832
push 0xc
call fcn.0009f200
add esp, 8
push 0x28
push edi
push ebx
call eax
add esp, 0x1ec
pop esi
pop edi
pop ebx
pop ebp
ret