Function at 0x4bacc0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
cmp edi, dword [ebp + 0xc]
jne 0x4bace1
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
js 0x4bb02f
test esi, esi
js 0x4bb02f
je 0x4bad04
xor edx, edx
mov eax, 0x7fffffff
div esi
cmp edi, eax
jg 0x4bb02f
mov ecx, edi
imul ecx, esi
mov dword [ebp - 0x10], ecx
test ecx, ecx
js 0x4bb02f
test ebx, ebx
js 0x4bb02f
je 0x4bad2f
xor edx, edx
mov eax, 0x7fffffff
div ebx
cmp ecx, eax
jg 0x4bb02f
mov eax, ecx
imul eax, ebx
push eax
call dword [sym.imp.ucrtbased.dll_malloc]
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4bb02f
mov dword [ebp + 0x10], 0
test ebx, ebx
jle 0x4baff3
mov edx, dword [ebp + 0xc]
lea ebx, [esi - 1]
mov dword [ebp - 8], eax
lea ecx, [edx*8 - 0xa]
add ecx, edi
imul edx, esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], esi
mov dword [ebp + 0xc], edx
nop dword [eax]
cmp ecx, 0x19
ja case.0x4bad90.3
movzx ecx, byte [ecx + 0x4bb084]
jmp dword [ecx*4 + 0x4bb050]
mov edx, ebx
test edx, edx
js 0x4bafce
sub edx, 1
mov cl, byte [esi]
mov byte [eax], cl
lea esi, [esi + 1]
mov byte [eax + 1], 0xff
lea eax, [eax + 2]
jns 0x4bada1
jmp 0x4bafce
mov edx, ebx
test edx, edx
js 0x4bafce
sub edx, 1
mov cl, byte [esi]
mov byte [eax + 2], cl
lea esi, [esi + 1]
mov byte [eax + 1], cl
lea eax, [eax + 3]
mov byte [eax - 3], cl
jns 0x4badc3
jmp 0x4bafce
mov edx, ebx
test edx, edx
js 0x4bafce
sub edx, 1
mov cl, byte [esi]
mov byte [eax + 2], cl
lea esi, [esi + 1]
mov byte [eax + 1], cl
lea eax, [eax + 4]
mov byte [eax - 4], cl
mov byte [eax - 1], 0xff
jns 0x4bade8
jmp 0x4bafce
mov edx, ebx
test edx, edx
js 0x4bafce
sub edx, 1
mov cl, byte [esi]
mov byte [eax], cl
lea esi, [esi + 2]
lea eax, [eax + 1]
jns 0x4bae11
jmp 0x4bafce
mov edx, ebx
test edx, edx
js 0x4bafce
nop
sub edx, 1
mov cl, byte [esi]
mov byte [eax + 2], cl
lea esi, [esi + 2]
mov byte [eax + 1], cl
lea eax, [eax + 3]
mov byte [eax - 3], cl
jns 0x4bae30
jmp 0x4bafce
mov edx, ebx
test edx, edx
js 0x4bafce
sub edx, 1
mov cl, byte [esi]
mov byte [eax + 2], cl
lea esi, [esi + 2]
mov byte [eax + 1], cl
lea eax, [eax + 4]
mov byte [eax - 4], cl
movzx ecx, byte [esi - 1]
mov byte [eax - 1], cl
jns 0x4bae55
jmp 0x4bafce
mov edx, ebx
test edx, edx
js 0x4bafce
sub edx, 1
movzx ecx, byte [esi]
mov byte [eax], cl
lea esi, [esi + 3]
movzx ecx, byte [esi - 2]
lea eax, [eax + 4]
mov byte [eax - 3], cl
movzx ecx, byte [esi - 1]
mov byte [eax - 2], cl
mov byte [eax - 1], 0xff
jns 0x4bae81
jmp 0x4bafce
mov edi, ebx
test edi, edi
js 0x4bafce
movzx ecx, byte [esi + 1]
lea esi, [esi + 3]
imul edx, ecx, 0x96
lea eax, [eax + 1]
movzx ecx, byte [esi - 1]
imul ecx, ecx, 0x1d
add edx, ecx
movzx ecx, byte [esi - 3]
imul ecx, ecx, 0x4d
add edx, ecx
shr edx, 8
sub edi, 1
mov byte [eax - 1], dl
jns 0x4baeb2
jmp 0x4bafce
mov edi, ebx
test edi, edi
js 0x4bafce
nop
movzx ecx, byte [esi + 1]
lea esi, [esi + 3]
imul edx, ecx, 0x96
lea eax, [eax + 2]
movzx ecx, byte [esi - 1]
imul ecx, ecx, 0x1d
add edx, ecx
movzx ecx, byte [esi - 3]
imul ecx, ecx, 0x4d
mov byte [eax - 1], 0xff
add edx, ecx
shr edx, 8
sub edi, 1
mov byte [eax - 2], dl
jns 0x4baef0
jmp 0x4bafce
mov edi, ebx
test edi, edi
js 0x4bafce
movzx ecx, byte [esi + 1]
lea esi, [esi + 4]
imul edx, ecx, 0x96
lea eax, [eax + 1]
movzx ecx, byte [esi - 2]
imul ecx, ecx, 0x1d
add edx, ecx
movzx ecx, byte [esi - 4]
imul ecx, ecx, 0x4d
add edx, ecx
shr edx, 8
sub edi, 1
mov byte [eax - 1], dl
jns 0x4baf30
jmp 0x4bafce
mov edi, ebx
test edi, edi
js 0x4bafce
nop dword [eax]
movzx ecx, byte [esi + 1]
lea esi, [esi + 4]
imul edx, ecx, 0x96
lea eax, [eax + 2]
movzx ecx, byte [esi - 2]
imul ecx, ecx, 0x1d
add edx, ecx
movzx ecx, byte [esi - 4]
imul ecx, ecx, 0x4d
add edx, ecx
shr edx, 8
sub edi, 1
mov byte [eax - 2], dl
mov cl, byte [esi - 1]
mov byte [eax - 1], cl
jns 0x4baf70
jmp 0x4bafce
mov edx, ebx
test edx, edx
js 0x4bafce
nop dword [eax + eax]
sub edx, 1
movzx ecx, byte [esi]
mov byte [eax], cl
lea esi, [esi + 4]
movzx ecx, byte [esi - 3]
lea eax, [eax + 3]
mov byte [eax - 2], cl
movzx ecx, byte [esi - 2]
mov byte [eax - 1], cl
jns 0x4bafb0
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp - 4]
inc ecx
mov eax, dword [ebp - 8]
add esi, dword [ebp + 0xc]
add eax, dword [ebp - 0x10]
cmp ecx, dword [ebp + 0x18]
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], esi
mov dword [ebp - 8], eax
jl 0x4bad80
push dword [ebp + 8]
call dword [sym.imp.ucrtbased.dll_free]
mov eax, dword [ebp - 0xc]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov esi, dword [sym.imp.ucrtbased.dll_free]
call esi
push dword [ebp - 0xc]
call esi
add esp, 8
mov dword [0x54d318], 0x4fc048
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.ucrtbased.dll_free]
add esp, 4
mov dword [0x54d318], 0x4fc02c
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret