Function at 0x907e1fa
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 0x90ac3c5
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x1e08
call fcn.090a6f20
mov eax, dword [0x90e6610]
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, 0x94
push eax
call fcn.09009812
cmp dword [esi], 0
pop ecx
pop ecx
jne 0x907e27f
push 0
push 0x753
push 0xb71b
push dword [edi + 4]
call fcn.09009812
add esp, 0x10
mov dword [esi], eax
mov ecx, edi
mov dword [ebp - 0x1e04], edi
call fcn.090168fd
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 0x907e299
push 0
push 0x50524742
push 0x504c4142
push 0x100
lea eax, [ebp - 0x848]
mov ecx, edi
push eax
push eax
call fcn.09009812
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.09009812
add esp, 0xc
mov word [ebp + esi*2 - 0x15d0], ax
inc esi
cmp esi, 0x100
jb 0x907e2da
lea ecx, [ebp - 0x15d0]
call fcn.0906b7a9
test al, al
jne 0x907e328
lea ecx, [ebp - 0x15d0]
call fcn.0906b7c9
push 2
lea ecx, [ebp - 0x15d0]
call fcn.09009812
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 0x907e34c
lea eax, [ebp - 0x1dd8]
push eax
lea ecx, [ebp - 0x15d0]
call fcn.09009812
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 0x907e38c
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 0x907e3e8
mov edx, dword [ebp - 0x1de0]
inc edx
mov dword [ebp - 0x1de0], edx
cmp edx, 0x19
jb 0x907e3db
mov ecx, dword [ebp - 0x1ddc]
lea eax, [ebp - 0x13d0]
push 0
push 0x50524742
push 0x504c4142
push 0x271
push eax
push eax
call fcn.09009812
mov eax, dword [ebp - 0x1df0]
lea ecx, [ebp - 0x1e18]
push 1
push 0x753
push dword [ebp - 0x1dec]
push dword [eax]
call fcn.09009812
lea ecx, [ebp - 0x1e18]
mov byte [ebp - 4], 1
call fcn.09005d4d
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.09009812
movzx ecx, word [ebp - 0x1dfc]
mov si, ax
push ecx
lea ecx, [ebp - 0x1dd8]
call fcn.09009812
movzx ecx, word [ebp - 0x1dfa]
mov di, ax
push ecx
lea ecx, [ebp - 0x1dd8]
call fcn.09009812
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 0x907e48f
sub dword [ebp - 0x1de4], 1
jne 0x907e479
lea ecx, [ebp - 0x1e18]
mov byte [ebp - 4], 0
call fcn.09005e1d
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 0x907e3c4
mov ecx, dword [ebp - 0x1ddc]
or dword [ebp - 4], 0xffffffff
call fcn.09016a6b
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.09001f80
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4