Function at 0x10c02d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, edx
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x6c
cmp dword [eax + 0x18], 0x1f
mov dword [esp + 0x30], ecx
jle 0x10c05b0
mov esi, dword [eax + 0x20]
mov dword [eax + 8], esi
movzx eax, word [eax + 0x10]
and eax, 0x2d
mov word [ebx + 0x10], ax
test al, 4
jne 0x10c03a0
xor edx, edx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], 0
mov dword [esp + 0x50], 0x20
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov word [esp + 0x5c], dx
test al, 0x20
je 0x10c05a0
fild qword [ebx]
sub esp, 8
fstp qword [esp]
push 0x142d79d
lea eax, [esp + 0x54]
push eax
call fcn.010b7820
mov eax, dword [esp + 0x68]
add esp, 0x10
mov byte [esi + eax], 0
mov dword [ebx + 0xc], eax
movzx eax, word [ebx + 0x10]
mov byte [ebx + 0x12], 1
mov edx, eax
and eax, 0xffffffd3
or dx, 0x202
or ax, 0x202
cmp byte [esp + 0x30], 0
cmove eax, edx
mov word [ebx + 0x10], ax
mov eax, ebp
movzx edx, al
cmp al, 1
je 0x10c038c
mov eax, ebx
call fcn.010beb10
add esp, 0x6c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
mov ecx, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
test ecx, ecx
js 0x10c05d8
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov edi, 0xcccccccd
mov dword [esp + 0x14], 0
mov byte [esp + 0x5d], 0
mov ecx, eax
add ecx, edx
adc ecx, 0
mov eax, ecx
mul edi
mov eax, edx
and edx, 0xfffffffc
shr eax, 2
add edx, eax
mov eax, dword [esp + 0x28]
sub ecx, edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x10], ecx
sub eax, dword [esp + 0x10]
sbb edx, dword [esp + 0x14]
mov dword [esp + 8], eax
imul ecx, edx, 0xcccccccd
mov eax, dword [esp + 8]
imul edx, dword [esp + 8], 0xcccccccc
add ecx, edx
mul edi
mov edi, 5
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov dword [esp + 0xc], edx
and eax, 1
add dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x2c]
mul edi
add eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
add eax, 0x30
mov byte [esp + 0x5c], al
mov eax, dword [esp + 8]
shrd eax, edx, 1
shr edx, 1
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 8], eax
mov eax, 9
cmp eax, edx
mov eax, 0
sbb eax, ecx
jae 0x10c0777
lea eax, [esp + 0x48]
mov dword [esp + 0x10], 0x14
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebp
lea esi, [esi]
mov edi, dword [esp + 8]
mov ebp, dword [esp + 0xc]
mov eax, 0xcccccccd
mov esi, 0xcccccccd
mov ebx, dword [esp + 0x10]
mov ecx, edi
mov dword [esp + 0x24], ebx
sub ebx, 1
add ecx, ebp
adc ecx, 0
mov dword [esp + 0x10], ebx
xor ebx, ebx
mul ecx
mov eax, edx
and edx, 0xfffffffc
shr eax, 2
add edx, eax
mov eax, edi
sub ecx, edx
mov edx, ebp
sub eax, ecx
sbb edx, ebx
mov ebx, dword [esp + 0x10]
imul ebp, edx, 0xcccccccd
imul edx, eax, 0xcccccccc
add ebp, edx
mul esi
mov edi, edx
xor edx, edx
mov esi, eax
and eax, 1
add edi, ebp
lea ebp, [edx + edx*4]
mov dword [esp + 0x1c], ebp
mov ebp, 5
mul ebp
mov edx, dword [esp + 0x20]
add eax, ecx
shrd esi, edi, 1
mov ecx, ebx
add eax, 0x30
shr edi, 1
mov byte [edx + ebx], al
mov edx, dword [esp + 8]
mov ebx, 9
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], edi
xor edi, edi
cmp ebx, edx
mov dword [esp + 8], esi
sbb edi, eax
jb 0x10c0490
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
test edi, edi
js 0x10c0730
mov edx, 0x16
mov eax, 0x15
sub edx, ecx
sub eax, ecx
mov dword [esp + 8], edx
mov edi, dword [esp + 0x20]
add edi, ecx
mov ecx, edi
mov edi, dword [esp + 8]
cmp edi, 4
jae 0x10c06e0
test edi, edi
je 0x10c0357
movzx edx, byte [ecx]
and edi, 2
mov byte [esi], dl
je 0x10c0357
mov edi, dword [esp + 8]
movzx ecx, word [ecx + edi - 2]
mov word [esi + edi - 2], cx
jmp 0x10c0357
fld qword [ebx]
jmp 0x10c0337
xor ecx, ecx
mov edx, 0x20
call fcn.010be740
test eax, eax
je 0x10c06d0
mov byte [ebx + 0x12], 0
add esp, 0x6c
mov eax, 7
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, ecx
xor edx, 0x80000000
or eax, edx
je 0x10c0758
mov edx, dword [esp + 0x28]
xor ecx, ecx
mov edi, 0xcccccccd
mov byte [esp + 0x5d], 0
mov dword [esp + 0x14], 0
neg edx
sbb ecx, dword [esp + 0x2c]
mov eax, edx
mov edx, ecx
mov ecx, eax
mov dword [esp + 8], eax
add ecx, edx
mov dword [esp + 0xc], edx
adc ecx, 0
mov eax, ecx
mul edi
mov eax, edx
and edx, 0xfffffffc
shr eax, 2
add edx, eax
sub ecx, edx
mov edx, dword [esp + 8]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0xc]
sub edx, dword [esp + 0x10]
sbb ecx, dword [esp + 0x14]
mov dword [esp + 8], edx
imul ecx, ecx, 0xcccccccd
imul eax, dword [esp + 8], 0xcccccccc
add ecx, eax
mov eax, dword [esp + 8]
mul edi
mov edi, 5
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov dword [esp + 0xc], edx
and eax, 1
add dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x2c]
mul edi
add eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
add eax, 0x30
mov byte [esp + 0x5c], al
mov eax, dword [esp + 8]
shrd eax, edx, 1
shr edx, 1
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 8], eax
mov eax, ecx
cmp edx, 0xfffffff7
sbb eax, 0xffffffff
jl 0x10c046d
lea edx, [esp + 0x48]
mov eax, 2
mov ecx, 0x13
mov dword [esp + 8], 3
mov dword [esp + 0x20], edx
mov edi, 0x13
jmp 0x10c074b
mov esi, dword [ebx + 8]
movzx eax, word [ebx + 0x10]
jmp 0x10c02fa
mov edi, dword [ecx]
mov dword [esi], edi
mov edx, dword [esp + 8]
mov edi, dword [edx + ecx - 4]
mov dword [esi + edx - 4], edi
lea edi, [esi + 4]
and edi, 0xfffffffc
sub esi, edi
add edx, esi
sub ecx, esi
and edx, 0xfffffffc
cmp edx, 4
jb 0x10c0357
mov dword [esp + 8], eax
and edx, 0xfffffffc
xor esi, esi
mov eax, dword [ecx + esi]
mov dword [edi + esi], eax
add esi, 4
cmp esi, edx
jb 0x10c0711
mov eax, dword [esp + 8]
jmp 0x10c0357
mov edi, dword [esp + 0x24]
mov edx, 0x16
mov eax, 0x15
sub edi, 2
sub edx, edi
mov ecx, edi
sub eax, edi
mov dword [esp + 8], edx
mov byte [esp + edi + 0x48], 0x2d
jmp 0x10c055c
mov eax, 0x38
mov dword [esp + 8], 0xcccccccc
mov word [esp + 0x5c], ax
mov dword [esp + 0xc], 0xccccccc
jmp 0x10c046d
lea edi, [esp + 0x48]
mov eax, 1
mov ecx, 0x14
mov dword [esp + 8], 2
mov dword [esp + 0x20], edi
jmp 0x10c055c