Function at 0x435560
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.007ddf80
add esp, 4
test eax, eax
sete cl
test al, 3
setne dl
mov edi, 0x3d
or dl, cl
jne 0x435862
movzx ecx, byte [ebx + eax - 1]
mov dword [esp + 0xc], 0
mov ebp, 0
cmp cl, 0x3d
mov edx, eax
jne 0x4355f4
mov eax, ecx
cmp byte [ebx + edx - 2], 0x3d
jne 0x4355e7
cmp byte [ebx + edx - 3], 0x3d
je 0x435862
mov ebp, 2
mov dword [esp + 0xc], 0
jmp 0x4355f2
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 0xea72fd
push 0x72
push eax
mov esi, edx
call fcn.004055b0
add esp, 0xc
test eax, eax
je 0x4357ae
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 [0xea7306]
movups xmmword [esp + 0x3f], xmm0
movups xmm0, xmmword [0xea7316]
movups xmmword [esp + 0x4f], xmm0
movups xmm0, xmmword [0xea7326]
movups xmmword [esp + 0x5f], xmm0
movups xmm0, xmmword [0xea7336]
movups xmmword [esp + 0x6f], xmm0
movups xmm0, xmmword [0xea7346]
movups xmmword [esp + 0x7f], xmm0
sub esi, ecx
je 0x4357b8
mov dword [esp + 4], eax
mov ebp, eax
nop
movzx eax, byte [ebx]
movzx ecx, byte [esp + eax + 0x14]
cmp ecx, 0xff
je 0x435847
mov edi, ebx
movzx eax, byte [ebx + 1]
movzx eax, byte [esp + eax + 0x14]
cmp eax, 0xff
je 0x435847
movzx edx, byte [edi + 2]
movzx ebx, byte [esp + edx + 0x14]
cmp ebx, 0xff
je 0x435847
movzx edx, byte [edi + 3]
movzx edx, byte [esp + edx + 0x14]
cmp dl, 0xff
je 0x435847
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 0x435700
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 0x4357c4
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 0x435862
mov edi, 0x1b
jmp 0x435862
mov ebp, eax
movzx ecx, byte [esp + 3]
cmp cl, 0x3d
jne 0x435792
mov dword [esp + 4], eax
movzx eax, byte [ebx]
cmp eax, 0x3d
jne 0x4357e9
xor edx, edx
mov ecx, 1
movzx eax, byte [ebx + 1]
cmp eax, 0x3d
jne 0x435804
cmp ecx, dword [esp + 8]
jae 0x435847
inc ecx
jmp 0x435812
movzx edx, byte [esp + eax + 0x14]
cmp edx, 0xff
je 0x435847
shl edx, 6
xor ecx, ecx
movzx eax, byte [ebx + 1]
cmp eax, 0x3d
je 0x4357e0
movzx eax, byte [esp + eax + 0x14]
cmp eax, 0xff
je 0x435847
or edx, eax
movzx eax, byte [ebx + 2]
cmp eax, 0x3d
jne 0x435827
cmp ecx, dword [esp + 8]
jae 0x435847
shl edx, 6
inc ecx
jmp 0x435838
movzx eax, byte [esp + eax + 0x14]
cmp eax, 0xff
je 0x435847
shl edx, 6
or edx, eax
movzx eax, byte [ebx + 3]
cmp eax, 0x3d
jne 0x43586f
cmp ecx, dword [esp + 8]
jb 0x435876
push 0xea72fd
push 0xb8
push dword [esp + 0xc]
call fcn.00405970
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 0x435847
cmp byte [esp + 0xc], 0
je 0x435885
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 0x435798