Function at 0x401f50
Capabilities:
Encode data using xor
Encrypt data using blowfish
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, 0xc
sub eax, 0x5ad114
mov dword [ebp - 8], eax
push ebx
mov eax, 0x10
sub eax, 0x5ad114
push esi
mov dword [ebp - 4], eax
mov ebx, 8
push edi
mov eax, 0x14
xor edi, edi
sub ebx, 0x5ad114
mov esi, ecx
sub eax, 0x5ad114
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], eax
mov ecx, dword [esi]
mov eax, dword [edi + 0x5ad110]
mov dword [edi + ecx], eax
mov ecx, dword [esi]
mov eax, dword [edi + 0x5ad114]
mov dword [edi + ecx + 4], eax
mov ecx, dword [esi]
mov eax, dword [edi + 0x5ad118]
lea edx, [ebx + 0x5ad114]
add edx, edi
mov dword [edx + ecx], eax
mov eax, dword [ebp - 8]
mov ecx, dword [esi]
lea edx, [eax + 0x5ad114]
mov eax, dword [edi + 0x5ad11c]
add edx, edi
mov dword [edx + ecx], eax
mov eax, dword [ebp - 4]
mov ecx, dword [esi]
lea edx, [eax + 0x5ad114]
mov eax, dword [edi + 0x5ad120]
add edx, edi
mov dword [edx + ecx], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [esi]
lea edx, [eax + 0x5ad114]
mov eax, dword [edi + 0x5ad124]
add edx, edi
add edi, 0x18
mov dword [edx + ecx], eax
cmp edi, 0x48
jl 0x401f92
mov edx, 8
sub edx, 0x5ad15c
mov dword [ebp - 8], edx
xor edi, edi
jmp 0x402020
lea ebx, [edi + 0xc]
mov dword [ebp - 4], 0x40
lea ebx, [ebx]
mov ecx, dword [esi + 4]
mov eax, dword [edi + 0x5ad158]
mov dword [edi + ecx], eax
mov ecx, dword [esi + 4]
mov eax, dword [edi + 0x5ad15c]
mov dword [edi + ecx + 4], eax
mov ecx, dword [esi + 4]
mov eax, dword [edi + 0x5ad160]
lea edx, [edx + 0x5ad15c]
add edx, edi
add edi, 0x10
dec dword [ebp - 4]
mov dword [edx + ecx], eax
mov ecx, dword [esi + 4]
mov eax, dword [edi + 0x5ad154]
mov edx, dword [ebp - 8]
mov dword [ebx + ecx], eax
lea ebx, [ebx + 0x10]
jne 0x402030
cmp edi, 0x1000
jl 0x402020
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
lea eax, [ebx + 1]
cdq
idiv dword [ebp + 0xc]
mov edi, dword [esi]
mov eax, dword [ebp + 8]
add edi, ecx
mov esi, dword [ebp + 8]
movzx ecx, byte [edx + eax]
movzx eax, byte [ebx + eax]
shl eax, 8
or ecx, eax
lea eax, [ebx + 2]
cdq
idiv dword [ebp + 0xc]
shl ecx, 8
movzx eax, byte [edx + esi]
or ecx, eax
lea eax, [ebx + 3]
cdq
idiv dword [ebp + 0xc]
shl ecx, 8
movzx eax, byte [edx + esi]
or ecx, eax
lea eax, [ebx + 4]
cdq
idiv dword [ebp + 0xc]
xor dword [edi], ecx
mov ecx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
add ecx, 4
mov dword [ebp - 8], ecx
mov ebx, edx
cmp ecx, 0x48
jl 0x402086
mov dword [ebp + 0xc], 0
mov dword [ebp + 8], 0
xor edi, edi
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
call fcn.00401a70
mov ecx, dword [esi]
mov eax, dword [ebp + 0xc]
mov dword [edi + ecx], eax
mov ecx, dword [esi]
mov eax, dword [ebp + 8]
mov dword [edi + ecx + 4], eax
add edi, 8
cmp edi, 0x48
jl 0x4020f0
xor edi, edi
lea ebx, [ebx]
mov ebx, 0x80
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
call fcn.00401a70
mov ecx, dword [esi + 4]
mov eax, dword [ebp + 0xc]
mov dword [edi + ecx], eax
mov ecx, dword [esi + 4]
mov eax, dword [ebp + 8]
mov dword [edi + ecx + 4], eax
add edi, 8
dec ebx
jne 0x402125
cmp edi, 0x1000
jl 0x402120
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8