Function at 0x907f195
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push 8
push 0xa78
mov eax, 0x90ac4c8
call fcn.090a6e34
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, 0x94
push eax
call fcn.0900e843
cmp dword [esi], 0
pop ecx
pop ecx
jne 0x907f1e7
push 0
push 0x300
push 0x3000
push dword [edi + 4]
call fcn.0900e843
add esp, 0x10
mov dword [esi], eax
cmp dword [esi + 4], 0
jne 0x907f207
push 0
push 0x600
push 0x6000
push dword [edi + 4]
call fcn.0900e843
add esp, 0x10
mov dword [esi + 4], eax
mov ecx, edi
mov dword [ebp - 0xa60], edi
call fcn.090168fd
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 0x907f221
push 0
mov eax, 0x50524742
mov ecx, edi
push eax
push eax
push 0x100
lea eax, [ebp - 0xa40]
push eax
push eax
call fcn.0900e843
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.0900e843
add esp, 0xc
mov word [ebp + esi*2 - 0x238], ax
inc esi
cmp esi, 0x100
jb 0x907f263
lea ecx, [ebp - 0x238]
call fcn.0906b7a9
test al, al
jne 0x907f2b1
lea ecx, [ebp - 0x238]
call fcn.0906b7c9
push 2
lea ecx, [ebp - 0x238]
call fcn.0900e843
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 0x907f2cc
lea eax, [ebp - 0xa40]
push eax
lea ecx, [ebp - 0x238]
call fcn.0900e843
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.0900e843
add esi, 0x8000
mov word [edi], ax
lea edi, [edi + 2]
cmp esi, 0x80007
jb 0x907f309
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 0x907f36d
mov edx, dword [ebp - 0xa44]
inc edx
mov dword [ebp - 0xa44], edx
cmp edx, 0x10
jb 0x907f360
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.0900e843
mov esi, dword [ebp - 0xa48]
lea ecx, [ebp - 0xa88]
push 1
push 0x300
push dword [ebp - 0xa4c]
push dword [esi]
call fcn.0900e843
lea ecx, [ebp - 0xa88]
mov byte [ebp - 4], 1
call fcn.09005d4d
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 0x907f3fe
sub dword [ebp - 0xa44], 1
jne 0x907f3fb
mov esi, dword [ebp - 0xa48]
lea ecx, [ebp - 0xa74]
push 1
push 0x600
push dword [ebp - 0xa50]
push dword [esi + 4]
call fcn.0900e843
lea ecx, [ebp - 0xa74]
mov byte [ebp - 4], 2
call fcn.09005d4d
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 0x907f498
sub dword [ebp - 0xa44], 1
mov edi, dword [ebp - 0xa54]
jne 0x907f495
lea ecx, [ebp - 0xa74]
mov byte [ebp - 4], 1
call fcn.09005e1d
lea ecx, [ebp - 0xa88]
mov byte [ebp - 4], 0
call fcn.09005e1d
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 0x907f349
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.09016a6b
mov ecx, dword [ebp - 0x14]
call fcn.090a6e26
ret 4