Function at 0x6e5840
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.006d3d70
add esp, 4
lea ecx, [ebp - 0x2c]
push eax
push esi
push ecx
call fcn.006df0e0
add esp, 0xc
mov eax, dword [ebp - 0x2c]
mov esi, edi
not esi
mov dword [ebp - 0x10], eax
push 0xc33814f
call fcn.006d3d70
add esp, 4
mov ecx, edi
and eax, esi
mov esi, edi
and ecx, 0x5ef45ea
push ecx
push eax
call fcn.006d72c0
add esp, 8
mov edi, eax
push 0xfa10ba15
push esi
call fcn.006d10c0
add esp, 8
mov ebx, edi
not ebx
push 0x2cb90567
call fcn.006d3d70
add esp, 4
and eax, ebx
mov dword [ebp - 0x18], eax
push 0x2cb90567
call fcn.006d3d70
add esp, 4
push 0xffffffffffffffff
push eax
call fcn.006d10c0
add esp, 8
mov ebx, eax
push eax
push edi
call fcn.006d38d0
add esp, 8
mov esi, dword [ebp - 0x10]
mov edi, eax
mov eax, esi
not eax
push 0xda9a3e3d
push eax
call fcn.006d38d0
add esp, 8
mov dword [ebp - 0x1c], eax
push ebx
push esi
call fcn.006d38d0
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.006d3d70
add esp, 4
mov ecx, eax
shr esi, cl
mov dword [ebp - 0x18], esi
push 0xffff
push edi
call fcn.006d3770
add esp, 8
mov esi, eax
push 0x8586
call fcn.006d4df0
add esp, 4
mov edi, eax
and edi, esi
push 0x8586
call fcn.006d4df0
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.006d3770
add esp, 8
and eax, 0xffffbedc
and esi, edi
or esi, eax
xor esi, ebx
push edi
push dword [ebp - 0x10]
call fcn.006d3770
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.006d7720
add esp, 8
and bl, al
mov byte [ebp - 0x11], al
mov byte [ebp - 0x18], bl
push 0xff
push dword [ebp - 0x10]
call fcn.006d7720
add esp, 8
mov bl, al
push 0x66
call fcn.006d9600
add esp, 4
and al, bl
mov byte [ebp - 0x1c], al
movzx eax, byte [ebp - 0x11]
push eax
push dword [ebp - 0x10]
call fcn.006d4b80
add esp, 8
mov bl, al
movzx eax, byte [ebp - 0x18]
movzx ecx, bh
push eax
push ecx
call fcn.006d30b0
add esp, 8
or bl, byte [ebp - 0x1c]
xor bl, al
mov byte [ebp + esi - 0x24], bl
push 1
push 0
call fcn.006d2a30
add esp, 8
push 1
push edi
sub edi, eax
call fcn.006d53a0
add esp, 8
push 4
push edi
call fcn.006d1370
add esp, 8
test al, 1
mov eax, 0
cmovne edi, eax
inc esi
push 0xf6233b52
call fcn.006d3d70
add esp, 4
cmp esi, eax
jne 0x6e59a0
mov edi, dword [ebp + 0x18]
lea ebx, [ebp - 0x2c]
test edi, edi
je 0x6e5a90
push 0xf6233a58
call fcn.006d3d70
add esp, 4
lea esi, [ebp - 0x1f8]
push eax
push edi
push esi
call fcn.006df0e0
add esp, 0xc
push esi
push 0x10
push ebx
call fcn.006ea480
add esp, 0xc
mov al, byte [ebp + 0x1c]
mov edi, dword [ebp + 0x14]
cmp al, 2
je 0x6e5aaa
cmp al, 1
jne 0x6e5ad2
mov esi, 6
mov eax, 0x6f0694
jmp 0x6e5ab4
mov esi, 7
mov eax, 0x6f0db2
lea ecx, [ebp - 0xf4]
push ecx
push eax
call fcn.006d34e0
add esp, 8
push esi
push eax
push edi
call fcn.006d3730
add esp, 0xc
lea edi, [edi + esi*2]
push 0xd3a1832
push 0xc
call fcn.006de600
add esp, 8
push 0x28
push edi
push ebx
call eax
add esp, 0x1ec
pop esi
pop edi
pop ebx
pop ebp
ret