Function at 0x40ee00
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3dc
push ebx
push esi
push edi
mov esi, 0x4016b0
mov dword [esp + 0x6c], ecx
lea edi, [esp + 0x58]
mov dword [esp + 0x1c], 0x807cb6b7
xor eax, eax
mov dword [esp + 0x20], 0x6deda834
mov dword [esp + 0x24], 0xf4879c6a
mov ecx, eax
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x28], 0x6d978fcd
mov dword [esp + 0x2c], 0xe75aa717
mov dword [esp + 0x30], 0xcaa0d183
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x34], 0x75471b84
mov dword [esp + 0x38], 0x96118dc3
mov dword [esp + 0x3c], 0x6487af67
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x40], 0x2d91c57
mov dword [esp + 0x44], 0x1352fbaa
movsb byte es:[edi], byte [esi]
mov edi, eax
mov byte [esp + ecx + 0xa0], cl
inc ecx
cmp ecx, 0x100
jb 0x40ee7e
mov esi, eax
xor edx, edx
mov bl, byte [esp + esi + 0xa0]
push 0xc
mov eax, esi
pop ecx
div ecx
movzx ecx, bl
movzx eax, byte [esp + edx + 0x58]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0xa0]
mov byte [esp + esi + 0xa0], al
inc esi
mov byte [esp + edi + 0xa0], bl
cmp esi, 0x100
jb 0x40ee90
xor ebx, ebx
mov edi, ebx
mov esi, ebx
lea eax, [edi + 1]
movzx edi, al
mov cl, byte [esp + edi + 0xa0]
movzx edx, cl
lea eax, [edx + ebx]
movzx ebx, al
mov al, byte [esp + ebx + 0xa0]
mov byte [esp + edi + 0xa0], al
mov byte [esp + ebx + 0xa0], cl
movzx eax, byte [esp + edi + 0xa0]
add eax, edx
movzx eax, al
mov al, byte [esp + eax + 0xa0]
xor al, byte [esp + esi + 0x1c]
mov byte [esp + esi + 0x70], al
inc esi
cmp esi, 0x2c
jb 0x40eed3
mov eax, dword [0x4016c0]
xor ebx, ebx
mov dword [esp + 0x50], eax
mov ax, word [0x4016c4]
mov word [esp + 0x54], ax
mov eax, ebx
mov byte [esp + 0x9c], bl
mov dword [esp + 0x14], 0x10ee6523
mov byte [esp + 0x18], 0x97
mov dword [esp + 0x48], ebx
mov byte [esp + eax + 0xa0], al
inc eax
cmp eax, 0x100
jb 0x40ef50
mov edi, dword [0x44d44c]
mov eax, ebx
mov esi, dword [0x44d448]
mov dword [esp + 0x10], eax
mov dword [esp + 0x4c], 5
mov cl, byte [esp + eax + 0xa0]
xor edx, edx
div dword [esp + 0x4c]
mov byte [esp + 0xf], cl
movzx ecx, cl
movzx eax, byte [esp + edx + 0x50]
add eax, dword [esp + 0x48]
add ecx, eax
movzx eax, cl
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x48], eax
mov al, byte [esp + eax + 0xa0]
mov byte [esp + ecx + 0xa0], al
mov ecx, ebx
mov eax, 0x401880
inc ecx
lea eax, [eax + 2]
cmp ecx, 0x20ef
jl 0x40efcb
cmp word [eax], bx
jne 0x40efb8
jmp 0x40efde
call fcn.0040cc68
mov edi, esi
xor edi, 0xf3487683
mov dword [0x44d44c], edi
mov esi, edi
or esi, 0xf845173a
call fcn.0040cdc3
mov eax, dword [esp + 0x48]
mov cl, byte [esp + 0xf]
mov byte [esp + eax + 0xa0], cl
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x100
jb 0x40ef79
mov dword [0x44d448], esi
mov edi, ebx
mov esi, ebx
lea eax, [edi + 1]
movzx edi, al
push 5
mov cl, byte [esp + edi + 0xa4]
movzx edx, cl
lea eax, [edx + ebx]
movzx ebx, al
mov al, byte [esp + ebx + 0xa4]
mov byte [esp + edi + 0xa4], al
mov byte [esp + ebx + 0xa4], cl
movzx eax, byte [esp + edi + 0xa4]
add eax, edx
movzx eax, al
mov al, byte [esp + eax + 0xa4]
xor al, byte [esp + esi + 0x18]
mov byte [esp + esi + 0x54], al
inc esi
pop eax
cmp esi, eax
jb 0x40f018
xor ebx, ebx
mov dword [esp + 0x58], 0x37
push 6
mov byte [esp + 0x59], bl
mov eax, ebx
pop ecx
mov dword [esp + 0x5c], 7
mov dword [esp + 0x60], 0xffffffbc
add ecx, dword [esp + eax*4 + 0x58]
inc eax
cmp eax, 3
jl 0x40f08a
push 0x5b
pop eax
push 5
mov dword [esp + 0x64], eax
mov edx, ebx
mov dword [esp + 0x68], eax
mov eax, ebx
mov dword [esp + 0x5c], 9
mov dword [esp + 0x60], 0x1f
mov dword [esp + 0x6c], 0xffffff22
pop esi
sub edx, dword [esp + eax*4 + 0x58]
inc eax
cmp eax, esi
jl 0x40f0be
push 0x3a
pop eax
mov dword [esp + 0x58], 2
mov dword [esp + 0x5c], 0x35
mov dword [esp + 0x60], 0xffffff90
add eax, dword [esp + ebx*4 + 0x58]
inc ebx
cmp ebx, 3
jl 0x40f0e2
push eax
lea eax, [esp + 0xa4]
mov dword [esp + 0xa4], 0x348
push eax
push edx
push ecx
lea ecx, [esp + 0x60]
call fcn.0041e657
mov edx, eax
lea ecx, [esp + 0x80]
call fcn.0041e636
call eax
mov ecx, dword [esp + 0x6c]
lea edx, [esp + 0xe4]
call fcn.00436ba5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret