Function at 0x617200
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x74f330]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x24]
push ebx
push esi
push edi
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x13c], edx
je 0x617598
test eax, eax
je 0x617598
mov edi, dword [ebp + 0x1c]
cmp dword [ebp + 0xc], edi
jb 0x617598
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x20]
cmp esi, ebx
jb 0x617598
test edi, edi
je 0x617598
test ebx, ebx
je 0x617598
mov dword [ecx], 0
call fcn.005d9bdf
mov byte [ebp - 0x119], al
lea eax, [edi*4]
cmp dword [ebp + 0xc], eax
jne 0x61758a
lea ecx, [ebx*4]
cmp esi, ecx
jne 0x61758a
xor edx, edx
mov eax, esi
div ebx
push 0x100
lea edx, [ebp - 0x118]
push 0
push edx
mov esi, eax
call fcn.005b8ac0
mov al, 2
mov cl, 3
mov dl, 4
add esp, 0xc
mov byte [ebp - 0x58], al
mov byte [ebp - 0x78], al
mov byte [ebp - 0x88], al
mov byte [ebp - 0xb8], al
mov byte [ebp - 0xc8], al
mov byte [ebp - 0xe8], al
mov byte [ebp - 0x113], al
mov byte [ebp - 0x28], dl
mov byte [ebp - 0x38], cl
mov byte [ebp - 0x48], cl
mov byte [ebp - 0x68], cl
mov byte [ebp - 0xa8], cl
mov byte [ebp - 0x98], 1
mov byte [ebp - 0xd8], 1
mov byte [ebp - 0xf8], 1
mov dword [ebp - 0x10b], 0x1040303
mov dword [ebp - 0x10f], 0x2030202
mov word [ebp - 0x112], 0x302
mov byte [ebp - 0x110], 1
mov dword [ebp - 0x117], 0x1020101
mov byte [ebp - 8], 0
xor eax, eax
lea ecx, [ecx]
mov cl, al
shl cl, 4
or dl, 0xff
sub dl, cl
mov byte [ebp + eax - 0x18], dl
inc eax
cmp eax, 0x10
jl 0x617340
test byte [ebp + 0x28], 1
je 0x617371
xor eax, eax
lea esp, [esp]
or cl, 0xff
sub cl, byte [ebp + eax - 0x18]
inc eax
mov byte [ebp + eax - 0x19], cl
cmp eax, 0x11
jl 0x617360
mov dword [ebp - 0x130], 0
test ebx, ebx
je 0x617564
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x124]
mov ebx, esi
mov esi, dword [ebp + 0x14]
imul ebx, esi
shr edi, 1
mov dword [ebp - 0x128], eax
add eax, esi
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x148], ebx
mov dword [ebp - 0x120], eax
xor eax, eax
mov dword [ebp - 0x138], ecx
test edi, edi
je 0x6174ce
mov edx, dword [ebp - 0x120]
add edx, esi
mov dword [ebp - 0x140], edx
jmp 0x6173e0
mov ecx, dword [ebp - 0x128]
mov dl, byte [ecx + eax]
mov ecx, dword [ebp - 0x120]
mov cl, byte [ecx + eax]
mov byte [ebp - 0x11a], cl
mov ecx, dword [ebp - 0x140]
mov bl, byte [ecx + eax]
movzx edi, byte [ebp - 0x11a]
movzx edx, dl
add ecx, eax
movzx ecx, byte [ecx + esi]
movzx esi, bl
mov dword [ebp - 0x12c], edx
and edx, 0xf0
movzx edx, byte [ebp + edx - 0x118]
mov ebx, edi
and ebx, 0xf0
movzx ebx, byte [ebp + ebx - 0x118]
add edx, ebx
mov ebx, esi
and ebx, 0xf0
movzx ebx, byte [ebp + ebx - 0x118]
add edx, ebx
mov ebx, ecx
and ebx, 0xf0
movzx ebx, byte [ebp + ebx - 0x118]
lea ebx, [ebp + ebx - 0x18]
movzx edx, byte [ebx + edx]
mov ebx, dword [ebp - 0x138]
mov byte [ebx], dl
mov edx, dword [ebp - 0x12c]
and edx, 0xf
movzx edx, byte [ebp + edx - 0x118]
and edi, 0xf
movzx edi, byte [ebp + edi - 0x118]
and esi, 0xf
movzx esi, byte [ebp + esi - 0x118]
and ecx, 0xf
movzx ecx, byte [ebp + ecx - 0x118]
add edx, edi
mov edi, dword [ebp - 0x144]
add edx, esi
mov esi, dword [ebp + 0x14]
lea ecx, [ebp + ecx - 0x18]
movzx edx, byte [ecx + edx]
mov byte [ebx + 1], dl
add ebx, 2
inc eax
mov dword [ebp - 0x138], ebx
cmp eax, edi
jb 0x6173e0
mov ebx, dword [ebp - 0x148]
cmp byte [ebp - 0x119], 0
je 0x617530
mov ecx, 0x76bc9c
call fcn.005d659b
cmp dword [eax + 4], 1
jne 0x617530
mov ecx, 0x76bc9c
call fcn.005d659b
cmp dword [eax], 0
je 0x617530
mov ecx, 0x76bc9c
call fcn.005d659b
mov ecx, 0x76bc9c
mov dword [ebp - 0x12c], eax
call fcn.005d659b
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ecx + 8]
mov ecx, dword [ebp + 0x20]
mov eax, dword [eax]
push edx
mov edx, dword [ebp - 0x130]
push ecx
push edx
call eax
neg eax
sbb eax, eax
inc eax
jne 0x61757c
mov eax, dword [ebp - 0x130]
mov ecx, dword [ebp - 0x124]
add ecx, dword [ebp - 0x13c]
add dword [ebp - 0x128], ebx
add dword [ebp - 0x120], ebx
inc eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x124], ecx
cmp eax, dword [ebp + 0x20]
jb 0x6173b6
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b851f
mov esp, ebp
pop ebp
ret 0x24
mov ecx, dword [ebp - 0x134]
mov dword [ecx], 0xe
jmp 0x61759e
mov edx, dword [ebp - 0x134]
mov dword [edx], 0x11
jmp 0x61759e
mov dword [ecx], 5
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.005b851f
mov esp, ebp
pop ebp
ret 0x24