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

Disassembly:
sub esp, 0x28
mov eax, ecx
xor ecx, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
mov edx, dword [eax]
cmp dword [eax + 0x10], ecx
jle 0x4392f9
push ebx
push ebp
mov ebp, dword [esp + 0x34]
push esi
push edi
mov eax, dword [eax + 0x18]
mov edi, edx
lea edx, [edx + eax*4]
mov eax, dword [edi]
dec eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
test eax, eax
jle 0x4392d9
mov eax, dword [esp + 0x24]
add edi, 4
xor esi, esi
mov edx, dword [eax + 8]
mov ebx, dword [edi]
add edx, ecx
mov ecx, dword [ebp]
mov dword [esp + 0x10], 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 + 0x18], 1
mov dword [ebp + 0x18], edx
js 0x4391c9
nop
mov eax, dword [edi + 4]
add edi, 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], edi
mov eax, dword [edi]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
cdq
and edx, 0xff
lea ebx, [edx + eax]
mov eax, edi
cdq
and edx, 0xff
sar ebx, 8
mov dword [esp + 0x3c], ebx
lea ecx, [edx + eax]
sar ecx, 8
cmp ebx, ecx
jne 0x438e90
mov ebx, dword [esp + 0x2c]
mov eax, ebx
sub eax, edi
imul eax, dword [esp + 0x14]
add esi, eax
jmp 0x4391b6
mov eax, dword [esp + 0x10]
mov edx, 0x100
movzx eax, al
sub edx, eax
imul edx, dword [esp + 0x14]
lea eax, [esi + edx]
cdq
and edx, 0xff
lea esi, [edx + eax]
sar esi, 8
test esi, esi
jle 0x438fb0
mov eax, dword [ebp]
mov ebx, dword [ebp + 4]
mov edx, dword [ebp + 0xc]
mov edi, dword [eax + 0x10]
mov eax, dword [ebp + 0x14]
imul edi, ecx
add edi, eax
mov eax, ecx
sub eax, edx
mov dword [esp + 0x10], edi
cdq
idiv dword [ebx + 0x14]
mov eax, dword [ebp + 0x18]
imul edx, dword [ebx + 0x10]
cmp esi, 0xff
jl 0x438efb
movzx eax, byte [edx + eax]
mov ebx, eax
shl ebx, 0x10
or ebx, eax
imul ebx, dword [ebp + 8]
jmp 0x438f12
movzx edx, byte [edx + eax]
mov ebx, dword [ebp + 8]
mov eax, edx
imul ebx, esi
shl eax, 0x10
or eax, edx
sar ebx, 8
imul ebx, eax
shr ebx, 8
mov edx, 0x100
and ebx, 0xff00ff
mov esi, 0x100
mov eax, ebx
shr eax, 0x10
sub edx, eax
mov eax, dword [edi]
mov edi, eax
shr eax, 8
and eax, 0xff00ff
and edi, 0xff00ff
imul eax, edx
imul edi, edx
shr eax, 8
and eax, 0xff00ff
shr edi, 8
and edi, 0xff00ff
add edi, ebx
add ebx, eax
mov eax, ebx
mov edx, edi
shr eax, 8
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, edi
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 + 0x10]
shl edx, 8
or edx, ebx
mov ebx, dword [esp + 0x3c]
xor esi, edx
mov dword [eax], esi
mov edx, dword [esp + 0x14]
test edx, edx
jle 0x4391ac
inc ecx
sub ebx, ecx
mov dword [esp + 0x3c], ebx
test ebx, ebx
jle 0x4391ac
mov eax, dword [ebp]
mov eax, dword [eax + 0x10]
mov edi, eax
mov dword [esp + 0x28], 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 + 0x10], edi
sar eax, 8
mov dword [esp + 0x30], eax
cmp eax, 0xfe
jge 0x4390e0
nop dword [eax]
mov esi, dword [ebp + 4]
mov eax, ecx
cdq
inc ecx
idiv dword [esi + 0x14]
mov esi, dword [esi + 0x10]
mov eax, dword [ebp + 0x18]
imul esi, edx
mov edx, 0x100
movzx eax, byte [esi + eax]
mov esi, 0x100
mov ebx, eax
shl ebx, 0x10
or ebx, eax
imul ebx, dword [esp + 0x30]
shr ebx, 8
and ebx, 0xff00ff
mov eax, ebx
shr eax, 0x10
sub edx, eax
mov eax, dword [edi]
mov edi, eax
shr eax, 8
and eax, 0xff00ff
and edi, 0xff00ff
imul eax, edx
imul edi, edx
shr eax, 8
and eax, 0xff00ff
shr edi, 8
and edi, 0xff00ff
add edi, ebx
add ebx, eax
mov eax, ebx
mov edx, edi
shr eax, 8
and eax, 0xff00ff
shr edx, 8
sub esi, eax
and edx, 0xff00ff
shl esi, 8
mov eax, ebx
shl eax, 8
or esi, eax
mov eax, 0x100
sub eax, edx
mov edx, 0x100
or eax, edi
mov edi, dword [esp + 0x10]
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 + 0x3c]
shl edx, 8
dec eax
or edx, ebx
mov dword [esp + 0x3c], eax
xor esi, edx
mov dword [edi], esi
add edi, dword [esp + 0x28]
mov dword [esp + 0x10], edi
test eax, eax
jg 0x439000
jmp 0x4391a8
mov esi, dword [ebp + 4]
mov eax, ecx
cdq
inc ecx
idiv dword [esi + 0x14]
mov esi, dword [esi + 0x10]
mov eax, dword [ebp + 0x18]
imul esi, edx
mov edx, 0x100
movzx eax, byte [esi + eax]
mov esi, 0x100
mov ebx, eax
shl ebx, 0x10
or ebx, eax
mov eax, ebx
shr eax, 0x10
sub edx, eax
mov eax, dword [edi]
mov edi, eax
shr eax, 8
and eax, 0xff00ff
and edi, 0xff00ff
imul eax, edx
imul edi, edx
shr eax, 8
and eax, 0xff00ff
shr edi, 8
and edi, 0xff00ff
add edi, ebx
add ebx, eax
mov eax, ebx
mov edx, edi
shr eax, 8
and eax, 0xff00ff
shr edx, 8
sub esi, eax
and edx, 0xff00ff
shl esi, 8
mov eax, ebx
shl eax, 8
or esi, eax
mov eax, 0x100
sub eax, edx
mov edx, 0x100
or eax, edi
mov edi, dword [esp + 0x10]
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 + 0x3c]
shl edx, 8
dec eax
or edx, ebx
mov dword [esp + 0x3c], eax
xor esi, edx
mov dword [edi], esi
add edi, dword [esp + 0x28]
mov dword [esp + 0x10], edi
test eax, eax
jg 0x4390e0
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x2c]
movzx esi, bl
imul esi, edx
sub dword [esp + 0x18], 1
mov edi, dword [esp + 0x34]
mov dword [esp + 0x10], ebx
jns 0x438e40
mov eax, esi
cdq
and edx, 0xff
lea esi, [edx + eax]
sar esi, 8
test esi, esi
jle 0x4392d5
mov ecx, dword [ebp]
mov eax, ebx
mov edi, dword [ebp + 0xc]
cdq
and edx, 0xff
mov ebx, dword [ecx + 0x10]
add eax, edx
mov ecx, dword [ebp + 4]
mov edx, dword [ebp + 0x14]
sar eax, 8
imul ebx, eax
sub eax, edi
add ebx, edx
cdq
idiv dword [ecx + 0x14]
mov eax, dword [ebp + 0x18]
imul edx, dword [ecx + 0x10]
cmp esi, 0xff
jl 0x439228
movzx eax, byte [edx + eax]
mov edi, eax
shl edi, 0x10
or edi, eax
imul edi, dword [ebp + 8]
jmp 0x43923f
movzx ecx, byte [edx + eax]
mov edi, dword [ebp + 8]
mov eax, ecx
imul edi, esi
shl eax, 0x10
or eax, ecx
sar edi, 8
imul edi, eax
shr edi, 8
mov ecx, 0x100
and edi, 0xff00ff
mov edx, 0x100
mov eax, edi
shr eax, 0x10
sub ecx, eax
mov eax, dword [ebx]
mov esi, eax
shr eax, 8
and eax, 0xff00ff
and esi, 0xff00ff
imul eax, ecx
imul esi, ecx
shr eax, 8
and eax, 0xff00ff
shr esi, 8
and esi, 0xff00ff
add esi, edi
add edi, eax
mov eax, edi
mov ecx, esi
shr eax, 8
and eax, 0xff00ff
shr ecx, 8
sub edx, eax
and ecx, 0xff00ff
mov eax, edi
shl edx, 8
shl eax, 8
or edx, eax
mov eax, 0x100
sub eax, ecx
mov ecx, 0x100
or eax, esi
xor edx, eax
mov eax, edi
shr eax, 8
and edx, 0xff00ff
and eax, 0xff00ff
shl edi, 8
sub ecx, eax
shl ecx, 8
or ecx, edi
xor edx, ecx
mov dword [ebx], edx
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [ecx + 0x10]
mov ecx, eax
mov eax, dword [esp + 0x24]
jl 0x438de2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4