Function at 0x100553ae
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xca4
mov eax, dword [0x10086084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc9c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc94], eax
mov dword [ebp - 0xca0], edx
mov esi, dword [edi + 0x870]
lea eax, [esi*8 + 0x100]
mov dword [ebp - 0xca4], eax
cmp eax, 0x320
jb 0x10055404
xor eax, eax
jmp 0x1005568a
add esi, 0x20
lea eax, [ebp - 0x644]
shl esi, 4
push esi
push 0
push eax
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0xc84]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [edi + 0x34]
add esp, 0x18
mov esi, dword [ebp - 0xca0]
mov dword [ebp - 0xc98], eax
mov eax, dword [ebp - 0xc94]
shl eax, 2
mov dword [ebp - 0xc90], eax
mov eax, ebx
mov ebx, dword [ebp - 0xc9c]
shl eax, 2
mov dword [ebp - 0xc88], eax
mov eax, dword [edi + 0x30]
mov dword [ebp - 0xc8c], eax
mov dword [ebp - 0xc94], 0x400
xor edx, edx
mov ecx, esi
and ecx, 7
inc edx
shl edx, cl
mov eax, esi
mov ecx, dword [ebp - 0xc98]
shr eax, 3
test byte [eax + ecx], dl
mov eax, dword [ebp - 0xc8c]
jne 0x10055496
movzx eax, byte [eax + esi]
jmp 0x1005552f
mov dl, byte [eax + esi]
mov eax, dword [edi + 0x2c]
mov ecx, dword [ebp - 0xc88]
mov eax, dword [ecx + eax]
cmp dl, 7
jae 0x100554ee
cmp eax, 0x400
jae 0x100554bb
movzx ecx, byte [eax + edi + 0x45c]
jmp 0x100554db
cmp eax, 0x80000
jae 0x100554d2
shr eax, 9
movzx ecx, byte [eax + edi + 0x45c]
add ecx, 0x12
jmp 0x100554db
shr eax, 0x11
movzx ecx, al
add ecx, 0x22
movzx eax, dl
lea eax, [eax + ecx*8]
mov ecx, dword [ebp - 0xc88]
add eax, 0x100
jmp 0x10055526
cmp eax, 0x400
jae 0x100554ff
movzx eax, byte [eax + edi + 0x45c]
jmp 0x1005551f
cmp eax, 0x80000
jae 0x10055516
shr eax, 9
movzx eax, byte [eax + edi + 0x45c]
add eax, 0x12
jmp 0x1005551f
shr eax, 0x11
movzx eax, al
add eax, 0x22
lea eax, [eax*8 + 0x107]
add ecx, 4
mov dword [ebp - 0xc88], ecx
xor edx, edx
inc esi
inc word [ebp + eax*2 - 0x644]
mov ecx, ebx
and ecx, 7
inc edx
shl edx, cl
mov eax, ebx
mov ecx, dword [ebp - 0xc98]
shr eax, 3
test byte [eax + ecx], dl
mov eax, dword [ebp - 0xc8c]
jne 0x10055561
movzx eax, byte [eax + ebx]
jmp 0x100555fa
mov dl, byte [eax + ebx]
mov eax, dword [edi + 0x2c]
mov ecx, dword [ebp - 0xc90]
mov eax, dword [ecx + eax]
cmp dl, 7
jae 0x100555b9
cmp eax, 0x400
jae 0x10055586
movzx ecx, byte [eax + edi + 0x45c]
jmp 0x100555a6
cmp eax, 0x80000
jae 0x1005559d
shr eax, 9
movzx ecx, byte [eax + edi + 0x45c]
add ecx, 0x12
jmp 0x100555a6
shr eax, 0x11
movzx ecx, al
add ecx, 0x22
movzx eax, dl
lea eax, [eax + ecx*8]
mov ecx, dword [ebp - 0xc90]
add eax, 0x100
jmp 0x100555f1
cmp eax, 0x400
jae 0x100555ca
movzx eax, byte [eax + edi + 0x45c]
jmp 0x100555ea
cmp eax, 0x80000
jae 0x100555e1
shr eax, 9
movzx eax, byte [eax + edi + 0x45c]
add eax, 0x12
jmp 0x100555ea
shr eax, 0x11
movzx eax, al
add eax, 0x22
lea eax, [eax*8 + 0x107]
add ecx, 4
mov dword [ebp - 0xc90], ecx
inc ebx
inc word [ebp + eax*2 - 0xc84]
sub dword [ebp - 0xc94], 1
jne 0x1005546d
mov edi, dword [ebp - 0xca4]
xor ebx, ebx
mov ecx, ebx
test edi, edi
je 0x10055688
mov edx, 0x100
movzx eax, word [ebp + ecx*2 - 0x644]
cmp ax, dx
jae 0x10055639
movzx esi, byte [eax + 0x1000b008]
jmp 0x10055646
shr eax, 8
movzx esi, byte [eax + 0x1000b008]
add esi, 8
movzx eax, word [ebp + ecx*2 - 0xc84]
cmp ax, dx
jae 0x1005565c
movzx edx, byte [eax + 0x1000b008]
jmp 0x10055669
shr eax, 8
movzx edx, byte [eax + 0x1000b008]
add edx, 8
mov eax, dword [esi*4 + 0x1000afc0]
sub eax, dword [edx*4 + 0x1000afc0]
cdq
xor eax, edx
sub eax, edx
mov edx, 0x100
add ebx, eax
inc ecx
cmp ecx, edi
jb 0x10055623
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10083b20
mov esp, ebp
pop ebp
ret 0x10