Function at 0x46b840
Capabilities:
Encode data using base64
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
xor edi, edi
cmp edx, 0x3fffffff
jbe 0x46b858
jmp 0x46bfb3
mov dword [ebp - 0x1c], ecx
lea eax, [edx*4]
mov ecx, 0xaaaaaaab
mov esi, edx
mul ecx
mov ecx, edx
shr ecx, 1
add ecx, 3
mov ebx, ecx
and ebx, 0x7ffffffc
cmp ebx, 5
jae 0x46bfb3
mov eax, esi
mov edx, 0xaaaaaaab
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], esi
mov esi, ebx
mov dword [ebp - 0x20], ebx
mul edx
shr edx, 1
lea eax, [edx + edx*2]
cmp eax, 3
mov dword [ebp - 0x18], eax
jb 0x46be5e
mov esi, dword [ebp - 0x18]
mov edx, 0xaaaaaaab
shr ecx, 2
lea eax, [esi - 3]
mov dword [ebp - 0x2c], esi
mov esi, ebx
mul edx
mov eax, dword [ebp - 0x1c]
shr edx, 1
cmp edx, ecx
cmovb ecx, edx
mov edx, dword [ebp + 8]
cmp ecx, 8
jb 0x46bd42
mov edx, ebx
lea ebx, [ecx + 1]
mov edi, 8
not ecx
mov eax, ebx
and eax, 7
cmovne edi, eax
sub ebx, edi
add ecx, edi
lea esi, [ebx*4]
lea eax, [ebx + ebx*2]
sub edx, esi
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x18]
mov edi, esi
sub edx, eax
add eax, esi
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp + 8]
lea ebx, [edx + ebx*4]
mov dword [ebp - 0x24], ebx
mov ebx, edx
nop word cs:[eax + eax]
nop
movdqu xmm0, xmmword [edi]
movdqa xmm4, xmmword [0x5ab1d0]
movq xmm7, qword [edi + 0x10]
movdqa xmm5, xmmword [0x5ab1f0]
pxor xmm1, xmm1
add edi, 0x18
movdqa xmm2, xmm4
movdqa xmm3, xmm0
movdqa xmm6, xmm0
pand xmm3, xmm4
pandn xmm2, xmm7
movdqa xmm4, xmm0
pand xmm6, xmm5
por xmm3, xmm2
movdqa xmm2, xmmword [0x5ab1e0]
punpckhbw xmm4, xmm1
punpcklbw xmm3, xmm1
pand xmm3, xmm2
pandn xmm2, xmm4
por xmm2, xmm3
movdqa xmm3, xmm5
movdqa xmm5, xmmword [0x5ab210]
pandn xmm3, xmm7
pshufd xmm2, xmm2, 0xd8
por xmm6, xmm3
movdqa xmm3, xmmword [0x5ab200]
pshufhw xmm2, xmm2, 0x6c
punpcklbw xmm6, xmm1
pshufd xmm2, xmm2, 0x6c
pshuflw xmm2, xmm2, 0x6c
pshufhw xmm2, xmm2, 0xc6
pand xmm6, xmm3
pandn xmm3, xmm4
packuswb xmm2, xmm2
por xmm3, xmm6
movdqa xmm6, xmm5
punpcklbw xmm2, xmm1
pshuflw xmm3, xmm3, 0xc6
pandn xmm6, xmm7
movdqa xmm7, xmmword [0x5ab230]
pshufhw xmm3, xmm3, 0xc6
pshufd xmm3, xmm3, 0x6c
pshuflw xmm3, xmm3, 0x39
pshufhw xmm3, xmm3, 0x39
packuswb xmm3, xmm3
pand xmm0, xmm5
movdqa xmm5, xmmword [0x5ab240]
por xmm0, xmm6
movdqa xmm6, xmmword [0x5ab220]
punpcklbw xmm3, xmm1
punpcklbw xmm0, xmm1
pand xmm0, xmm6
pandn xmm6, xmm4
movdqa xmm4, xmm2
psllw xmm2, 4
psrlw xmm4, 2
por xmm6, xmm0
pand xmm2, xmmword [0x5ab2c0]
psubw xmm7, xmm4
pshufd xmm0, xmm6, 0x27
movdqa xmm6, xmmword [0x5ab260]
psrlw xmm7, 8
pshufhw xmm0, xmm0, 0x6c
pand xmm7, xmm5
movdqa xmm5, xmmword [0x5ab250]
pshufd xmm0, xmm0, 0x27
pshuflw xmm0, xmm0, 0xc6
pshufhw xmm0, xmm0, 0xc6
packuswb xmm0, xmm0
psubw xmm5, xmm4
punpcklbw xmm0, xmm1
movdqa xmm1, xmmword [0x5ab280]
psrlw xmm5, 8
pand xmm5, xmm6
movdqa xmm6, xmmword [0x5ab270]
psubw xmm6, xmm4
psrlw xmm6, 8
pand xmm6, xmm1
movdqa xmm1, xmmword [0x5ab2a0]
paddw xmm6, xmm5
movdqa xmm5, xmmword [0x5ab290]
psubw xmm5, xmm4
psrlw xmm5, 8
pand xmm5, xmm1
movdqa xmm1, xmmword [0x5ab2b0]
paddw xmm5, xmm4
movdqa xmm4, xmm3
psllw xmm3, 2
paddw xmm5, xmm6
movdqa xmm6, xmmword [0x5ab270]
psrlw xmm4, 4
pand xmm3, xmmword [0x5ab2e0]
por xmm4, xmm2
movdqa xmm2, xmmword [0x5ab230]
paddw xmm7, xmm1
paddw xmm7, xmm5
movdqa xmm5, xmmword [0x5ab250]
psubw xmm6, xmm4
psrlw xmm6, 8
psubw xmm2, xmm4
pand xmm6, xmmword [0x5ab280]
psrlw xmm2, 8
psubw xmm5, xmm4
pand xmm2, xmmword [0x5ab240]
psrlw xmm5, 8
pand xmm5, xmmword [0x5ab260]
paddw xmm2, xmm1
movdqa xmm1, xmmword [0x5ab2d0]
paddw xmm6, xmm5
movdqa xmm5, xmmword [0x5ab290]
psubw xmm5, xmm4
psrlw xmm5, 8
pand xmm5, xmmword [0x5ab2a0]
paddw xmm5, xmm4
movdqa xmm4, xmm0
pand xmm0, xmmword [0x5ab2f0]
psrlw xmm4, 6
paddw xmm5, xmm6
movdqa xmm6, xmmword [0x5ab260]
por xmm4, xmm3
movdqa xmm3, xmmword [0x5ab230]
paddw xmm2, xmm5
movdqa xmm5, xmmword [0x5ab240]
pand xmm2, xmm1
movdqa xmm1, xmmword [0x5ab280]
psubw xmm3, xmm4
psrlw xmm3, 8
pand xmm3, xmm5
movdqa xmm5, xmmword [0x5ab250]
psubw xmm5, xmm4
psrlw xmm5, 8
pand xmm5, xmm6
movdqa xmm6, xmmword [0x5ab270]
psubw xmm6, xmm4
psrlw xmm6, 8
pand xmm6, xmm1
movdqa xmm1, xmmword [0x5ab2a0]
paddw xmm6, xmm5
movdqa xmm5, xmmword [0x5ab290]
psubw xmm5, xmm4
psrlw xmm5, 8
pand xmm5, xmm1
movdqa xmm1, xmmword [0x5ab2b0]
paddw xmm5, xmm4
movdqa xmm4, xmmword [0x5ab230]
paddw xmm5, xmm6
movdqa xmm6, xmmword [0x5ab270]
paddw xmm3, xmm1
paddw xmm3, xmm5
movdqa xmm5, xmmword [0x5ab250]
psubw xmm4, xmm0
psubw xmm6, xmm0
psrlw xmm4, 8
psrlw xmm6, 8
pand xmm4, xmmword [0x5ab240]
pand xmm6, xmmword [0x5ab280]
psubw xmm5, xmm0
psrlw xmm5, 8
pand xmm5, xmmword [0x5ab260]
paddw xmm4, xmm1
movdqa xmm1, xmmword [0x5ab300]
paddw xmm6, xmm5
movdqa xmm5, xmmword [0x5ab290]
psubw xmm5, xmm0
psrlw xmm5, 8
pand xmm5, xmmword [0x5ab2a0]
paddw xmm5, xmm0
movdqa xmm0, xmmword [0x5ab2d0]
paddw xmm5, xmm6
paddw xmm4, xmm5
pand xmm3, xmm0
movdqa xmm6, xmm0
pand xmm4, xmm0
movdqa xmm0, xmm3
pand xmm7, xmm6
punpckhwd xmm3, xmm4
punpcklwd xmm0, xmm4
pshufd xmm4, xmm3, 0xfa
pshufd xmm3, xmm3, 0x50
pshufd xmm5, xmm0, 0xfa
pshufd xmm0, xmm0, 0x50
packuswb xmm3, xmm4
movdqa xmm4, xmm1
packuswb xmm0, xmm5
movdqa xmm5, xmm1
pandn xmm4, xmm3
pandn xmm5, xmm0
movdqa xmm0, xmm7
punpckhwd xmm7, xmm2
punpcklwd xmm0, xmm2
pshufd xmm2, xmm7, 0xf6
pshufd xmm3, xmm7, 0xd4
pshufd xmm6, xmm0, 0xf6
pshufd xmm0, xmm0, 0xd4
packuswb xmm3, xmm2
packuswb xmm0, xmm6
pand xmm3, xmm1
pand xmm0, xmm1
por xmm3, xmm4
por xmm0, xmm5
movdqu xmmword [ebx + 0x10], xmm3
movdqu xmmword [ebx], xmm0
add ebx, 0x20
add ecx, 8
jne 0x46b920
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
movdqa xmm5, xmmword [0x5ab370]
movdqa xmm7, xmmword [0x5ab380]
movdqa xmm1, xmmword [0x5ab390]
movdqa xmm0, xmmword [0x5ab2d0]
nop word cs:[eax + eax]
nop dword [eax]
test esi, esi
je 0x46bfb0
movzx ebx, byte [eax]
mov dword [ebp - 0x28], esi
movzx esi, byte [eax + 1]
mov dword [ebp - 0x24], edx
movzx edx, byte [eax + 2]
movdqa xmm6, xmmword [0x5ab330]
movdqa xmm4, xmmword [0x5ab350]
movdqa xmm2, xmmword [0x5ab310]
add eax, 3
mov ecx, ebx
mov edi, esi
shl ebx, 4
and esi, 0xf
and ebx, 0x30
shr edi, 4
shr ecx, 2
or edi, ebx
mov ebx, edx
movd xmm3, ecx
and edx, 0x3f
mov ecx, dword [ebp - 0x2c]
shr ebx, 6
pinsrw xmm3, edi, 1
lea esi, [ebx + esi*4]
mov ebx, dword [ebp - 0x20]
pinsrw xmm3, esi, 2
mov esi, dword [ebp - 0x28]
pinsrw xmm3, edx, 3
mov edx, dword [ebp - 0x24]
add ecx, 0xfffffffd
psubw xmm6, xmm3
psubw xmm4, xmm3
psubw xmm2, xmm3
mov dword [ebp - 0x2c], ecx
psrlw xmm6, 8
psrlw xmm4, 8
psrlw xmm2, 8
pand xmm6, xmmword [0x5ab340]
pand xmm4, xmmword [0x5ab360]
pand xmm2, xmmword [0x5ab320]
add esi, 0xfffffffc
cmp ecx, 2
lea edi, [edx + 4]
paddw xmm4, xmm6
movdqa xmm6, xmm5
psubw xmm6, xmm3
psrlw xmm6, 8
pand xmm6, xmm7
paddw xmm6, xmm3
paddw xmm6, xmm4
paddw xmm6, xmm2
paddw xmm6, xmm1
pand xmm6, xmm0
packuswb xmm6, xmm6
movd dword [edx], xmm6
mov edx, edi
ja 0x46bd70
cmp esi, 4
jb 0x46bfb0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
sub edx, eax
add esi, eax
mov eax, edx
mov ebx, edx
lea ecx, [ebp + edx - 0xf]
mov dword [ebp - 0x14], edx
xor eax, 3
push eax
push 0
push ecx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0xf]
push ebx
push esi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
movzx ecx, byte [ebp - 0xf]
mov esi, 0x3d
mov edx, 0x33
mov ebx, 0x19
mov eax, ecx
shl ecx, 4
shr eax, 2
and ecx, 0x30
sub esi, eax
sub edx, eax
sub ebx, eax
shr esi, 8
shr edx, 8
shr ebx, 8
and esi, 0xf1
and edx, 0xb5
and ebx, 6
add edx, esi
mov esi, 0x3e
add ebx, eax
sub esi, eax
movzx eax, byte [ebp - 0xe]
add ebx, edx
shr esi, 8
and esi, 3
add ebx, esi
mov esi, 0x3d
mov edx, eax
add bl, 0x41
and eax, 0xf
shr edx, 4
mov byte [edi], bl
mov ebx, 0x19
or edx, ecx
mov ecx, 0x33
sub esi, edx
sub ecx, edx
sub ebx, edx
shr esi, 8
shr ecx, 8
shr ebx, 8
and esi, 0xf1
and ecx, 0xb5
and ebx, 6
add ecx, esi
mov esi, 0x3e
add ebx, edx
sub esi, edx
movzx edx, byte [ebp - 0xd]
add ebx, ecx
mov ecx, 0x33
shr esi, 8
and esi, 3
add ebx, esi
mov esi, 0x3e
shr edx, 6
add bl, 0x41
lea eax, [edx + eax*4]
mov edx, 0x3d
mov byte [edi + 1], bl
mov ebx, dword [ebp - 0x20]
sub edx, eax
sub ecx, eax
sub esi, eax
shr edx, 8
shr ecx, 8
shr esi, 8
and edx, 0xf1
and ecx, 0xb5
and esi, 3
add ecx, edx
mov edx, 0x19
sub edx, eax
shr edx, 8
and edx, 6
add edx, eax
mov eax, 0x3d
add edx, ecx
add edx, esi
add dl, 0x41
cmp dword [ebp - 0x14], 1
movzx ecx, dl
cmove ecx, eax
mov byte [edi + 2], cl
mov byte [edi + 3], 0x3d
mov edi, dword [ebp + 8]
mov eax, edi
mov edx, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret