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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [ebp + 4]
xor eax, dword [0x66d060]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
cmp eax, 1
jb 0x4385d1
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
cmp eax, 0x80
jbe 0x4385e8
mov eax, dword [ebp - 4]
mov eax, dword [ebp + 4]
xor eax, dword [ebp - 4]
mov ecx, eax
call fcn.0055337c
mov eax, 9
leave
ret
mov eax, dword [ebp + 0x10]
cmp eax, 1
jb 0x4385fa
mov eax, dword [ebp + 0x10]
cmp eax, 0x400
jbe 0x438611
mov eax, dword [ebp - 4]
mov eax, dword [ebp + 4]
xor eax, dword [ebp - 4]
mov ecx, eax
call fcn.0055337c
mov eax, 9
leave
ret
add esp, 0xfffffff4
lea eax, [ebp - 0x94]
mov dword [esp], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [esp + 8], eax
call fcn.005c46dd
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, 0x80
jge 0x43868c
mov eax, dword [ebp - 0x14]
movzx eax, byte [ebp + eax - 0x95]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 4]
neg edx
add edx, dword [ebp - 0x14]
movzx edx, byte [ebp + edx - 0x94]
add eax, edx
movzx eax, al
mov edx, dword [ebp - 0x14]
movzx eax, byte [eax + 0x672100]
mov byte [ebp + edx - 0x94], al
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, 0x80
jl 0x43864b
mov eax, dword [ebp + 0x10]
add eax, 7
shr eax, 3
mov dword [ebp - 0x10], eax
mov eax, 0xff
mov edx, dword [ebp + 0x10]
add edx, 7
and edx, 7
neg edx
add edx, 7
mov ecx, edx
sar eax, cl
mov byte [ebp - 0xc], al
mov eax, dword [ebp - 0x10]
neg eax
movzx eax, byte [ebp + eax - 0x14]
movzx eax, al
movzx edx, byte [ebp - 0xc]
movzx edx, dl
and eax, edx
mov edx, dword [ebp - 0x10]
neg edx
movzx eax, byte [eax + 0x672100]
mov byte [ebp + edx - 0x14], al
mov eax, dword [ebp - 0x10]
neg eax
add eax, 0x7f
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x438723
mov eax, dword [ebp - 0x14]
movzx eax, byte [ebp + eax - 0x93]
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x14]
movzx edx, byte [ebp + edx - 0x94]
xor eax, edx
movzx eax, al
mov edx, dword [ebp - 0x14]
movzx eax, byte [eax + 0x672100]
mov byte [ebp + edx - 0x94], al
dec dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
test eax, eax
jge 0x4386ea
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
cmp eax, 0x40
jge 0x438771
mov eax, dword [ebp - 8]
movzx eax, byte [ebp + eax - 0x93]
movzx eax, al
shl eax, 8
mov edx, dword [ebp - 8]
movzx edx, byte [ebp + edx - 0x94]
movzx edx, dl
add eax, edx
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov dword [ecx + edx*4], eax
inc dword [ebp - 0x14]
mov eax, dword [ebp - 8]
add eax, 2
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
cmp eax, 0x40
jl 0x438733
add esp, 0xfffffff4
lea eax, [ebp - 0x94]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0x80
call fcn.005c46e7
add esp, 0xc
mov eax, dword [ebp - 4]
mov eax, dword [ebp + 4]
xor eax, dword [ebp - 4]
mov ecx, eax
call fcn.0055337c
xor eax, eax
leave
ret