Function at 0x633a40
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x24]
push ebx
push esi
push edi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
mov dword [edx], 0
mov edx, eax
test eax, eax
je 0x633c94
sub edx, 2
jb 0x633cfc
sub edx, 2
ja 0x633cfc
sub eax, 3
cmp eax, 2
jae 0x633a87
mov edi, 3
jmp 0x633a8c
mov edi, 1
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx]
mov edx, dword [ecx]
call dword [edx + 0xbc]
mov edx, dword [ebp - 0x24]
shl edx, 3
cmp eax, edx
jge 0x633b73
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx]
mov edx, dword [ecx]
call dword [edx + 0xbc]
mov edx, dword [ebp - 0x24]
lea ecx, [edx + edx*2]
cmp eax, ecx
jl 0x633b73
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov dword [eax + 0xc0], 6
push 1
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx]
mov edx, dword [ecx]
call dword [edx + 0xbc]
mov dword [ebp - 8], eax
fild dword [ebp - 8]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fdivp st(1)
fistp qword [ebp - 0x10]
wait
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx]
mov edx, dword [ecx]
call dword [edx + 0xd4]
mov dword [ebp - 8], eax
fild dword [ebp - 8]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fdivp st(1)
mov dword [ebp - 8], edi
fild dword [ebp - 8]
fmulp st(1)
fistp qword [ebp - 0x18]
wait
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx]
mov ebx, dword [ebp - 0x20]
mov ecx, dword [ebx]
mov ebx, dword [ecx]
mov ecx, esi
call dword [ebx + 0x8ec]
mov dword [ebp - 4], eax
push 1
mov ecx, dword [ebp - 4]
mov edx, 1
mov eax, 0x708360
call fcn.005e1f20
mov edx, dword [ebp - 0x1c]
mov dword [edx], eax
lea eax, [ebp - 4]
call fcn.00447d60
jmp 0x633be8
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx]
mov edx, dword [ecx]
call dword [edx + 0xd4]
mov dword [ebp - 8], eax
fild dword [ebp - 8]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fdivp st(1)
mov dword [ebp - 8], edi
fild dword [ebp - 8]
fmulp st(1)
fistp qword [ebp - 0x18]
wait
push dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx]
mov edx, dword [ecx]
call dword [edx + 0xbc]
mov dword [ebp - 8], eax
fild dword [ebp - 8]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fdivp st(1)
fistp qword [ebp - 0x10]
wait
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov edx, 1
mov eax, 0x708360
call fcn.005e1fe0
mov edx, dword [ebp - 0x1c]
mov dword [edx], eax
mov eax, dword [ebp - 0x20]
call fcn.00447d60
xor ebx, ebx
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
mov edi, dword [edx + 0x44]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edx]
mov edx, dword [ecx]
call dword [edx + 0xc8]
sub eax, 1
test eax, eax
jl 0x633c30
mov esi, eax
add esi, 1
sub esi, 1
movzx eax, byte [edi]
cmp eax, ebx
jbe 0x633c28
movzx eax, byte [edi]
mov ebx, eax
nop
add edi, 1
test esi, esi
jg 0x633c18
nop
test ebx, ebx
je 0x633cfc
cmp ebx, 0xff
je 0x633cfc
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
mov edi, dword [eax + 0x44]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx]
call dword [edx + 0xc8]
sub eax, 1
test eax, eax
jl 0x633cfc
mov esi, eax
add esi, 1
mov esi, esi
sub esi, 1
movzx eax, byte [edi]
imul eax, eax, 0xff
xor edx, edx
div ebx
mov byte [edi], al
add edi, 1
test esi, esi
jg 0x633c70
lea esi, [esi]
jmp 0x633cfc
push 1
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov edx, 1
mov eax, 0x708360
call fcn.005e1f20
mov edx, dword [ebp - 0x1c]
mov dword [edx], eax
mov eax, dword [ebp - 0x20]
call fcn.00447d60
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
mov edi, dword [eax + 0x44]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edx]
mov edx, dword [ecx]
call dword [edx + 0xc8]
sub eax, 1
test eax, eax
jl 0x633cfc
mov esi, eax
add esi, 1
lea esi, [esi]
sub esi, 1
movzx eax, byte [edi]
movzx eax, word [eax + eax + 0x725580]
shr eax, 8
mov byte [edi], al
add edi, 1
test esi, esi
jg 0x633ce0
mov esi, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4