Function at 0x907a07b
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push 8
push 0xa78
mov eax, 0x90a4f25
call fcn.0909fe20
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.09018e9f
cmp dword [esi], 0
pop ecx
pop ecx
jne 0x907a0cd
push 0
push 0x300
push 0x3000
push dword [edi + 4]
call fcn.09018e9f
add esp, 0x10
mov dword [esi], eax
cmp dword [esi + 4], 0
jne 0x907a0ed
push 0
push 0x600
push 0x6000
push dword [edi + 4]
call fcn.09018e9f
add esp, 0x10
mov dword [esi + 4], eax
mov ecx, edi
mov dword [ebp - 0xa60], edi
call fcn.09015fe5
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 0x907a107
push 0
mov eax, 0x50524742
mov ecx, edi
push eax
push eax
push 0x100
lea eax, [ebp - 0xa40]
push eax
push eax
call fcn.09018e9f
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.09018e9f
add esp, 0xc
mov word [ebp + esi*2 - 0x238], ax
inc esi
cmp esi, 0x100
jb 0x907a149
lea ecx, [ebp - 0x238]
call fcn.090679e7
test al, al
jne 0x907a197
lea ecx, [ebp - 0x238]
call fcn.09067a07
push 2
lea ecx, [ebp - 0x238]
call fcn.09018e9f
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 0x907a1b2
lea eax, [ebp - 0xa40]
push eax
lea ecx, [ebp - 0x238]
call fcn.09018e9f
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.09018e9f
add esi, 0x8000
mov word [edi], ax
lea edi, [edi + 2]
cmp esi, 0x80007
jb 0x907a1ef
and dword [ebp - 0xa4c], 0
lea ecx, [ebp - 0x34]
and dword [ebp - 0xa50], 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 0x907a253
mov edx, dword [ebp - 0xa44]
inc edx
mov dword [ebp - 0xa44], edx
cmp edx, 0x10
jb 0x907a246
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.09018e9f
mov esi, dword [ebp - 0xa48]
lea ecx, [ebp - 0xa88]
push 1
push 0x300
push dword [ebp - 0xa50]
push dword [esi]
call fcn.09018e9f
lea ecx, [ebp - 0xa88]
mov byte [ebp - 4], 1
call fcn.09005a8c
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
dec esi
jne 0x907a2e4
dec dword [ebp - 0xa44]
jne 0x907a2e1
mov esi, dword [ebp - 0xa48]
lea ecx, [ebp - 0xa74]
push 1
push 0x600
push dword [ebp - 0xa4c]
push dword [esi + 4]
call fcn.09018e9f
lea ecx, [ebp - 0xa74]
mov byte [ebp - 4], 2
call fcn.09005a8c
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
dec edi
jne 0x907a37b
dec dword [ebp - 0xa44]
mov edi, dword [ebp - 0xa54]
jne 0x907a378
lea ecx, [ebp - 0xa74]
mov byte [ebp - 4], 1
call fcn.09005ab3
lea ecx, [ebp - 0xa88]
mov byte [ebp - 4], 0
call fcn.09005ab3
mov eax, dword [ebp - 0xa50]
mov ecx, dword [ebp - 0xa58]
add eax, 0x300
add dword [ebp - 0xa4c], 0x600
add ecx, 2
mov dword [ebp - 0xa58], ecx
mov dword [ebp - 0xa50], eax
cmp eax, 0x3000
jb 0x907a22f
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.09018e9f
mov ecx, dword [ebp - 0x14]
call fcn.0909fe14
ret 4