Function at 0x452590
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
lea esp, [esp - 0x18]
mov dword [esp], eax
mov byte [esp + 0x14], 0
mov byte [esp + 0x10], 0
mov eax, dword [esp]
mov esi, dword [eax - 0x48]
mov eax, dword [esp]
mov edx, dword [eax - 4]
mov dword [esp + 4], edx
mov dword [esp + 0xc], 1
jmp 0x4528aa
mov al, byte [esi]
cmp al, 0x22
jb 0x45260a
sub al, 0x22
je 0x4525d4
sub al, 5
je 0x4525ef
jmp 0x45260a
mov al, byte [esp + 0x14]
test al, al
jne 0x4525e7
mov al, byte [esp + 0x10]
test al, al
sete byte [esp + 0x10]
add esi, 1
jmp 0x4528aa
mov al, byte [esp + 0x10]
test al, al
jne 0x452602
mov al, byte [esp + 0x14]
test al, al
sete byte [esp + 0x14]
add esi, 1
jmp 0x4528aa
mov al, byte [esp + 0x14]
test al, al
jne 0x45289a
mov al, byte [esp + 0x10]
test al, al
jne 0x45289a
mov al, byte [esi]
cmp al, 0x23
jb 0x452883
sub al, 0x23
je 0x45264d
sub al, 0xb
je 0x45264d
sub al, 2
je 0x45264d
sub al, 0x15
je 0x4527de
sub al, 0x20
je 0x4527de
jmp 0x452883
cmp dword [esp + 0xc], 1
jne 0x45271f
mov eax, dword [esp]
cmp dword [eax - 0x6c], 0
jle 0x45271f
mov eax, dword [esp]
mov ebx, dword [eax - 0x6c]
mov dword [esp + 8], 1
cmp ebx, dword [esp + 8]
jl 0x452715
sub dword [esp + 8], 1
mov esi, esi
add dword [esp + 8], 1
mov edx, dword [esp]
mov al, byte [esp + 8]
and eax, 0xff
cmp byte [edx + eax - 0x38], 0x20
je 0x4526b7
mov edx, dword [esp]
mov al, byte [esp + 8]
and eax, 0xff
mov al, byte [edx + eax - 0x38]
mov edx, dword [esp + 4]
mov byte [edx], al
add dword [esp + 4], 1
mov edx, dword [esp]
cmp byte [edx - 0x68], 0
je 0x45270b
mov al, byte [esp + 8]
and eax, 0xff
movzx eax, byte [edx + eax - 0x38]
cmp eax, 0x20
je 0x45270b
cmp eax, 0x2d
je 0x45270b
mov ecx, dword [esp]
mov eax, dword [ecx - 0x70]
cdq
mov edi, 3
idiv edi
test edx, edx
jne 0x452704
cmp dword [ecx - 0x70], 0
jle 0x452704
mov eax, dword [esp]
mov al, byte [eax - 0x12e]
mov edx, dword [esp + 4]
mov byte [edx], al
add dword [esp + 4], 1
mov eax, dword [esp]
sub dword [eax - 0x70], 1
cmp ebx, dword [esp + 8]
jg 0x452684
mov eax, dword [esp]
mov eax, dword [eax - 0x6c]
add dword [esp + 0xc], eax
mov edx, dword [esp]
mov al, byte [esp + 0xc]
and eax, 0xff
cmp byte [edx + eax - 0x38], 0x20
je 0x4527b7
mov edx, dword [esp]
mov al, byte [esp + 0xc]
and eax, 0xff
cmp byte [edx + eax - 0x38], 0x2e
jne 0x45275a
mov eax, dword [esp]
mov dl, byte [eax - 0x12d]
mov eax, dword [esp + 4]
mov byte [eax], dl
jmp 0x452770
mov edx, dword [esp]
mov al, byte [esp + 0xc]
and eax, 0xff
mov dl, byte [edx + eax - 0x38]
mov eax, dword [esp + 4]
mov byte [eax], dl
add dword [esp + 4], 1
mov ecx, dword [esp]
cmp byte [ecx - 0x68], 0
je 0x4527b7
mov eax, dword [ecx - 0x70]
cdq
mov ebx, 3
idiv ebx
test edx, edx
jne 0x4527b7
cmp dword [ecx - 0x70], 0
jle 0x4527b7
mov al, byte [esp + 0xc]
and eax, 0xff
cmp byte [ecx + eax - 0x38], 0x2d
je 0x4527b7
mov eax, dword [esp]
mov dl, byte [eax - 0x12e]
mov eax, dword [esp + 4]
mov byte [eax], dl
add dword [esp + 4], 1
mov edx, dword [esp]
mov al, byte [esp + 0xc]
and eax, 0xff
cmp byte [edx + eax - 0x38], 0x2d
je 0x4527d1
mov eax, dword [esp]
sub dword [eax - 0x70], 1
add dword [esp + 0xc], 1
add esi, 1
jmp 0x4528aa
mov eax, dword [esp]
cmp dword [eax - 0x50], 0
je 0x452871
add esi, 1
mov eax, dword [esp]
mov eax, dword [eax - 0x4c]
cmp eax, esi
jbe 0x4528aa
movzx eax, byte [esi]
cmp eax, 0x2b
je 0x452809
cmp eax, 0x2d
jne 0x45286c
mov eax, dword [esp]
mov eax, dword [eax - 0x54]
add esi, eax
mov eax, dword [esp]
movzx eax, byte [eax - 0x44]
mov ecx, eax
mov dword [esp + 8], 1
cmp ecx, dword [esp + 8]
jl 0x452857
sub dword [esp + 8], 1
lea esi, [esi]
add dword [esp + 8], 1
mov edx, dword [esp]
mov al, byte [esp + 8]
and eax, 0xff
mov dl, byte [edx + eax - 0x44]
mov eax, dword [esp + 4]
mov ebx, dword [esp + 8]
mov byte [eax + ebx - 1], dl
cmp ecx, dword [esp + 8]
jg 0x452830
mov eax, dword [esp]
movzx eax, byte [eax - 0x44]
add dword [esp + 4], eax
mov eax, dword [esp]
mov dword [eax - 0x50], 0
add esi, 1
jmp 0x4528aa
mov dl, byte [esi]
mov eax, dword [esp + 4]
mov byte [eax], dl
add dword [esp + 4], 1
add esi, 1
jmp 0x4528aa
cmp byte [esi], 0x2c
je 0x452895
mov dl, byte [esi]
mov eax, dword [esp + 4]
mov byte [eax], dl
add dword [esp + 4], 1
add esi, 1
jmp 0x4528aa
mov dl, byte [esi]
mov eax, dword [esp + 4]
mov byte [eax], dl
add dword [esp + 4], 1
add esi, 1
mov eax, dword [esp]
mov eax, dword [eax - 0x4c]
cmp eax, esi
ja 0x4525c4
mov eax, dword [esp]
mov edx, dword [eax - 4]
mov eax, dword [esp + 4]
sub eax, edx
lea esp, [esp + 0x18]
pop edi
pop esi
pop ebx
ret