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

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
push 0x48
mov esi, ecx
call fcn.0042403f
push 0x1000
mov dword [esi + 0xc8], eax
call fcn.0042403f
mov dword [esi + 0xcc], eax
mov eax, dword [esp + 0x24]
push 0x63
push eax
push esi
call fcn.004144f5
push esi
mov word [esi + 0xc6], 0
call fcn.004144df
mov edx, 0xc
sub edx, 0x4410a4
mov dword [esp + 0x34], edx
mov edx, 0x10
sub edx, 0x4410a4
mov dword [esp + 0x28], edx
mov ecx, 8
mov edi, eax
mov edx, 0x14
add esp, 0x18
xor eax, eax
sub ecx, 0x4410a4
sub edx, 0x4410a4
mov dword [esp + 0x14], edx
mov ebx, dword [eax + 0x4410a0]
mov edx, dword [esi + 0xc8]
mov dword [eax + edx], ebx
mov ebx, dword [eax + 0x4410a4]
mov edx, dword [esi + 0xc8]
mov dword [eax + edx + 4], ebx
mov ebp, dword [eax + 0x4410a8]
mov ebx, dword [esi + 0xc8]
lea edx, [ecx + eax + 0x4410a4]
mov dword [edx + ebx], ebp
mov ebp, dword [eax + 0x4410ac]
mov ebx, dword [esi + 0xc8]
mov edx, dword [esp + 0x1c]
lea edx, [edx + eax + 0x4410a4]
mov dword [edx + ebx], ebp
mov ebp, dword [eax + 0x4410b0]
mov edx, dword [esp + 0x10]
mov ebx, dword [esi + 0xc8]
lea edx, [edx + eax + 0x4410a4]
mov dword [edx + ebx], ebp
mov edx, dword [esp + 0x14]
mov ebp, dword [eax + 0x4410b4]
mov ebx, dword [esi + 0xc8]
lea edx, [edx + eax + 0x4410a4]
add eax, 0x18
cmp eax, 0x48
mov dword [edx + ebx], ebp
jl 0x401831
mov eax, 8
sub eax, 0x4410ec
mov dword [esp + 0x1c], eax
xor eax, eax
lea ecx, [eax + 0xc]
mov edx, 0x40
jmp 0x4018e0
mov ebp, dword [eax + 0x4410e8]
mov ebx, dword [esi + 0xcc]
mov dword [eax + ebx], ebp
mov ebp, dword [eax + 0x4410ec]
mov ebx, dword [esi + 0xcc]
mov dword [ebx + eax + 4], ebp
mov ebx, dword [esi + 0xcc]
add ebx, dword [esp + 0x1c]
mov ebp, dword [eax + 0x4410f0]
mov dword [ebx + eax + 0x4410ec], ebp
mov ebp, dword [eax + 0x4410f4]
mov ebx, dword [esi + 0xcc]
mov dword [ecx + ebx], ebp
add eax, 0x10
add ecx, 0x10
dec edx
jne 0x4018e0
cmp eax, 0x1000
jl 0x4018d0
xor ebp, ebp
xor ecx, ecx
lea esp, [esp]
mov eax, dword [esi + 0xc8]
lea edx, [ecx + eax]
mov dword [esp + 0x1c], edx
lea eax, [ebp + 1]
cdq
idiv edi
movzx eax, word [esi + ebp*2]
shl eax, 8
xor ebx, ebx
mov bl, byte [esi + edx*2]
and ebx, 0xff
or ebx, eax
lea eax, [ebp + 2]
cdq
idiv edi
shl ebx, 8
lea eax, [ebp + 3]
movzx edx, byte [esi + edx*2]
and edx, 0xff
or ebx, edx
cdq
idiv edi
xor eax, eax
shl ebx, 8
mov al, byte [esi + edx*2]
and eax, 0xff
or ebx, eax
mov eax, dword [esp + 0x1c]
xor dword [eax], ebx
lea eax, [ebp + 4]
cdq
idiv edi
xor ebx, ebx
mov ebp, edx
mov edx, dword [esi + 0xc8]
lea eax, [ecx + edx + 4]
mov dword [esp + 0x1c], eax
lea eax, [ebp + 1]
cdq
idiv edi
lea eax, [ebp + 2]
mov bl, byte [esi + edx*2]
movzx edx, word [esi + ebp*2]
shl edx, 8
and ebx, 0xff
or ebx, edx
cdq
idiv edi
xor eax, eax
shl ebx, 8
mov al, byte [esi + edx*2]
and eax, 0xff
or ebx, eax
lea eax, [ebp + 3]
cdq
idiv edi
mov eax, dword [esp + 0x1c]
shl ebx, 8
movzx edx, byte [esi + edx*2]
and edx, 0xff
or ebx, edx
xor dword [eax], ebx
lea eax, [ebp + 4]
cdq
idiv edi
mov eax, dword [esi + 0xc8]
xor ebx, ebx
mov ebp, edx
lea edx, [ecx + eax + 8]
mov dword [esp + 0x1c], edx
lea eax, [ebp + 1]
cdq
idiv edi
movzx eax, word [esi + ebp*2]
mov bl, byte [esi + edx*2]
and ebx, 0xff
shl eax, 8
or ebx, eax
lea eax, [ebp + 2]
cdq
idiv edi
shl ebx, 8
lea eax, [ebp + 3]
add ecx, 0xc
movzx edx, byte [esi + edx*2]
and edx, 0xff
or ebx, edx
cdq
idiv edi
xor eax, eax
shl ebx, 8
mov al, byte [esi + edx*2]
and eax, 0xff
or ebx, eax
mov eax, dword [esp + 0x1c]
xor dword [eax], ebx
lea eax, [ebp + 4]
cdq
idiv edi
cmp ecx, 0x48
mov ebp, edx
jl 0x401940
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], ebx
xor edi, edi
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.00401020
mov eax, dword [esi + 0xc8]
mov ecx, dword [esp + 0x1c]
mov dword [edi + eax], ecx
mov edx, dword [esi + 0xc8]
mov eax, dword [esp + 0x10]
mov dword [edi + edx + 4], eax
add edi, 8
cmp edi, 0x48
jl 0x401a77
xor edi, edi
lea ecx, [ecx]
mov ebx, 0x80
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.00401020
mov eax, dword [esi + 0xcc]
mov ecx, dword [esp + 0x1c]
mov dword [edi + eax], ecx
mov edx, dword [esi + 0xcc]
mov eax, dword [esp + 0x10]
mov dword [edx + edi + 4], eax
add edi, 8
dec ebx
jne 0x401ab5
cmp edi, 0x1000
jl 0x401ab0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4