Function at 0x4ab320
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x4c
push ebp
mov ebp, dword [esp + 0x54]
push esi
mov esi, dword [ebp]
push 0x800
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], 0
call fcn.00420f60
mov ecx, eax
add esp, 4
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x4ab355
pop esi
pop ebp
add esp, 0x4c
ret
mov eax, dword [esp + 0x68]
lea eax, [esi + eax - 1]
xor edx, edx
div esi
push edi
push 0x80
push ecx
mov edi, eax
mov dword [esp + 0x3c], edi
call fcn.00420900
imul edi, esi
push edi
push 0
push 0
mov dword [esp + 0x64], eax
call fcn.00428f10
mov esi, eax
add esp, 0x14
mov dword [esp + 0x10], esi
test esi, esi
je 0x4ab642
mov ecx, dword [esp + 0x60]
mov esi, dword [ecx + 0xc]
mov edx, dword [esp + 0x20]
push ebx
mov ebx, dword [esp + 0x68]
mov edi, dword [ebx + 8]
add esi, 0x3f
add edi, 0x3f
shr esi, 6
shr edi, 6
shl esi, 6
shl edi, 6
lea eax, [edi + esi]
push eax
push edx
mov dword [esp + 0x54], eax
call fcn.00420900
add esp, 8
mov dword [esp + 0x48], eax
test eax, eax
je 0x4ab63d
mov ecx, dword [esp + 0x54]
add eax, esi
mov dword [esp + 0x34], eax
movsx eax, byte [esp + 0x6c]
push 0x40
push eax
push ecx
call fcn.00412eb0
add esp, 0xc
test esi, esi
je 0x4ab442
mov dword [esp + 0x10], 0
jbe 0x4ab442
mov edx, dword [esp + 0x64]
mov eax, dword [edx + 0xc]
mov ebx, dword [esp + 0x10]
mov ecx, esi
sub ecx, ebx
cmp ecx, eax
jae 0x4ab415
mov eax, ecx
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 8]
push ecx
add edx, ebx
push edx
call fcn.0040dc50
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 0xc]
add ebx, eax
add esp, 0xc
mov dword [esp + 0x10], ebx
cmp ebx, esi
jb 0x4ab407
mov ebx, dword [esp + 0x68]
test edi, edi
je 0x4ab482
mov dword [esp + 0x10], 0
jbe 0x4ab482
mov eax, dword [ebx + 8]
mov esi, dword [esp + 0x10]
mov ecx, edi
sub ecx, esi
cmp ecx, eax
jae 0x4ab461
mov eax, ecx
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x34]
push eax
push ecx
add edx, esi
push edx
call fcn.0040dc50
mov eax, dword [ebx + 8]
add esi, eax
add esp, 0xc
mov dword [esp + 0x10], esi
cmp esi, edi
jb 0x4ab453
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call fcn.00420900
mov edi, eax
add esp, 8
mov dword [esp + 0x1c], edi
test edi, edi
je 0x4ab63d
mov edx, dword [ebp + 4]
call edx
mov ebx, eax
mov dword [esp + 0x40], ebx
test ebx, ebx
je 0x4ab63d
mov ecx, dword [esp + 0x38]
xor edx, edx
mov dword [esp + 0x10], edx
cmp ecx, edx
jbe 0x4ab632
mov eax, dword [esp + 0x4c]
shr eax, 6
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x10], ecx
jmp 0x4ab4e4
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
add eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x64]
xor esi, esi
cmp dword [ecx + 0x28], esi
mov dword [esp + 0x2c], eax
jle 0x4ab568
mov edi, edi
mov edx, dword [ebp + 0x10]
push ebx
call edx
add esp, 4
test esi, esi
je 0x4ab51e
mov eax, dword [esp + 0x28]
mov ecx, dword [ebp + 0x14]
push eax
push edi
push ebx
call ecx
add esp, 0xc
jmp 0x4ab53e
mov edx, dword [esp + 0x54]
mov eax, dword [ebp + 0x14]
push 0x40
push edx
push ebx
call eax
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
mov eax, dword [ebp + 0x14]
push ecx
push edx
push ebx
call eax
add esp, 0x18
mov ecx, dword [ebp]
mov eax, dword [ebp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
push edi
push ebx
call eax
mov ecx, dword [esp + 0x38]
add esp, 0x10
cmp ecx, dword [ebp]
jne 0x4ab564
mov edx, dword [esp + 0x64]
inc esi
cmp esi, dword [edx + 0x28]
jl 0x4ab500
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push edi
push ecx
push eax
call fcn.0040dc50
add esp, 0xc
xor esi, esi
jmp 0x4ab584
mov edi, dword [esp + 0x18]
mov eax, 0x40
sub eax, esi
cmp eax, edi
jb 0x4ab591
mov eax, edi
mov edi, dword [esp + 0x54]
mov edx, dword [esp + 0x1c]
push eax
add edi, 0x40
push edx
lea eax, [esi + edi]
push eax
call fcn.0040dc50
add esi, dword [esp + 0x24]
add esp, 0xc
cmp esi, 0x40
jl 0x4ab580
mov edx, dword [esp + 0x3c]
test edx, edx
jbe 0x4ab61f
mov eax, dword [esp + 0x48]
lea ecx, [eax + 0x3f]
mov dword [esp + 0x2c], ecx
sub edi, eax
mov dword [esp + 0x30], edx
lea esp, [esp]
mov esi, 0x3f
lea eax, [esi - 0x3e]
xor edx, edx
lea ebx, [ebx]
movzx ebx, byte [edi + ecx]
movzx ebp, byte [ecx]
add ebx, edx
add ebp, ebx
add eax, ebp
mov edx, 0xff
cmp edx, eax
sbb edx, edx
mov byte [ecx], al
dec esi
neg edx
dec ecx
xor eax, eax
test esi, esi
jge 0x4ab5e0
mov ecx, dword [esp + 0x2c]
add ecx, 0x40
sub edi, 0x40
sub dword [esp + 0x30], 1
mov dword [esp + 0x2c], ecx
jne 0x4ab5d0
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x60]
mov eax, dword [esp + 0x18]
add dword [esp + 0x20], eax
sub dword [esp + 0x34], 1
jne 0x4ab4e0
mov ecx, dword [ebp + 0xc]
push 1
push ebx
call ecx
add esp, 8
mov esi, dword [esp + 0x14]
pop ebx
mov edx, dword [esp + 0x20]
push 1
push edx
call fcn.00420960
add esp, 8
pop edi
test esi, esi
je 0x4ab686
mov eax, dword [esp + 0x30]
cmp dword [esp + 8], eax
je 0x4ab67f
push 1
push esi
call fcn.00428e80
mov dword [esp + 0x14], 0
mov esi, dword [esp + 0x14]
add esp, 8
mov eax, esi
pop esi
pop ebp
add esp, 0x4c
ret
mov ecx, dword [esp + 0x68]
mov dword [esi + 8], ecx
mov eax, esi
pop esi
pop ebp
add esp, 0x4c
ret