Function at 0x4a67b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x78
mov eax, edx
mov esi, edx
mov edi, edx
mov edx, 0xcccccccd
mov dword [ebp - 0x1c], 0
shld eax, ecx, 0x1f
shr esi, 1
add esi, eax
adc esi, 0
mov eax, esi
mul edx
cmp ecx, 0xa
mov eax, edi
sbb eax, 0
jb 0x4a6899
shr edx, 2
lea eax, [edx + edx*4]
sub esi, eax
mov eax, ecx
and eax, 1
lea eax, [eax + esi*2]
test eax, eax
jne 0x4a6899
mov dword [ebp - 0x14], 0
nop word [eax + eax]
mov eax, ecx
mov dword [ebp - 0x20], ecx
mov ecx, edi
mov dword [ebp - 0x10], edi
shr edi, 1
mov edx, 0xcccccccd
mov ebx, 0xcccccccd
shld ecx, eax, 0x1f
mov esi, ecx
add esi, edi
adc esi, 0
mov eax, esi
mul edx
shr edx, 2
lea eax, [edx + edx*4]
sub esi, eax
sub ecx, esi
mov eax, ecx
sbb edi, 0
imul ecx, ecx, 0xcccccccc
inc dword [ebp - 0x14]
mul ebx
imul edi, edi, 0xcccccccd
add ecx, edx
mov ebx, eax
add edi, ecx
mov ecx, edi
mov esi, edi
shld ecx, eax, 0x1f
shr esi, 1
add esi, ecx
mov ecx, 0xcccccccd
adc esi, 0
mov eax, esi
mul ecx
cmp dword [ebp - 0x20], 0x64
sbb dword [ebp - 0x10], 0
jb 0x4a68ae
shr edx, 2
mov ecx, ebx
lea eax, [edx + edx*4]
sub esi, eax
mov eax, ebx
and eax, 1
lea eax, [eax + esi*2]
test eax, eax
je 0x4a6810
jmp 0x4a68a0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x10], 0
jne 0x4a68bd
jmp 0x4a6a4a
mov ecx, ebx
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x10], 0
je 0x4a6a4a
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x18], ecx
cmp ecx, 0xa
mov ecx, edi
mov esi, 0
sbb ecx, 0
mov dword [ebp - 0x28], eax
jb 0x4a693d
mov eax, dword [ebp - 0x18]
xor esi, esi
mov ecx, edi
nop dword [eax]
mov dword [ebp - 0x10], esi
mov esi, ecx
mov dword [ebp - 0x20], ecx
shr ecx, 1
mov dword [ebp - 0x1c], eax
mov edx, 0xcccccccd
shld esi, eax, 0x1f
mov ebx, esi
add ebx, ecx
adc ebx, 0
mov eax, ebx
mul edx
shr edx, 2
lea eax, [edx + edx*4]
mov edx, 0xcccccccd
sub ebx, eax
sub esi, ebx
mov eax, esi
sbb ecx, 0
imul esi, esi, 0xcccccccc
mul edx
imul ecx, ecx, 0xcccccccd
add esi, edx
mov edx, 0x63
add ecx, esi
mov esi, dword [ebp - 0x10]
inc esi
cmp edx, dword [ebp - 0x1c]
mov edx, 0
sbb edx, dword [ebp - 0x20]
jb 0x4a68e0
mov ebx, dword [ebp - 0x28]
mov ecx, 0
mov eax, ebx
sub eax, esi
cmovb eax, ecx
mov dword [ebp - 0x1c], eax
mov eax, esi
sub eax, ebx
cmovb eax, ecx
cmp eax, 2
jb 0x4a69c7
add eax, dword [ebp - 0x14]
cmp esi, ebx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], esi
cmovb ebx, esi
not ebx
add ebx, esi
mov dword [ebp - 0x20], eax
shrd ecx, edi, 1
shr edi, 1
mov edx, 0xcccccccd
mov esi, ecx
add esi, edi
adc esi, 0
mov eax, esi
mul edx
shr edx, 2
lea eax, [edx + edx*4]
mov edx, 0xcccccccd
sub esi, eax
sub ecx, esi
mov eax, ecx
sbb edi, 0
imul ecx, ecx, 0xcccccccc
mul edx
imul edi, edi, 0xcccccccd
add ecx, edx
add edi, ecx
mov ecx, eax
dec ebx
jne 0x4a6970
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x14], eax
cmp esi, ebx
ja 0x4a69ce
jmp 0x4a6a4a
mov ecx, dword [ebp - 0x18]
cmp esi, ebx
jbe 0x4a6a4a
mov esi, edi
mov eax, edi
mov dword [ebp - 0x18], ecx
shld esi, ecx, 0x1f
shr eax, 1
mov ecx, 0xcccccccd
mov ebx, esi
mov dword [ebp - 0x10], eax
add ebx, eax
adc ebx, 0
mov eax, ebx
mul ecx
mov ecx, dword [ebp - 0x10]
shr edx, 2
lea eax, [edx + edx*4]
mov edx, 0xcccccccd
sub ebx, eax
sub esi, ebx
mov eax, esi
sbb ecx, 0
imul esi, esi, 0xcccccccc
mul edx
mov ebx, eax
add esi, edx
imul eax, ecx, 0xcccccccd
mov edx, 0xa
mov dword [ebp - 0x10], eax
add eax, esi
lea ecx, [eax + eax*4]
mov eax, ebx
mul edx
lea ecx, [edx + ecx*2]
mov edx, dword [ebp - 0x18]
sub edx, eax
sbb edi, ecx
mov ecx, 4
inc dword [ebp - 0x14]
xor eax, eax
cmp ecx, edx
sbb eax, edi
adc ebx, 0
adc esi, dword [ebp - 0x10]
mov ecx, ebx
mov edi, esi
cmp ecx, 0x64
mov eax, edi
sbb eax, 0
jb 0x4a6ab2
mov edx, edi
xor edi, edi
nop dword [eax + eax]
mov dword [ebp - 0x10], edx
mov ebx, ecx
push 0
push 0x64
push edx
push ecx
call sym.___udivdi3
add esp, 0x10
mov esi, eax
imul eax, eax, 0x64
mov ecx, ebx
sub ecx, eax
movzx eax, word [ecx + ecx + 0x4d4a06]
mov ecx, esi
mov esi, 0
mov word [ebp + edi - 0x5e], ax
mov eax, 0x270f
add edi, 0xfffffffe
cmp eax, ebx
sbb esi, dword [ebp - 0x10]
jb 0x4a6a60
mov esi, dword [ebp - 0x14]
mov edx, ecx
mov eax, esi
sub eax, edi
add edi, 0x28
cmp edx, 9
ja 0x4a6ac3
jmp 0x4a6ae5
mov esi, dword [ebp - 0x14]
mov edi, 0x28
mov edx, ecx
mov eax, esi
cmp edx, 9
jbe 0x4a6ae5
mov ebx, ecx
inc eax
movzx ecx, bl
imul edx, ecx, 0xcd
shr edx, 0xb
lea ecx, [edx + edx]
lea ecx, [ecx + ecx*4]
sub bl, cl
or bl, 0x30
mov byte [ebp + edi - 0x85], bl
dec edi
movzx ecx, byte [ebp + 0xc]
cmp eax, esi
jne 0x4a6af7
cmp dword [ebp - 0x1c], 0
jne 0x4a6af7
mov esi, edi
jmp 0x4a6b02
mov esi, edi
mov byte [ebp + edi - 0x85], 0x2e
dec esi
movzx ebx, byte [ebp + 8]
xor cl, 1
lea edi, [ebp - 0x84]
add dl, 0x30
shl cl, 5
mov byte [esi + edi - 1], dl
lea edx, [esi + edi - 1]
or cl, 0x45
cmp eax, 0xa
mov byte [ebp - 0x23], cl
jae 0x4a6b34
add al, 0x30
mov byte [ebp - 0x22], al
mov eax, 2
jmp 0x4a6b45
movzx eax, word [eax + eax + 0x4d4a06]
mov word [ebp - 0x22], ax
mov eax, 3
mov ecx, dword [ebp - 0x1c]
mov edi, 0x29
mov word [ebp - 0x5c], 2
mov dword [ebp - 0x58], edx
lea edx, [ebp - 0x23]
sub edi, esi
mov esi, 0x4d3c57
mov dword [ebp - 0x54], edi
mov word [ebp - 0x50], 0
mov edi, 0x4d3c56
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp + 0x10]
mov word [ebp - 0x44], 2
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], eax
mov edx, 0x4d3c58
mov eax, dword [ecx + 0x18]
and eax, 1
cmove esi, edx
test bl, bl
mov edx, 1
cmovne edi, esi
cmovne edx, eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edx
lea edx, [ebp - 0x38]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 3
call sym.core::fmt::Formatter::pad_formatted_parts::hcdb86b755fe2e917
add esp, 0x78
pop esi
pop edi
pop ebx
pop ebp
ret