Function at 0x90a3900
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push 8
push 0xa78
mov eax, 0x90d4137
call fcn.090cdd1a
mov esi, ecx
mov dword [ebp - 0xa48], esi
mov edi, dword [ebx + 8]
push 0
mov dword [ebp - 0xa54], edi
mov eax, dword [edi + 4]
add eax, 0xa0
push eax
call fcn.09005946
cmp dword [esi], 0
pop ecx
pop ecx
jne 0x90a3952
push 0
push 0x300
push 0x3000
push dword [edi + 4]
call fcn.09005946
add esp, 0x10
mov dword [esi], eax
cmp dword [esi + 4], 0
jne 0x90a3972
push 0
push 0x600
push 0x6000
push dword [edi + 4]
call fcn.09005946
add esp, 0x10
mov dword [esi + 4], eax
mov ecx, edi
mov dword [ebp - 0xa60], edi
call fcn.09018f87
and dword [ebp - 4], 0
lea ecx, [ebp - 0xa3c]
xor edx, edx
inc edx
mov eax, edx
add edx, 0x101
shr eax, 1
movzx eax, ax
mov word [ecx - 2], ax
mov word [ecx], ax
lea ecx, [ecx + 8]
mov word [ecx - 6], ax
cmp edx, 0x10101
jb 0x90a398c
push 0
mov eax, 0x50524742
mov ecx, edi
push eax
push eax
push 0x100
lea eax, [ebp - 0xa40]
push eax
push eax
call fcn.09005946
xor esi, esi
movzx eax, word [ebp + esi*8 - 0xa3a]
push eax
movzx eax, word [ebp + esi*8 - 0xa3c]
push eax
movzx eax, word [ebp + esi*8 - 0xa3e]
push eax
call fcn.09005946
add esp, 0xc
mov word [ebp + esi*2 - 0x238], ax
inc esi
cmp esi, 0x100
jb 0x90a39ce
lea ecx, [ebp - 0x238]
call fcn.09078991
test al, al
jne 0x90a3a1c
lea ecx, [ebp - 0x238]
call fcn.090789b1
push 2
lea ecx, [ebp - 0x238]
call fcn.09005946
mov ecx, dword [ebp - 0xa48]
xor edx, edx
add ecx, 0x208
movzx eax, word [ebp + edx*2 - 0x238]
inc edx
mov word [ecx - 0x200], ax
mov word [ecx], ax
lea ecx, [ecx + 2]
mov word [ecx + 0x1fe], ax
cmp edx, 0x100
jb 0x90a3a37
lea eax, [ebp - 0xa40]
push eax
lea ecx, [ebp - 0x238]
call fcn.09005946
push 7
lea edi, [ebp - 0x34]
pop esi
push 0xf
pop ecx
xor edx, edx
mov eax, esi
div ecx
lea ecx, [ebp - 0xa40]
push eax
call fcn.09005946
add esi, 0x8000
mov word [edi], ax
lea edi, [edi + 2]
cmp esi, 0x80007
jb 0x90a3a74
and dword [ebp - 0xa50], 0
lea ecx, [ebp - 0x34]
and dword [ebp - 0xa4c], 0
mov dword [ebp - 0xa58], ecx
movzx eax, word [ecx]
xor edx, edx
mov dword [ebp - 0xa44], edx
lea ecx, [ebp - 0xa3c]
mov dword [ebp - 0xa5c], eax
movzx edi, word [ebp + edx*2 - 0x34]
xor esi, esi
mov edx, dword [ebp - 0xa5c]
mov ax, word [ebp + esi*2 - 0x34]
inc esi
mov word [ecx - 2], dx
mov word [ecx], di
mov word [ecx + 2], ax
add ecx, 8
cmp esi, 0x10
jb 0x90a3ad8
mov edx, dword [ebp - 0xa44]
inc edx
mov dword [ebp - 0xa44], edx
cmp edx, 0x10
jb 0x90a3acb
mov ecx, dword [ebp - 0xa54]
mov eax, 0x50524742
push 0
push eax
push eax
push 0x100
lea eax, [ebp - 0xa40]
push eax
push eax
call fcn.09005946
mov esi, dword [ebp - 0xa48]
lea ecx, [ebp - 0xa88]
push 1
push 0x300
push dword [ebp - 0xa4c]
push dword [esi]
call fcn.09005946
lea ecx, [ebp - 0xa88]
mov byte [ebp - 4], 1
call fcn.090067dd
lea edi, [ebp - 0xa40]
mov dword [ebp - 0xa44], 0x10
lea edx, [eax + 2]
push 0x10
pop esi
mov eax, dword [edi]
mov ecx, dword [edi + 4]
add edi, 8
shr eax, 0x10
imul eax, eax, 0xff
add eax, 0x4000
shr eax, 0xf
mov byte [edx - 2], al
movzx eax, cx
imul eax, eax, 0xff
shr ecx, 0x10
add eax, 0x4000
shr eax, 0xf
mov byte [edx - 1], al
imul eax, ecx, 0xff
add eax, 0x4000
shr eax, 0xf
mov byte [edx], al
add edx, 3
sub esi, 1
jne 0x90a3b69
sub dword [ebp - 0xa44], 1
jne 0x90a3b66
mov esi, dword [ebp - 0xa48]
lea ecx, [ebp - 0xa74]
push 1
push 0x600
push dword [ebp - 0xa50]
push dword [esi + 4]
call fcn.09005946
lea ecx, [ebp - 0xa74]
mov byte [ebp - 4], 2
call fcn.090067dd
lea esi, [ebp - 0xa40]
mov dword [ebp - 0xa44], 0x10
lea edx, [eax + 4]
push 0x10
pop edi
mov eax, dword [esi]
mov ecx, dword [esi + 4]
add esi, 8
mov word [edx - 2], cx
shr eax, 0x10
shr ecx, 0x10
mov word [edx - 4], ax
mov word [edx], cx
add edx, 6
sub edi, 1
jne 0x90a3c03
sub dword [ebp - 0xa44], 1
mov edi, dword [ebp - 0xa54]
jne 0x90a3c00
lea ecx, [ebp - 0xa74]
mov byte [ebp - 4], 1
call fcn.090068a7
lea ecx, [ebp - 0xa88]
mov byte [ebp - 4], 0
call fcn.090068a7
mov eax, dword [ebp - 0xa4c]
mov ecx, dword [ebp - 0xa58]
add eax, 0x300
add dword [ebp - 0xa50], 0x600
add ecx, 2
mov dword [ebp - 0xa58], ecx
mov dword [ebp - 0xa4c], eax
cmp eax, 0x3000
jb 0x90a3ab4
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.090190fb
mov ecx, dword [ebp - 0x14]
call fcn.090cdd0c
ret 4