Function at 0x90a2965
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x90d4018
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x1e08
call fcn.090cde60
mov eax, dword [0x91154f8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1df0], esi
mov edi, dword [ebx + 8]
push 0
mov dword [ebp - 0x1ddc], edi
mov eax, dword [edi + 4]
add eax, 0xa0
push eax
call fcn.0909e738
cmp dword [esi], 0
pop ecx
pop ecx
jne 0x90a29ea
push 0
push 0x753
push 0xb71b
push dword [edi + 4]
call fcn.0909e738
add esp, 0x10
mov dword [esi], eax
mov ecx, edi
mov dword [ebp - 0x1e04], edi
call fcn.09018f87
and dword [ebp - 4], 0
lea ecx, [ebp - 0x844]
xor edx, edx
inc edx
mov eax, edx
mov dword [ecx], 0x40004000
shr eax, 1
lea ecx, [ecx + 8]
add edx, 0x101
mov word [ecx - 0xa], ax
cmp edx, 0x10101
jb 0x90a2a04
push 0
push 0x50524742
push 0x504c4142
push 0x100
lea eax, [ebp - 0x848]
mov ecx, edi
push eax
push eax
call fcn.0909e738
xor esi, esi
movzx eax, word [ebp + esi*8 - 0x842]
push eax
movzx eax, word [ebp + esi*8 - 0x844]
push eax
movzx eax, word [ebp + esi*8 - 0x846]
push eax
call fcn.0909e738
add esp, 0xc
mov word [ebp + esi*2 - 0x15d0], ax
inc esi
cmp esi, 0x100
jb 0x90a2a45
lea ecx, [ebp - 0x15d0]
call fcn.09078991
test al, al
jne 0x90a2a93
lea ecx, [ebp - 0x15d0]
call fcn.090789b1
push 2
lea ecx, [ebp - 0x15d0]
call fcn.0909e738
mov ecx, dword [ebp - 0x1df0]
lea edx, [ebp - 0x15d0]
add ecx, 0x168
mov edi, 0x100
movzx eax, word [edx]
lea edx, [edx + 2]
imul eax, eax, 0xff
add eax, 0x4000
shr eax, 0xf
mov byte [ecx - 0x100], al
mov byte [ecx], al
mov byte [ecx + 0x100], al
inc ecx
sub edi, 1
jne 0x90a2ab7
lea eax, [ebp - 0x1dd8]
push eax
lea ecx, [ebp - 0x15d0]
call fcn.0909e738
push 0xc
lea esi, [ebp - 0x48]
pop ecx
mov eax, ecx
mov dword [ebp - 0x1de8], 0x18
xor edx, edx
add ecx, 0x8000
div dword [ebp - 0x1de8]
mov word [esi], ax
lea esi, [esi + 2]
cmp ecx, 0xc800c
jb 0x90a2af7
and dword [ebp - 0x1dec], 0
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x1de8], ecx
movzx eax, word [ecx]
xor edx, edx
mov dword [ebp - 0x1de0], edx
lea ecx, [ebp - 0x13cc]
mov dword [ebp - 0x1de4], eax
movzx edi, word [ebp + edx*2 - 0x48]
xor esi, esi
mov edx, dword [ebp - 0x1de4]
mov ax, word [ebp + esi*2 - 0x48]
inc esi
mov word [ecx - 2], dx
mov word [ecx], di
mov word [ecx + 2], ax
add ecx, 8
cmp esi, 0x19
jb 0x90a2b53
mov edx, dword [ebp - 0x1de0]
inc edx
mov dword [ebp - 0x1de0], edx
cmp edx, 0x19
jb 0x90a2b46
mov ecx, dword [ebp - 0x1ddc]
lea eax, [ebp - 0x13d0]
push 0
push 0x50524742
push 0x504c4142
push 0x271
push eax
push eax
call fcn.0909e738
mov eax, dword [ebp - 0x1df0]
lea ecx, [ebp - 0x1e18]
push 1
push 0x753
push dword [ebp - 0x1dec]
push dword [eax]
call fcn.0909e738
lea ecx, [ebp - 0x1e18]
mov byte [ebp - 4], 1
call fcn.090067dd
lea esi, [ebp - 0x13d0]
mov dword [ebp - 0x1de4], 0x19
lea edx, [eax + 2]
mov dword [ebp - 0x1de0], esi
mov dword [ebp - 0x1df4], edx
mov dword [ebp - 0x1df8], 0x19
mov ecx, dword [esi]
mov eax, dword [esi + 4]
shr ecx, 0x10
push ecx
lea ecx, [ebp - 0x1dd8]
mov dword [ebp - 0x1dfc], eax
call fcn.0909e738
movzx ecx, word [ebp - 0x1dfc]
mov si, ax
push ecx
lea ecx, [ebp - 0x1dd8]
call fcn.0909e738
movzx ecx, word [ebp - 0x1dfa]
mov di, ax
push ecx
lea ecx, [ebp - 0x1dd8]
call fcn.0909e738
mov edx, dword [ebp - 0x1df4]
movzx ecx, si
mov esi, 0x4000
imul ecx, ecx, 0xff
movzx eax, ax
imul eax, eax, 0xff
add ecx, esi
shr ecx, 0xf
mov byte [edx - 2], cl
add eax, esi
movzx ecx, di
imul ecx, ecx, 0xff
shr eax, 0xf
mov byte [edx], al
add ecx, esi
mov esi, dword [ebp - 0x1de0]
shr ecx, 0xf
add esi, 8
mov byte [edx - 1], cl
add edx, 3
sub dword [ebp - 0x1df8], 1
mov dword [ebp - 0x1de0], esi
mov dword [ebp - 0x1df4], edx
jne 0x90a2bfa
sub dword [ebp - 0x1de4], 1
jne 0x90a2be4
lea ecx, [ebp - 0x1e18]
mov byte [ebp - 4], 0
call fcn.090068a7
mov eax, dword [ebp - 0x1dec]
mov ecx, dword [ebp - 0x1de8]
add eax, 0x753
add ecx, 2
mov dword [ebp - 0x1dec], eax
mov dword [ebp - 0x1de8], ecx
cmp eax, 0xb71b
jb 0x90a2b2f
mov ecx, dword [ebp - 0x1ddc]
or dword [ebp - 4], 0xffffffff
call fcn.090190fb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.09002290
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4