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

Disassembly:
sub esp, 0x30
mov eax, ecx
xor ecx, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov edx, dword [eax]
cmp dword [eax + 0x10], ecx
jle 0x439ba1
push ebx
push ebp
push esi
push edi
nop
mov eax, dword [eax + 0x18]
mov edi, edx
lea edx, [edx + eax*4]
mov eax, dword [edi]
dec eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x439b81
mov eax, dword [esp + 0x2c]
add edi, 4
mov ebp, dword [esp + 0x44]
xor esi, esi
mov edx, dword [eax + 8]
mov ebx, dword [edi]
add edx, ecx
mov ecx, dword [ebp]
mov dword [esp + 0x20], ebx
mov eax, dword [ecx + 0xc]
imul eax, edx
sub edx, dword [ebp + 0x10]
add eax, dword [ecx]
mov ecx, dword [ebp + 4]
mov dword [ebp + 0x14], eax
mov eax, edx
cdq
idiv dword [ecx + 0x18]
imul edx, dword [ecx + 0xc]
add edx, dword [ecx]
sub dword [esp + 0x1c], 1
mov dword [ebp + 0x18], edx
js 0x439a65
mov eax, dword [edi + 4]
add edi, 8
mov dword [esp + 0x18], eax
mov dword [esp + 0x3c], edi
mov eax, dword [edi]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x38], eax
cdq
and edx, 0xff
lea ebx, [edx + eax]
mov eax, edi
cdq
and edx, 0xff
sar ebx, 8
mov dword [esp + 0x14], ebx
lea ecx, [edx + eax]
sar ecx, 8
cmp ebx, ecx
jne 0x439791
mov ebx, dword [esp + 0x38]
mov eax, ebx
sub eax, edi
imul eax, dword [esp + 0x18]
add esi, eax
jmp 0x439a52
mov eax, dword [esp + 0x20]
mov edx, 0x100
movzx eax, al
sub edx, eax
imul edx, dword [esp + 0x18]
lea eax, [esi + edx]
cdq
and edx, 0xff
add edx, eax
sar edx, 8
test edx, edx
jle 0x4398bc
mov eax, dword [ebp]
mov esi, dword [ebp + 4]
mov ebx, dword [ebp + 8]
mov edi, dword [eax + 0x10]
mov eax, dword [ebp + 0x14]
imul edi, ecx
add edi, eax
mov eax, ecx
sub eax, dword [ebp + 0xc]
mov dword [esp + 0x20], edi
mov edi, dword [edi]
cmp edx, 0xff
jge 0x4397e8
imul ebx, edx
sar ebx, 8
cdq
idiv dword [esi + 0x14]
imul edx, dword [esi + 0x10]
mov esi, 0x100
add edx, dword [ebp + 0x18]
movzx eax, byte [edx + 1]
movzx ebp, byte [edx + 2]
or eax, 0xff0000
imul eax, ebx
shl ebp, 0x10
shr eax, 8
and eax, 0xff00ff
mov dword [esp + 0x34], eax
shr eax, 0x10
sub esi, eax
movzx eax, byte [edx]
or ebp, eax
mov eax, edi
and eax, 0xff00ff
shr edi, 8
imul eax, esi
and edi, 0xff00ff
imul edi, esi
mov esi, 0x100
imul ebp, ebx
mov ebx, dword [esp + 0x34]
shr eax, 8
and eax, 0xff00ff
shr edi, 8
shr ebp, 8
and edi, 0xff00ff
add ebx, edi
and ebp, 0xff00ff
add ebp, eax
mov eax, ebx
shr eax, 8
mov edx, ebp
and eax, 0xff00ff
shr edx, 8
sub esi, eax
and edx, 0xff00ff
mov eax, ebx
shl esi, 8
shl eax, 8
or esi, eax
mov eax, 0x100
sub eax, edx
mov edx, 0x100
or eax, ebp
mov ebp, dword [esp + 0x44]
xor esi, eax
mov eax, ebx
shr eax, 8
and esi, 0xff00ff
and eax, 0xff00ff
shl ebx, 8
sub edx, eax
mov eax, dword [esp + 0x20]
shl edx, 8
or edx, ebx
mov ebx, dword [esp + 0x14]
xor esi, edx
mov dword [eax], esi
mov edx, dword [esp + 0x18]
test edx, edx
jle 0x439a48
inc ecx
sub ebx, ecx
mov dword [esp + 0x14], ebx
test ebx, ebx
jle 0x439a48
mov eax, dword [ebp]
mov eax, dword [eax + 0x10]
mov edi, eax
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 8]
imul edi, ecx
sub ecx, dword [ebp + 0xc]
imul eax, edx
add edi, dword [ebp + 0x14]
mov dword [esp + 0x30], edi
sar eax, 8
mov dword [esp + 0x20], eax
cmp eax, 0xfe
jge 0x439a00
mov esi, dword [ebp + 4]
mov eax, ecx
cdq
inc ecx
mov edi, dword [edi]
idiv dword [esi + 0x14]
mov esi, dword [esi + 0x10]
imul esi, edx
mov edx, 0x100
add esi, dword [ebp + 0x18]
movzx ebp, byte [esi + 1]
movzx ebx, byte [esi + 2]
or ebp, 0xff0000
imul ebp, dword [esp + 0x20]
shl ebx, 0x10
shr ebp, 8
and ebp, 0xff00ff
mov eax, ebp
shr eax, 0x10
sub edx, eax
movzx eax, byte [esi]
or ebx, eax
mov esi, 0x100
imul ebx, dword [esp + 0x20]
mov eax, edi
and eax, 0xff00ff
shr edi, 8
imul eax, edx
and edi, 0xff00ff
imul edi, edx
shr ebx, 8
and ebx, 0xff00ff
shr eax, 8
and eax, 0xff00ff
shr edi, 8
add ebx, eax
and edi, 0xff00ff
add ebp, edi
mov edx, ebx
mov edi, dword [esp + 0x30]
mov eax, ebp
shr eax, 8
and eax, 0xff00ff
shr edx, 8
sub esi, eax
and edx, 0xff00ff
shl esi, 8
mov eax, ebp
shl eax, 8
or esi, eax
mov eax, 0x100
sub eax, edx
mov edx, 0x100
or eax, ebx
xor esi, eax
mov eax, ebp
shr eax, 8
and esi, 0xff00ff
and eax, 0xff00ff
shl ebp, 8
sub edx, eax
mov eax, dword [esp + 0x14]
shl edx, 8
dec eax
or edx, ebp
mov dword [esp + 0x14], eax
mov ebp, dword [esp + 0x44]
xor esi, edx
mov dword [edi], esi
add edi, dword [esp + 0x34]
mov dword [esp + 0x30], edi
test eax, eax
jg 0x439908
jmp 0x439a44
mov esi, dword [ebp + 4]
mov eax, ecx
cdq
dec ebx
inc ecx
idiv dword [esi + 0x14]
mov esi, dword [esi + 0x10]
imul esi, edx
add esi, dword [ebp + 0x18]
mov ax, word [esi]
movzx edx, byte [esi + 2]
or edx, 0xffffff00
mov word [esp + 0x10], ax
movzx eax, byte [esp + 0x11]
shl edx, 8
or edx, eax
movzx eax, byte [esp + 0x10]
shl edx, 8
or edx, eax
mov dword [edi], edx
add edi, dword [esp + 0x34]
test ebx, ebx
jg 0x439a00
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x38]
movzx esi, bl
imul esi, edx
sub dword [esp + 0x1c], 1
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x20], ebx
jns 0x439741
mov eax, esi
cdq
and edx, 0xff
lea esi, [edx + eax]
sar esi, 8
test esi, esi
jle 0x439b7d
mov ecx, dword [ebp]
mov eax, ebx
cdq
and edx, 0xff
mov edi, dword [ebp + 8]
add eax, edx
mov edx, dword [ebp + 0x14]
mov ebx, dword [ecx + 0x10]
mov ecx, dword [ebp + 4]
sar eax, 8
imul ebx, eax
sub eax, dword [ebp + 0xc]
add ebx, edx
cdq
idiv dword [ecx + 0x14]
mov dword [esp + 0x20], ebx
imul edx, dword [ecx + 0x10]
mov ecx, 0x100
add edx, dword [ebp + 0x18]
movzx ebp, byte [edx + 1]
or ebp, 0xff0000
cmp esi, 0xff
jge 0x439acd
imul edi, esi
sar edi, 8
mov esi, dword [ebx]
movzx ebx, byte [edx + 2]
imul ebp, edi
shl ebx, 0x10
shr ebp, 8
and ebp, 0xff00ff
mov eax, ebp
shr eax, 0x10
sub ecx, eax
movzx eax, byte [edx]
or ebx, eax
mov edx, 0x100
mov eax, esi
imul ebx, edi
and eax, 0xff00ff
shr esi, 8
imul eax, ecx
and esi, 0xff00ff
imul esi, ecx
shr ebx, 8
and ebx, 0xff00ff
shr eax, 8
and eax, 0xff00ff
shr esi, 8
add ebx, eax
and esi, 0xff00ff
add ebp, esi
mov ecx, ebx
mov eax, ebp
shr ecx, 8
shr eax, 8
and ecx, 0xff00ff
and eax, 0xff00ff
sub edx, eax
mov eax, ebp
shl eax, 8
shl edx, 8
or edx, eax
mov eax, 0x100
sub eax, ecx
mov ecx, 0x100
or eax, ebx
xor edx, eax
mov eax, ebp
shr eax, 8
and edx, 0xff00ff
and eax, 0xff00ff
shl ebp, 8
sub ecx, eax
mov eax, dword [esp + 0x20]
shl ecx, 8
or ecx, ebp
xor edx, ecx
mov dword [eax], edx
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x28], eax
cmp eax, dword [ecx + 0x10]
mov ecx, eax
mov eax, dword [esp + 0x2c]
jl 0x4396e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 4