Function at 0x1a7190
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x114
mov esi, dword [esp + 0x130]
mov eax, dword [esp + 0x12c]
mov ebx, dword [esp + 0x128]
mov dword [eax], 0
mov dword [esi], 0
push ebx
call fcn.004f8b98
add esp, 4
test eax, eax
sete cl
test al, 3
setne dl
mov edi, 0x3d
or dl, cl
jne 0x1a7492
movzx ecx, byte [ebx + eax - 1]
mov dword [esp + 0xc], 0
mov ebp, 0
cmp cl, 0x3d
mov edx, eax
jne 0x1a7224
mov eax, ecx
cmp byte [ebx + edx - 2], 0x3d
jne 0x1a7217
cmp byte [ebx + edx - 3], 0x3d
je 0x1a7492
mov ebp, 2
mov dword [esp + 0xc], 0
jmp 0x1a7222
mov ebp, 1
mov cl, 1
mov dword [esp + 0xc], ecx
mov ecx, eax
mov edi, esi
mov byte [esp + 3], cl
cmp cl, 0x3d
sete byte [esp + 4]
shr edx, 2
lea eax, [edx + edx*2]
sub eax, ebp
mov dword [esp + 0x10], eax
inc eax
push 0x7537bd
push 0x72
push eax
mov esi, edx
call fcn.001771e0
add esp, 0xc
test eax, eax
je 0x1a73de
mov dword [esp + 8], ebp
xor ecx, ecx
movzx edx, byte [esp + 4]
mov cl, dl
pcmpeqd xmm0, xmm0
movdqu xmmword [esp + 0x44], xmm0
movdqu xmmword [esp + 0x34], xmm0
movdqu xmmword [esp + 0x54], xmm0
movdqu xmmword [esp + 0x64], xmm0
movdqu xmmword [esp + 0x74], xmm0
movdqu xmmword [esp + 0x84], xmm0
movdqu xmmword [esp + 0x104], xmm0
movdqu xmmword [esp + 0xf4], xmm0
movdqu xmmword [esp + 0xe4], xmm0
movdqu xmmword [esp + 0xd4], xmm0
movdqu xmmword [esp + 0xc4], xmm0
movdqu xmmword [esp + 0xb4], xmm0
movdqu xmmword [esp + 0xa4], xmm0
movdqu xmmword [esp + 0x94], xmm0
movdqu xmmword [esp + 0x24], xmm0
movdqu xmmword [esp + 0x14], xmm0
movups xmm0, xmmword [0x7537c6]
movups xmmword [esp + 0x3f], xmm0
movups xmm0, xmmword [0x7537d6]
movups xmmword [esp + 0x4f], xmm0
movups xmm0, xmmword [0x7537e6]
movups xmmword [esp + 0x5f], xmm0
movups xmm0, xmmword [0x7537f6]
movups xmmword [esp + 0x6f], xmm0
movups xmm0, xmmword [0x753806]
movups xmmword [esp + 0x7f], xmm0
sub esi, ecx
je 0x1a73e8
mov dword [esp + 4], eax
mov ebp, eax
nop
movzx eax, byte [ebx]
movzx ecx, byte [esp + eax + 0x14]
cmp ecx, 0xff
je 0x1a7477
mov edi, ebx
movzx eax, byte [ebx + 1]
movzx eax, byte [esp + eax + 0x14]
cmp eax, 0xff
je 0x1a7477
movzx edx, byte [edi + 2]
movzx ebx, byte [esp + edx + 0x14]
cmp ebx, 0xff
je 0x1a7477
movzx edx, byte [edi + 3]
movzx edx, byte [esp + edx + 0x14]
cmp dl, 0xff
je 0x1a7477
shl ecx, 0xc
shl eax, 6
or ecx, eax
or eax, ebx
shl bl, 6
or dl, bl
mov byte [ebp + 2], dl
shr eax, 2
mov byte [ebp + 1], al
shr ecx, 0xa
mov byte [ebp], cl
add ebp, 3
lea ebx, [edi + 4]
dec esi
jne 0x1a7330
add edi, 4
mov ebx, edi
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 4]
movzx ecx, byte [esp + 3]
cmp cl, 0x3d
je 0x1a73f4
mov edx, eax
mov ecx, dword [esp + 0x10]
mov byte [ebp], 0
mov eax, dword [esp + 0x12c]
mov dword [eax], edx
mov dword [edi], ecx
xor edi, edi
jmp 0x1a7492
mov edi, 0x1b
jmp 0x1a7492
mov ebp, eax
movzx ecx, byte [esp + 3]
cmp cl, 0x3d
jne 0x1a73c2
mov dword [esp + 4], eax
movzx eax, byte [ebx]
cmp eax, 0x3d
jne 0x1a7419
xor edx, edx
mov ecx, 1
movzx eax, byte [ebx + 1]
cmp eax, 0x3d
jne 0x1a7434
cmp ecx, dword [esp + 8]
jae 0x1a7477
inc ecx
jmp 0x1a7442
movzx edx, byte [esp + eax + 0x14]
cmp edx, 0xff
je 0x1a7477
shl edx, 6
xor ecx, ecx
movzx eax, byte [ebx + 1]
cmp eax, 0x3d
je 0x1a7410
movzx eax, byte [esp + eax + 0x14]
cmp eax, 0xff
je 0x1a7477
or edx, eax
movzx eax, byte [ebx + 2]
cmp eax, 0x3d
jne 0x1a7457
cmp ecx, dword [esp + 8]
jae 0x1a7477
shl edx, 6
inc ecx
jmp 0x1a7468
movzx eax, byte [esp + eax + 0x14]
cmp eax, 0xff
je 0x1a7477
shl edx, 6
or edx, eax
movzx eax, byte [ebx + 3]
cmp eax, 0x3d
jne 0x1a749f
cmp ecx, dword [esp + 8]
jb 0x1a74a6
push 0x7537bd
push 0xb8
push dword [esp + 0xc]
call fcn.001775a0
add esp, 0xc
mov edi, 0x3d
mov eax, edi
add esp, 0x114
pop esi
pop edi
pop ebx
pop ebp
ret
cmp byte [esp + eax + 0x14], 0xff
je 0x1a7477
cmp byte [esp + 0xc], 0
je 0x1a74b5
mov eax, edx
shr eax, 2
mov byte [ebp + 1], al
shr edx, 0xa
mov byte [ebp], dl
mov eax, dword [esp + 8]
xor eax, 3
add ebp, eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 4]
jmp 0x1a73c8