Function at 0x9079a5c
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 0x90a4e9e
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x1df8
call fcn.0909ff00
mov eax, dword [0x90dee5c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1df0], edi
mov esi, dword [ebx + 8]
push 0
mov dword [ebp - 0x1de8], esi
mov eax, dword [esi + 4]
add eax, 0x94
push eax
call fcn.09090f1c
cmp dword [edi], 0
pop ecx
pop ecx
jne 0x9079ae1
push 0
push 0x753
push 0xb71b
push dword [esi + 4]
call fcn.09090f1c
add esp, 0x10
mov dword [edi], eax
mov ecx, esi
mov dword [ebp - 0x1df4], esi
call fcn.09015fe5
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1dd4]
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 0x9079afb
push 0
push 0x504c4142
push 0x50524742
push 0x100
lea eax, [ebp - 0x1dd8]
mov ecx, esi
push eax
push eax
call fcn.09090f1c
xor ecx, ecx
mov ax, word [ebp + ecx*8 - 0x1dd6]
mov word [ebp + ecx*2 - 0x15d0], ax
inc ecx
cmp ecx, 0x100
jb 0x9079b40
lea ecx, [ebp - 0x15d0]
call fcn.090679e7
test al, al
jne 0x9079b73
lea ecx, [ebp - 0x15d0]
call fcn.09067a07
push 2
lea ecx, [ebp - 0x15d0]
call fcn.09090f1c
xor edx, edx
lea ecx, [edi + 0x204]
movzx eax, word [ebp + edx*2 - 0x15d0]
inc edx
mov word [ecx - 0x200], ax
mov word [ecx], ax
lea ecx, [ecx + 2]
mov word [ecx + 0x1fe], ax
cmp edx, 0x100
jb 0x9079b88
lea eax, [ebp - 0x1dd8]
push eax
lea ecx, [ebp - 0x15d0]
call fcn.09090f1c
push 0xc
lea esi, [ebp - 0x48]
pop edi
push 0x18
pop ecx
xor edx, edx
mov eax, edi
div ecx
lea ecx, [ebp - 0x1dd8]
push eax
call fcn.09090f1c
add edi, 0x8000
mov word [esi], ax
lea esi, [esi + 2]
cmp edi, 0xc800c
jb 0x9079bc5
and dword [ebp - 0x1de4], 0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x1dec], eax
movzx eax, word [eax]
lea ecx, [ebp - 0x13cc]
xor edx, edx
mov dword [ebp - 0x1de0], eax
mov dword [ebp - 0x1ddc], edx
movzx esi, word [ebp + edx*2 - 0x48]
xor edi, edi
mov edx, dword [ebp - 0x1de0]
mov ax, word [ebp + edi*2 - 0x48]
inc edi
mov word [ecx - 2], dx
mov word [ecx], si
mov word [ecx + 2], ax
add ecx, 8
cmp edi, 0x19
jb 0x9079c22
mov edx, dword [ebp - 0x1ddc]
inc edx
mov dword [ebp - 0x1ddc], edx
cmp edx, 0x19
jb 0x9079c15
mov ecx, dword [ebp - 0x1de8]
lea eax, [ebp - 0x13d0]
push 0
push 0x504c4142
push 0x50524742
push 0x271
push eax
push eax
call fcn.09090f1c
mov eax, dword [ebp - 0x1df0]
lea ecx, [ebp - 0x1e08]
mov edi, dword [ebp - 0x1de4]
push 1
push 0x753
push edi
push dword [eax]
call fcn.09090f1c
lea ecx, [ebp - 0x1e08]
mov byte [ebp - 4], 1
call fcn.09005a8c
lea edi, [ebp - 0x13d0]
mov dword [ebp - 0x1de0], 0x19
lea esi, [eax + 2]
mov dword [ebp - 0x1ddc], 0x19
mov eax, dword [edi]
mov edx, dword [edi + 4]
shr eax, 0x10
imul eax, eax, 0xff
movzx ecx, dx
add ecx, 0x40
shr ecx, 7
add eax, 0x4000
shr eax, 0xf
cmp ecx, 0xff
mov byte [esi - 2], al
movzx eax, cl
mov ecx, 0xff
cmova eax, ecx
shr edx, 0x10
add edx, 0x40
mov byte [esi - 1], al
shr edx, 7
cmp edx, ecx
movzx eax, dl
cmova eax, ecx
add edi, 8
mov byte [esi], al
add esi, 3
dec dword [ebp - 0x1ddc]
jne 0x9079cbe
dec dword [ebp - 0x1de0]
jne 0x9079cb4
lea ecx, [ebp - 0x1e08]
mov byte [ebp - 4], 0
call fcn.09005ab3
mov edi, dword [ebp - 0x1de4]
mov eax, dword [ebp - 0x1dec]
add edi, 0x753
mov esi, dword [ebp - 0x1de8]
add eax, 2
mov dword [ebp - 0x1dec], eax
mov dword [ebp - 0x1de4], edi
cmp edi, 0xb71b
jb 0x9079bfe
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.09090f1c
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.090020f2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4