Function at 0x907dae5
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push 8
push 0xa78
mov eax, 0x90a9f15
call fcn.090a4e1a
mov edi, ecx
mov dword [ebp - 0xa54], edi
mov esi, dword [ebx + 8]
push 0
mov dword [ebp - 0xa50], esi
mov eax, dword [esi + 4]
add eax, 0x94
push eax
call fcn.09029284
cmp dword [edi], 0
pop ecx
pop ecx
jne 0x907db37
push 0
push 0x300
push 0x3000
push dword [esi + 4]
call fcn.09029284
add esp, 0x10
mov dword [edi], eax
cmp dword [edi + 4], 0
jne 0x907db57
push 0
push 0x600
push 0x6000
push dword [esi + 4]
call fcn.09029284
add esp, 0x10
mov dword [edi + 4], eax
mov ecx, esi
mov dword [ebp - 0xa60], esi
call fcn.0901658c
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 0x907db71
push 0
mov eax, 0x50524742
mov ecx, esi
push eax
push eax
push 0x100
lea eax, [ebp - 0xa40]
push eax
push eax
call fcn.09029284
xor edx, edx
movzx eax, word [ebp + edx*8 - 0xa3e]
imul ecx, eax, 0x1333
movzx eax, word [ebp + edx*8 - 0xa3a]
imul eax, eax, 0x70a
add ecx, eax
movzx eax, word [ebp + edx*8 - 0xa3c]
imul eax, eax, 0x25c3
add eax, 0x2000
add eax, ecx
shr eax, 0xe
mov word [ebp + edx*2 - 0x238], ax
inc edx
cmp edx, 0x100
jb 0x907dbb3
lea ecx, [ebp - 0x238]
call fcn.0906a289
test al, al
jne 0x907dc14
lea ecx, [ebp - 0x238]
call fcn.0906a2a9
push 2
lea ecx, [ebp - 0x238]
call fcn.09029284
xor edx, edx
lea ecx, [edi + 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 0x907dc29
lea eax, [ebp - 0xa40]
push eax
lea ecx, [ebp - 0x238]
call fcn.09029284
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.09029284
add esi, 0x8000
mov word [edi], ax
lea edi, [edi + 2]
cmp esi, 0x80007
jb 0x907dc66
and dword [ebp - 0xa4c], 0
lea ecx, [ebp - 0x34]
and dword [ebp - 0xa48], 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 esi, word [ebp + edx*2 - 0x34]
xor edi, edi
mov edx, dword [ebp - 0xa5c]
mov ax, word [ebp + edi*2 - 0x34]
inc edi
mov word [ecx - 2], dx
mov word [ecx], si
mov word [ecx + 2], ax
add ecx, 8
cmp edi, 0x10
jb 0x907dcca
mov edx, dword [ebp - 0xa44]
inc edx
mov dword [ebp - 0xa44], edx
cmp edx, 0x10
jb 0x907dcbd
mov ecx, dword [ebp - 0xa50]
mov eax, 0x50524742
push 0
push eax
push eax
push 0x100
lea eax, [ebp - 0xa40]
push eax
push eax
call fcn.09029284
mov edi, dword [ebp - 0xa54]
lea ecx, [ebp - 0xa88]
push 1
push 0x300
push dword [ebp - 0xa48]
push dword [edi]
call fcn.09029284
lea ecx, [ebp - 0xa88]
mov byte [ebp - 4], 1
call fcn.09005b3d
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 0x907dd5b
sub dword [ebp - 0xa44], 1
jne 0x907dd58
mov edi, dword [ebp - 0xa54]
lea ecx, [ebp - 0xa74]
push 1
push 0x600
push dword [ebp - 0xa4c]
push dword [edi + 4]
call fcn.09029284
lea ecx, [ebp - 0xa74]
mov byte [ebp - 4], 2
call fcn.09005b3d
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 0x907ddf5
sub dword [ebp - 0xa44], 1
jne 0x907ddf2
lea ecx, [ebp - 0xa74]
call fcn.09029284
lea ecx, [ebp - 0xa88]
mov byte [ebp - 4], 0
call fcn.09029284
mov eax, dword [ebp - 0xa48]
mov ecx, dword [ebp - 0xa58]
add eax, 0x300
add dword [ebp - 0xa4c], 0x600
add ecx, 2
mov esi, dword [ebp - 0xa50]
mov dword [ebp - 0xa58], ecx
mov dword [ebp - 0xa48], eax
cmp eax, 0x3000
jb 0x907dca6
mov ecx, esi
mov dword [ebp - 4], 3
call fcn.09016859
mov ecx, dword [ebp - 0x14]
call fcn.090a4e0c
ret 4