Function at 0x4376c0
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 0x437c17
push ebx
push ebp
push esi
push edi
nop
mov eax, dword [eax + 0x18]
mov ebp, edx
mov edi, dword [ebp]
lea edx, [edx + eax*4]
dec edi
mov dword [esp + 0x1c], edx
test edi, edi
jle 0x437bf7
mov eax, dword [esp + 0x24]
add ebp, 4
mov ebx, dword [esp + 0x3c]
xor esi, esi
mov edx, dword [ebp]
mov dword [esp + 0x14], edx
mov edx, dword [eax + 8]
add edx, ecx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0xc]
imul eax, edx
sub edx, dword [ebx + 0x10]
add eax, dword [ecx]
mov ecx, dword [ebx + 4]
mov dword [ebx + 0x14], eax
mov eax, edx
cdq
idiv dword [ecx + 0x18]
imul edx, dword [ecx + 0xc]
add edx, dword [ecx]
sub edi, 1
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x18], edx
mov dword [esp + 0x30], edi
js 0x437ae4
mov edi, dword [ebp + 4]
add ebp, 8
mov dword [esp + 0x34], ebp
mov dword [esp + 0x18], edi
mov eax, dword [ebp]
mov dword [esp + 0x2c], eax
cdq
and edx, 0xff
lea ebp, [edx + eax]
mov eax, ecx
cdq
and edx, 0xff
sar ebp, 8
mov dword [esp + 0x10], ebp
lea ecx, [edx + eax]
sar ecx, 8
cmp ebp, ecx
jne 0x437791
mov ecx, dword [esp + 0x2c]
mov eax, ecx
sub eax, dword [esp + 0x14]
imul eax, edi
add esi, eax
jmp 0x437ad1
mov edx, dword [esp + 0x14]
movzx eax, dl
mov edx, 0x100
sub edx, eax
imul edx, edi
lea eax, [esi + edx]
cdq
and edx, 0xff
add edx, eax
sar edx, 8
test edx, edx
jle 0x4378b7
mov eax, dword [ebx]
mov ebp, dword [ebx + 4]
mov edi, dword [ebx + 8]
mov esi, dword [eax + 0x10]
mov eax, dword [ebx + 0x14]
imul esi, ecx
add esi, eax
mov eax, ecx
sub eax, dword [ebx + 0xc]
mov dword [esp + 0x14], esi
mov esi, dword [esi]
cmp edx, 0xff
jge 0x4377e5
imul edi, edx
sar edi, 8
cdq
idiv dword [ebp + 0x14]
mov eax, dword [ebx + 0x18]
imul edx, dword [ebp + 0x10]
mov ebx, dword [edx + eax]
mov ebp, ebx
shr ebp, 8
mov edx, 0x100
and ebp, 0xff00ff
and ebx, 0xff00ff
imul ebp, edi
imul ebx, edi
mov edi, dword [esp + 0x18]
shr ebp, 8
and ebp, 0xff00ff
shr ebx, 8
mov eax, ebp
and ebx, 0xff00ff
shr eax, 0x10
sub edx, eax
mov eax, esi
and eax, 0xff00ff
shr esi, 8
imul eax, edx
and esi, 0xff00ff
imul esi, edx
shr eax, 8
and eax, 0xff00ff
shr esi, 8
add ebx, eax
and esi, 0xff00ff
add ebp, esi
mov edx, ebx
mov eax, ebp
shr edx, 8
shr eax, 8
mov esi, 0x100
and eax, 0xff00ff
and edx, 0xff00ff
sub esi, eax
mov eax, ebp
shl eax, 8
shl esi, 8
or esi, eax
mov eax, 0x100
sub eax, edx
mov edx, 0x100
or eax, ebx
mov ebx, dword [esp + 0x3c]
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
or edx, ebp
mov ebp, dword [esp + 0x10]
xor esi, edx
mov dword [eax], esi
test edi, edi
jle 0x437ac3
inc ecx
sub ebp, ecx
mov dword [esp + 0x10], ebp
test ebp, ebp
jle 0x437ac3
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
mov ebp, eax
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 8]
imul ebp, ecx
sub ecx, dword [ebx + 0xc]
imul eax, edi
add ebp, dword [ebx + 0x14]
sar eax, 8
mov dword [esp + 0x14], eax
cmp eax, 0xfe
jge 0x4379f0
nop word [eax + eax]
mov esi, dword [ebx + 4]
mov eax, ecx
cdq
inc ecx
idiv dword [esi + 0x14]
mov esi, dword [esi + 0x10]
mov eax, dword [ebx + 0x18]
imul esi, edx
mov edx, 0x100
mov edi, dword [esi + eax]
mov ebx, edi
mov esi, dword [ebp]
and edi, 0xff00ff
imul edi, dword [esp + 0x14]
shr ebx, 8
and ebx, 0xff00ff
imul ebx, dword [esp + 0x14]
shr edi, 8
and edi, 0xff00ff
shr ebx, 8
and ebx, 0xff00ff
mov eax, ebx
shr eax, 0x10
sub edx, eax
mov eax, esi
and eax, 0xff00ff
shr esi, 8
imul eax, edx
and esi, 0xff00ff
imul esi, edx
shr eax, 8
and eax, 0xff00ff
shr esi, 8
add edi, eax
and esi, 0xff00ff
add ebx, esi
mov edx, edi
mov eax, ebx
shr edx, 8
shr eax, 8
mov esi, 0x100
and eax, 0xff00ff
and edx, 0xff00ff
sub esi, eax
mov eax, ebx
shl eax, 8
shl esi, 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
dec eax
or edx, ebx
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x3c]
xor esi, edx
mov dword [ebp], esi
add ebp, dword [esp + 0x28]
test eax, eax
jg 0x437900
jmp 0x437abf
mov esi, dword [ebx + 4]
mov eax, ecx
cdq
inc ecx
idiv dword [esi + 0x14]
mov esi, dword [esi + 0x10]
mov eax, dword [ebx + 0x18]
imul esi, edx
mov edx, 0x100
mov esi, dword [esi + eax]
mov ebx, esi
shr ebx, 8
and esi, 0xff00ff
and ebx, 0xff00ff
mov eax, ebx
shr eax, 0x10
sub edx, eax
mov eax, dword [ebp]
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
add ebx, eax
and edi, 0xff00ff
add edi, esi
mov eax, ebx
shr eax, 8
mov esi, 0x100
and eax, 0xff00ff
mov edx, edi
sub esi, eax
shr edx, 8
shl esi, 8
mov eax, ebx
shl eax, 8
and edx, 0xff00ff
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
dec eax
or edx, ebx
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x3c]
xor esi, edx
mov dword [ebp], esi
add ebp, dword [esp + 0x28]
test eax, eax
jg 0x4379f0
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x3c]
movzx esi, cl
imul esi, edi
sub dword [esp + 0x30], 1
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x14], ecx
jns 0x437744
mov eax, esi
cdq
and edx, 0xff
lea edi, [edx + eax]
sar edi, 8
test edi, edi
jle 0x437bf3
mov eax, ecx
mov esi, dword [ebx + 8]
mov ecx, dword [ebx]
cdq
and edx, 0xff
add eax, edx
mov edx, dword [ebx + 0x14]
mov ebp, dword [ecx + 0x10]
mov ecx, dword [ebx + 4]
sar eax, 8
imul ebp, eax
sub eax, dword [ebx + 0xc]
add ebp, edx
cdq
idiv dword [ecx + 0x14]
mov eax, dword [ebx + 0x18]
imul edx, dword [ecx + 0x10]
mov ecx, 0x100
cmp edi, 0xff
jge 0x437b3d
imul esi, edi
sar esi, 8
mov edi, dword [edx + eax]
mov ebx, edi
mov edx, dword [ebp]
and edi, 0xff00ff
shr ebx, 8
and ebx, 0xff00ff
imul edi, esi
imul ebx, esi
shr edi, 8
shr ebx, 8
and edi, 0xff00ff
and ebx, 0xff00ff
mov eax, ebx
shr eax, 0x10
sub ecx, eax
mov eax, edx
and eax, 0xff00ff
shr edx, 8
imul eax, ecx
and edx, 0xff00ff
imul edx, ecx
shr eax, 8
and eax, 0xff00ff
shr edx, 8
add edi, eax
and edx, 0xff00ff
add ebx, edx
mov ecx, edi
mov eax, ebx
shr ecx, 8
shr eax, 8
mov edx, 0x100
and eax, 0xff00ff
and ecx, 0xff00ff
sub edx, eax
mov eax, ebx
shl eax, 8
shl edx, 8
or edx, eax
mov eax, 0x100
sub eax, ecx
mov ecx, 0x100
or eax, edi
xor edx, eax
mov eax, ebx
shr eax, 8
and edx, 0xff00ff
and eax, 0xff00ff
shl ebx, 8
sub ecx, eax
shl ecx, 8
or ecx, ebx
xor edx, ecx
mov dword [ebp], 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 0x4376e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4