Function at 0x4a6350
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x70
mov esi, edx
mov edx, 0xcccccccd
mov eax, ecx
mov dword [ebp - 0x18], 0
mul edx
cmp ecx, 0xa
mov dword [ebp - 0x20], esi
jb 0x4a6466
shr edx, 2
mov edi, ecx
xor esi, esi
and edx, 0xfffffffe
lea eax, [edx + edx*4]
sub edi, eax
jne 0x4a63b5
mov ebx, 0x1999999a
nop dword [eax]
mov edi, ecx
mov eax, ecx
mov ecx, 0xcccccccd
inc esi
mul ecx
mov ecx, edx
shr ecx, 3
mov eax, ecx
mul ebx
cmp edi, 0x64
jb 0x4a63b5
add edx, edx
mov edi, ecx
lea eax, [edx + edx*4]
sub edi, eax
je 0x4a6390
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x10], 0
je 0x4a6475
mov eax, dword [eax + 0x14]
cmp ecx, 0xa
mov ebx, 0
mov dword [ebp - 0x14], eax
jb 0x4a63f4
xor ebx, ebx
mov edi, ecx
nop word cs:[eax + eax]
mov eax, edi
mov edx, 0xcccccccd
inc ebx
mul edx
shr edx, 3
cmp edi, 0x63
mov edi, edx
ja 0x4a63e0
mov edx, dword [ebp - 0x14]
mov edi, 0
mov eax, edx
sub eax, ebx
cmovb eax, edi
mov dword [ebp - 0x18], eax
mov eax, ebx
sub eax, edx
cmovb eax, edi
cmp eax, 2
jb 0x4a6443
add eax, esi
cmp ebx, edx
mov esi, edx
mov edi, 0xcccccccd
cmovb esi, ebx
mov dword [ebp - 0x1c], eax
not esi
add esi, ebx
nop word [eax + eax]
mov eax, ecx
mul edi
mov ecx, edx
shr ecx, 3
dec esi
jne 0x4a6430
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
dec esi
cmp ebx, edx
jbe 0x4a6475
mov edx, 0xcccccccd
mov eax, ecx
inc esi
mul edx
shr edx, 3
lea eax, [edx + edx]
lea eax, [eax + eax*4]
sub ecx, eax
cmp ecx, 5
sbb edx, 0xffffffff
mov ecx, edx
jmp 0x4a6475
xor esi, esi
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x10], 0
jne 0x4a63c2
mov ebx, 0x28
cmp ecx, 0x64
jb 0x4a64cd
xor ebx, ebx
nop word cs:[eax + eax]
nop dword [eax + eax]
mov edi, ecx
mov eax, ecx
mov ecx, 0x51eb851f
mul ecx
mov ecx, edx
mov edx, edi
shr ecx, 5
imul eax, ecx, 0x64
sub edx, eax
movzx eax, word [edx + edx + 0x4d4a06]
mov word [ebp + ebx - 0x56], ax
add ebx, 0xfffffffe
cmp edi, 0x270f
ja 0x4a6490
mov eax, esi
sub eax, ebx
add ebx, 0x28
cmp ecx, 9
ja 0x4a64d4
jmp 0x4a64f9
mov eax, esi
cmp ecx, 9
jbe 0x4a64f9
movzx edx, cl
mov dword [ebp - 0x14], eax
imul edx, edx, 0xcd
shr edx, 0xb
lea edi, [edx + edx]
lea eax, [edi + edi*4]
sub cl, al
mov eax, dword [ebp - 0x14]
or cl, 0x30
mov byte [ebp + ebx - 0x7d], cl
dec ebx
mov ecx, edx
inc eax
cmp eax, esi
movzx edx, byte [ebp + 8]
mov esi, dword [ebp - 0x18]
jne 0x4a650c
test esi, esi
jne 0x4a650c
mov edi, eax
jmp 0x4a6514
mov byte [ebp + ebx - 0x7d], 0x2e
mov edi, eax
dec ebx
xor dl, 1
lea eax, [ebp - 0x7c]
add cl, 0x30
shl dl, 5
mov byte [ebx + eax - 1], cl
lea ecx, [ebx + eax - 1]
mov eax, edi
or dl, 0x45
cmp edi, 0xa
mov byte [ebp - 0xf], dl
jae 0x4a6541
add al, 0x30
mov byte [ebp - 0xe], al
mov eax, 2
jmp 0x4a6552
movzx eax, word [eax + eax + 0x4d4a06]
mov word [ebp - 0xe], ax
mov eax, 3
mov edx, 0x29
mov word [ebp - 0x54], 2
mov dword [ebp - 0x50], ecx
lea ecx, [ebp - 0xf]
sub edx, ebx
mov dword [ebp - 0x4c], edx
mov word [ebp - 0x48], 0
mov dword [ebp - 0x44], esi
mov word [ebp - 0x3c], 2
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov esi, 0x4d3c58
mov edx, 0x4d3c57
mov eax, dword [ecx + 0x18]
and eax, 1
cmove edx, esi
cmp byte [ebp - 0x20], 0
mov esi, 0x4d3c56
cmovne esi, edx
mov edx, 1
cmovne edx, eax
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x54]
mov dword [ebp - 0x2c], edx
lea edx, [ebp - 0x30]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 3
call sym.core::fmt::Formatter::pad_formatted_parts::hcdb86b755fe2e917
add esp, 0x70
pop esi
pop edi
pop ebx
pop ebp
ret