Function at 0x1007b7a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x1020f140]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0xcc], eax
push esi
push edi
mov dword [ebp - 0xc8], edx
mov eax, dword [ebx]
mov dword [ebp - 0xc4], ebx
mov dword [eax + 8], 0
call fcn.1007abb0
mov edx, dword [ebx]
mov ecx, dword [edx + 8]
mov dword [ebp - 0xb8], ecx
test eax, eax
jne 0x1007b7f9
mov edx, ecx
mov ecx, ebx
push eax
call fcn.1007a340
jmp 0x1007bde2
cmp ecx, 3
jne 0x1007b824
cmp dword [ebx + 0x47ec], ecx
je 0x1007b818
cmp dword [ebx + 0x47e8], 0
jne 0x1007b824
cmp dword [ebx + 0x47e4], 0
jne 0x1007b824
mov dword [ebp - 0xbc], 1
jmp 0x1007b82e
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0x94], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0xb4], xmm0
test ecx, ecx
jle 0x1007b93d
lea esi, [ebx + 0x46a0]
lea edi, [ebp - 0x7c]
mov dword [ebp - 0x90], esi
nop dword [eax]
mov eax, dword [ebx]
mov eax, dword [eax]
add eax, 3
push eax
call fcn.10134999
add esp, 4
mov dword [esi + 0x34], eax
test eax, eax
je 0x1007b957
mov eax, dword [ebx + 0x4684]
cdq
idiv dword [esi]
mov dword [edi + 0xc], 0
mov dword [ebp - 0x9c], eax
mov dword [edi - 4], eax
mov eax, dword [ebx + 0x4688]
cdq
idiv dword [esi + 4]
xor edx, edx
mov esi, eax
mov eax, dword [ebp - 0x9c]
mov ecx, esi
mov dword [edi], esi
sar ecx, 1
dec eax
mov dword [edi + 8], ecx
mov ecx, dword [ebx]
add eax, dword [ecx]
mov ecx, dword [ebp - 0x9c]
div ecx
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x90]
mov eax, dword [eax + 0x28]
mov dword [edi - 8], eax
mov dword [edi - 0xc], eax
cmp ecx, 1
jne 0x1007b8ec
cmp esi, ecx
jne 0x1007b8e0
mov eax, fcn.100074b0
jmp 0x1007b90f
cmp esi, 2
jne 0x1007b90a
mov eax, 0x1007ae50
jmp 0x1007b90f
cmp ecx, 2
jne 0x1007b90a
cmp esi, 1
jne 0x1007b8fd
mov eax, 0x1007b060
jmp 0x1007b90f
cmp esi, 2
jne 0x1007b90a
mov eax, dword [ebx + 0x4814]
jmp 0x1007b90f
mov eax, 0x1007b390
mov esi, dword [ebp - 0x90]
mov dword [edi - 0x10], eax
add esi, 0x48
mov eax, dword [ebp - 0x94]
add edi, 0x20
inc eax
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x94], eax
cmp eax, dword [ebp - 0xb8]
jl 0x1007b860
mov eax, dword [ebx]
mov ecx, dword [eax]
mov esi, dword [eax + 4]
test ecx, ecx
js 0x1007bdbb
jne 0x1007b983
lea edi, [ecx*4]
jmp 0x1007b9a3
mov edx, dword [ebx]
mov ecx, ebx
push 0
mov edx, dword [edx + 8]
call fcn.1007a340
mov ecx, dword [0x102132f4]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0xc], 0x101b5800
jmp 0x1007bde2
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x1007bdbb
lea edi, [ecx*4]
test edi, edi
js 0x1007bdbb
test esi, esi
js 0x1007bdbb
je 0x1007b9bd
mov eax, 0x7fffffff
cdq
idiv esi
cmp edi, eax
jg 0x1007bdbb
imul esi, ecx
lea eax, [esi*4 + 1]
push eax
call fcn.10134999
mov edx, dword [ebx]
mov ecx, eax
add esp, 4
mov dword [ebp - 0x90], ecx
test ecx, ecx
je 0x1007bdbd
xor esi, esi
mov dword [ebp - 0xc0], esi
cmp dword [edx + 4], esi
jbe 0x1007bd7c
mov dword [ebp - 0x90], ecx
nop dword [eax]
mov eax, dword [edx]
imul eax, esi
cmp dword [ebp - 0xb8], 0
mov dword [ebp - 0xa0], 0
lea esi, [ecx + eax*4]
mov dword [ebp - 0x98], esi
jle 0x1007baf2
lea edi, [ebx + 0x46bc]
mov ebx, dword [ebp - 0x90]
lea esi, [ebp - 0x74]
mov eax, dword [esi - 8]
lea ecx, [esi - 0x10]
sar eax, 1
lea edx, [esi - 0x14]
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x9c], edx
cmp dword [esi], eax
jl 0x1007ba5b
mov eax, dword [edx]
mov edx, ecx
mov dword [ebp - 0x94], ecx
jmp 0x1007ba71
mov eax, ecx
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], eax
mov eax, dword [ecx]
push dword [esi - 0xc]
push dword [esi - 4]
push eax
push dword [edx]
push dword [edi + 0x18]
call dword [esi - 0x18]
mov ecx, dword [ebp - 0xa0]
add esp, 0x14
mov dword [ebp + ecx*4 - 0xb4], eax
mov eax, dword [esi]
inc eax
mov dword [esi], eax
cmp eax, dword [esi - 8]
jl 0x1007bac7
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x9c]
inc dword [esi + 4]
mov dword [esi], 0
mov edx, dword [edx]
mov dword [eax], edx
mov eax, dword [esi + 4]
cmp eax, dword [edi]
jge 0x1007bac7
mov eax, dword [edi + 4]
add eax, edx
mov edx, dword [ebp - 0x90]
mov dword [edx], eax
inc ecx
add esi, 0x20
add edi, 0x48
mov dword [ebp - 0xa0], ecx
cmp ecx, dword [ebp - 0xb8]
jl 0x1007ba34
mov esi, dword [ebp - 0x98]
mov dword [ebp - 0x90], ebx
mov ebx, dword [ebp - 0xc4]
mov eax, dword [ebx]
mov edx, eax
mov ecx, dword [eax + 8]
cmp ecx, 3
jne 0x1007bba1
cmp dword [ebp - 0xbc], 0
je 0x1007bb78
xor edi, edi
cmp dword [eax], edi
jbe 0x1007bd60
mov eax, dword [ebp - 0xb4]
lea ecx, [esi + 2]
mov esi, dword [ebp - 0xb0]
sub eax, esi
mov edx, dword [ebp - 0xac]
sub edx, esi
mov dword [ebp - 0x98], eax
mov dword [ebp - 0xa4], edx
jmp 0x1007bb46
mov edx, dword [ebp - 0xa4]
movzx eax, byte [eax + esi]
lea ecx, [ecx + 4]
mov byte [ecx - 6], al
lea esi, [esi + 1]
movzx eax, byte [esi - 1]
inc edi
mov byte [ecx - 5], al
movzx eax, byte [edx + esi - 1]
mov byte [ecx - 4], al
mov eax, dword [ebp - 0x98]
mov byte [ecx - 3], 0xff
mov edx, dword [ebx]
cmp edi, dword [edx]
jb 0x1007bb40
jmp 0x1007bd60
push 4
push dword [eax]
mov eax, dword [ebx + 0x4810]
push dword [ebp - 0xac]
push dword [ebp - 0xb0]
push dword [ebp - 0xb4]
push esi
call eax
mov edx, dword [ebx]
add esp, 0x18
jmp 0x1007bd60
cmp ecx, 4
jne 0x1007bd33
mov ecx, dword [ebx + 0x47e8]
test ecx, ecx
jne 0x1007bc7e
mov dword [ebp - 0xa0], ecx
cmp dword [eax], ecx
jbe 0x1007bd60
mov ecx, dword [ebp - 0xb0]
lea edi, [esi + 2]
mov esi, dword [ebp - 0xa8]
sub ecx, esi
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xa4], ecx
sub eax, esi
mov ecx, dword [ebp - 0xac]
sub ecx, esi
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x98], ecx
nop dword [eax]
movzx ecx, byte [eax + esi]
lea edi, [edi + 4]
movzx edx, byte [esi]
lea esi, [esi + 1]
imul ecx, edx
sub ecx, 0xffffff80
mov eax, ecx
shr eax, 8
add eax, ecx
shr eax, 8
mov byte [edi - 6], al
mov eax, dword [ebp - 0xa4]
movzx ecx, byte [eax + esi - 1]
imul ecx, edx
sub ecx, 0xffffff80
mov eax, ecx
shr eax, 8
add eax, ecx
shr eax, 8
mov byte [edi - 5], al
mov eax, dword [ebp - 0x98]
movzx ecx, byte [eax + esi - 1]
imul ecx, edx
mov byte [edi - 3], 0xff
sub ecx, 0xffffff80
mov eax, ecx
shr eax, 8
add eax, ecx
shr eax, 8
mov byte [edi - 4], al
mov eax, dword [ebp - 0xa0]
mov edx, dword [ebx]
inc eax
mov dword [ebp - 0xa0], eax
cmp eax, dword [edx]
mov eax, dword [ebp - 0x94]
jb 0x1007bc00
jmp 0x1007bd60
mov eax, dword [edx]
mov edx, dword [ebx + 0x4810]
push 4
push eax
push dword [ebp - 0xac]
push dword [ebp - 0xb0]
push dword [ebp - 0xb4]
push esi
cmp ecx, 2
jne 0x1007bd2a
call edx
mov edx, dword [ebx]
xor edi, edi
add esp, 0x18
cmp dword [edx], edi
jbe 0x1007bd60
add esi, 2
nop dword [eax]
mov eax, dword [ebp - 0xa8]
lea esi, [esi + 4]
movzx edx, byte [edi + eax]
inc edi
movzx eax, byte [esi - 6]
not al
movzx ecx, al
imul ecx, edx
sub ecx, 0xffffff80
mov eax, ecx
shr eax, 8
add eax, ecx
shr eax, 8
mov byte [esi - 6], al
movzx eax, byte [esi - 5]
not al
movzx ecx, al
imul ecx, edx
sub ecx, 0xffffff80
mov eax, ecx
shr eax, 8
add eax, ecx
shr eax, 8
mov byte [esi - 5], al
movzx eax, byte [esi - 4]
not al
movzx ecx, al
imul ecx, edx
sub ecx, 0xffffff80
mov eax, ecx
shr eax, 8
add eax, ecx
shr eax, 8
mov byte [esi - 4], al
mov edx, dword [ebx]
cmp edi, dword [edx]
jb 0x1007bcc0
jmp 0x1007bd60
call edx
mov edx, dword [ebx]
add esp, 0x18
jmp 0x1007bd60
xor esi, esi
cmp dword [eax], esi
jbe 0x1007bd60
mov ecx, dword [ebp - 0x98]
inc ecx
mov eax, dword [ebp - 0xb4]
lea ecx, [ecx + 4]
mov al, byte [esi + eax]
inc esi
mov byte [ecx - 3], al
mov byte [ecx - 4], al
mov byte [ecx - 5], al
mov byte [ecx - 2], 0xff
mov edx, dword [ebx]
cmp esi, dword [edx]
jb 0x1007bd40
mov esi, dword [ebp - 0xc0]
mov ecx, dword [ebp - 0x90]
inc esi
mov dword [ebp - 0xc0], esi
cmp esi, dword [edx + 4]
jb 0x1007ba00
mov edx, dword [edx + 8]
mov ecx, ebx
push 0
call fcn.1007a340
mov ecx, dword [ebx]
add esp, 4
mov eax, dword [ebp - 0xc8]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov ecx, dword [ebx]
mov eax, dword [ebp - 0xcc]
mov ecx, dword [ecx + 4]
mov dword [eax], ecx
mov eax, dword [ebp - 0x90]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10129a67
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx]
mov edx, dword [edx + 8]
mov ecx, ebx
push 0
call fcn.1007a340
mov ecx, dword [0x102132f4]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0xc], 0x101b587c
mov ecx, dword [ebp - 8]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.10129a67
mov esp, ebp
pop ebp
ret