Function at 0x83efb4
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 4]
movzx edx, word [edx + 0xe]
imul edx
call fcn.0083eb20
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
add eax, 0xd200
add eax, 0x4000
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
call 0x6cbe08
mov dword [ebp - 0x3c], eax
push ebp
push 0x83f425
push dword fs:[0]
mov dword fs:[0], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 4]
imul dword [edx + 8]
add eax, eax
call 0x6cbe08
mov dword [ebp - 0x40], eax
push ebp
push 0x83f408
push dword fs:[0]
mov dword fs:[0], esp
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], eax
mov edx, 0xc000
mov eax, dword [ebp - 0x3c]
call 0x6cbe60
mov dword [ebp - 0x48], eax
mov edx, 0xd200
mov eax, dword [ebp - 0x3c]
call 0x6cbe60
mov dword [ebp - 0x14], eax
xor ebx, ebx
lea eax, [ebx + ebx*2]
mov edx, dword [ebp - 0x4c]
mov ecx, ebx
shr ecx, 8
mov byte [edx + eax*4], cl
mov edx, dword [ebp - 0x4c]
mov ecx, ebx
shr ecx, 4
and cl, 0xf
mov byte [edx + eax*4 + 1], cl
mov edx, dword [ebp - 0x4c]
mov ecx, ebx
and cl, 0xf
mov byte [edx + eax*4 + 2], cl
mov edx, dword [ebp - 0x4c]
xor ecx, ecx
mov dword [edx + eax*4 + 4], ecx
inc ebx
cmp ebx, 0x1000
jne 0x83f05e
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x83f154
inc eax
mov dword [ebp - 0x50], eax
xor ebx, ebx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 8]
dec edx
sub edx, ebx
imul edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call 0x6cbe60
mov edx, eax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call 0x6cbe68
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 4]
mov edi, dword [edi + 4]
dec edi
test edi, edi
jl 0x83f14a
inc edi
movzx eax, byte [esi + 2]
and al, 0xf0
movzx eax, al
shl eax, 4
movzx edx, byte [esi + 1]
and dl, 0xf0
movzx edx, dl
add ax, dx
movzx edx, byte [esi]
and dl, 0xf0
movzx edx, dl
shr edx, 4
add ax, dx
mov word [ebp - 0x22], ax
movzx eax, word [ebp - 0x22]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 0x4c]
inc dword [edx + eax*4 + 4]
mov edx, 3
mov eax, esi
call 0x6cbe60
mov esi, eax
mov eax, dword [ebp - 0x44]
movzx edx, word [ebp - 0x22]
mov word [eax], dx
mov edx, 2
mov eax, dword [ebp - 0x44]
call 0x6cbe60
mov dword [ebp - 0x44], eax
dec edi
jne 0x83f0e5
inc ebx
dec dword [ebp - 0x50]
jne 0x83f0b4
xor ebx, ebx
lea eax, [ebx + ebx*8]
mov edx, dword [ebp - 0x48]
xor ecx, ecx
mov dword [edx + eax*2 + 0xe], ecx
mov edx, dword [ebp - 0x48]
xor ecx, ecx
mov dword [edx + eax*2 + 0xa], ecx
mov edx, dword [ebp - 0x48]
xor ecx, ecx
mov dword [edx + eax*2 + 6], ecx
xor ecx, ecx
lea eax, [ebx + ebx*8]
mov edx, dword [ebp - 0x48]
lea edx, [edx + eax*2]
mov byte [edx + ecx], 0
mov edx, dword [ebp - 0x48]
lea eax, [edx + eax*2]
mov byte [eax + ecx + 3], 0xff
inc ecx
cmp ecx, 3
jne 0x83f176
inc ebx
cmp ebx, 0x100
jne 0x83f156
xor ebx, ebx
lea eax, [ebx + ebx*2]
mov edx, dword [ebp - 0x4c]
cmp dword [edx + eax*4 + 4], 0
jg 0x83f1b5
inc ebx
cmp ebx, 0x1000
jl 0x83f19f
lea eax, [ebx + ebx*2]
mov edx, dword [ebp - 0x4c]
lea eax, [edx + eax*4]
lea edx, [ebx + ebx*2]
mov ecx, dword [ebp - 0x4c]
lea edx, [ecx + edx*4]
mov ecx, dword [ebp - 0x48]
mov dword [ecx + 0xe], edx
mov ecx, 1
inc ebx
cmp ebx, 0x1000
jge 0x83f201
lea edx, [ebx + ebx*2]
mov esi, dword [ebp - 0x4c]
cmp dword [esi + edx*4 + 4], 0
jle 0x83f1f8
mov esi, dword [ebp - 0x4c]
lea esi, [esi + edx*4]
mov dword [eax + 8], esi
mov eax, dword [ebp - 0x4c]
lea eax, [eax + edx*4]
inc ecx
inc ebx
cmp ebx, 0x1000
jl 0x83f1db
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x48]
mov dword [eax + 6], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 4]
imul dword [edx + 8]
mov edx, dword [ebp - 0x48]
mov dword [edx + 0xa], eax
mov dword [ebp - 0x28], 1
mov edx, dword [ebp - 0x18]
add edx, 0xd200
mov eax, dword [ebp - 0x3c]
call 0x6cbe60
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
mov eax, dword [ebp - 0x48]
call fcn.0083ecc0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x28]
jle 0x83f27e
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
dec eax
sub eax, ebx
jl 0x83f27e
inc eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
lea esi, [eax + ebx*4]
mov eax, esi
xor ecx, ecx
mov edx, 4
call fcn.00407f88
add esi, 4
dec dword [ebp - 0x50]
jne 0x83f268
mov eax, dword [ebp - 0x28]
dec eax
test eax, eax
jl 0x83f33b
inc eax
mov dword [ebp - 0x50], eax
xor ebx, ebx
mov esi, dword [ebp + 8]
lea eax, [ebx + ebx*8]
mov edx, dword [ebp - 0x48]
mov ecx, dword [edx + eax*2 + 6]
test ecx, ecx
jle 0x83f32e
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + eax*2 + 0xe]
xor edx, edx
mov dword [ebp - 0x30], edx
xor edx, edx
mov dword [ebp - 0x34], edx
xor edx, edx
mov dword [ebp - 0x38], edx
test eax, eax
je 0x83f2dd
mov byte [eax + 3], bl
movzx edx, byte [eax]
add dword [ebp - 0x30], edx
movzx edx, byte [eax + 1]
add dword [ebp - 0x34], edx
movzx edx, byte [eax + 2]
add dword [ebp - 0x38], edx
mov eax, dword [eax + 8]
test eax, eax
jne 0x83f2bf
mov edi, esi
mov eax, dword [ebp - 0x30]
shl eax, 4
or eax, 0xf
cdq
idiv ecx
mov byte [edi + 2], al
mov eax, dword [ebp - 0x34]
shl eax, 4
or eax, 0xf
cdq
idiv ecx
mov byte [edi + 1], al
mov eax, dword [ebp - 0x38]
shl eax, 4
or eax, 0xf
cdq
idiv ecx
mov byte [edi], al
mov byte [edi + 3], 0
cmp byte [edi + 2], 0x10
ja 0x83f32e
cmp byte [edi + 1], 0x10
ja 0x83f32e
cmp byte [edi], 0x10
ja 0x83f32e
mov eax, esi
xor ecx, ecx
mov edx, 4
call fcn.00407f88
inc ebx
add esi, 4
dec dword [ebp - 0x50]
jne 0x83f293
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
add eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
add eax, eax
add eax, eax
add eax, eax
call fcn.0083eb20
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
imul dword [ebp - 0x20]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov edx, dword [ebp - 0x54]
call fcn.00407f88
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x83f3f2
inc eax
mov dword [ebp - 0x50], eax
xor ebx, ebx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 8]
dec edx
sub edx, ebx
imul edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x40]
call 0x6cbe60
mov dword [ebp - 0x14], eax
mov edx, ebx
imul edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call 0x6cbe60
mov esi, eax
mov edi, dword [ebp - 4]
mov edi, dword [edi + 4]
dec edi
test edi, edi
jl 0x83f3ec
inc edi
mov eax, dword [ebp - 0x14]
movzx eax, word [eax]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 0x4c]
movzx eax, byte [edx + eax*4 + 3]
mov byte [esi], al
mov edx, 2
mov eax, dword [ebp - 0x14]
call 0x6cbe60
mov dword [ebp - 0x14], eax
mov edx, 1
mov eax, esi
call 0x6cbe60
mov esi, eax
dec edi
jne 0x83f3b8
inc ebx
dec dword [ebp - 0x50]
jne 0x83f384
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x83f40f
lea eax, [ebp - 0x40]
call 0x6cbe28
ret