Function at 0x453020
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x7a0]
mov eax, dword [ecx + 4]
test eax, eax
jne 0x45303a
xor ebp, ebp
jmp 0x453042
mov ebp, dword [edi + 0x144]
add ebp, eax
mov eax, dword [esp + 0x24]
xor edx, edx
mov dl, byte [ebp]
cmp edx, eax
jne 0x453396
xor eax, eax
xor edx, edx
mov al, byte [ebp + 1]
mov dx, word [ecx + 2]
shl eax, 1
cmp eax, edx
mov edx, dword [edi + 0x7b8]
setg al
mov byte [edi + 0xbc6], al
and eax, 0xff
mov esi, dword [esp + 0x28]
add edx, eax
mov dword [edi + 0x7b8], edx
xor edx, edx
mov dx, word [ecx + 2]
mov eax, dword [esi + 0x10]
mov ecx, edx
xor edx, edx
xor ebx, ebx
div ecx
mov bl, byte [ebp + 1]
mov dword [esi + 0x10], eax
imul eax, ebx
cmp eax, 0x1000000
mov dword [esi + 0x10], eax
jae 0x45311c
mov ecx, dword [esi + 0x10]
mov ebx, dword [esi + 8]
shl ecx, 8
cmp ebx, 0xff000000
mov dword [esi + 0x10], ecx
jb 0x4530cd
mov edx, dword [esi + 0xc]
mov ecx, 0x20
mov eax, ebx
call fcn.00462e60
test eax, eax
je 0x453100
mov bl, byte [esi + 4]
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov ecx, 0x20
call fcn.00462e60
add al, bl
lea ecx, [esi + 0x18]
push eax
call fcn.0044519b
mov eax, dword [esi]
or bl, 0xff
dec eax
mov dword [esi], eax
jne 0x4530d0
mov ebx, dword [esi + 8]
mov edx, ebx
shr edx, 0x18
mov byte [esi + 4], dl
mov edx, dword [esi]
mov eax, dword [esi + 0x10]
shl ebx, 8
inc edx
mov dword [esi + 8], ebx
cmp eax, 0x1000000
mov dword [esi], edx
mov dword [esi + 0xc], 0
jb 0x4530a6
mov dword [edi + 0x7a8], ebp
mov bl, byte [ebp + 1]
mov edx, 4
add bl, dl
mov byte [ebp + 1], bl
mov eax, dword [edi + 0x7a0]
add word [eax + 2], dx
mov al, byte [ebp + 1]
cmp al, 0x7c
jbe 0x45342e
mov ecx, dword [edi + 0x7a0]
xor eax, eax
mov ax, word [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x10], eax
dec eax
test ecx, ecx
mov dword [esp + 0x28], eax
jne 0x453163
xor ebp, ebp
jmp 0x45316b
mov ebp, dword [edi + 0x144]
add ebp, ecx
mov eax, dword [edi + 0x7a8]
mov dword [esp + 0x24], ebp
cmp eax, ebp
je 0x4531bd
lea ecx, [eax - 6]
mov edx, eax
mov esi, dword [edx]
mov dword [esp + 0x18], esi
mov esi, eax
mov dx, word [edx + 4]
sub eax, 6
mov word [esp + 0x1c], dx
mov edx, ecx
mov ebx, dword [edx]
mov dword [esi], ebx
mov dx, word [edx + 4]
mov word [esi + 4], dx
mov esi, dword [esp + 0x18]
mov edx, ecx
sub ecx, 6
cmp eax, ebp
mov dword [edx], esi
mov si, word [esp + 0x1c]
mov word [edx + 4], si
jne 0x45317c
mov edx, 4
mov bl, byte [ebp + 1]
xor esi, esi
add bl, dl
mov byte [ebp + 1], bl
mov ecx, dword [edi + 0x7a0]
xor ebx, ebx
add word [ecx + 2], dx
mov ecx, dword [edi + 0x7a0]
xor edx, edx
mov si, word [ecx + 2]
mov dl, byte [eax + 1]
mov ecx, dword [edi + 0x7b4]
sub esi, edx
test ecx, ecx
setne bl
xor ecx, ecx
mov dword [esp + 0x14], ebx
mov cl, dl
add ecx, ebx
sar ecx, 1
mov byte [eax + 1], cl
mov edx, dword [edi + 0x7a0]
movzx cx, cl
mov word [edx + 2], cx
add eax, 6
xor ecx, ecx
mov cl, byte [eax + 1]
sub esi, ecx
add ecx, ebx
sar ecx, 1
mov byte [eax + 1], cl
mov edx, dword [edi + 0x7a0]
movzx cx, cl
add word [edx + 2], cx
mov dl, byte [eax + 1]
cmp dl, byte [eax - 5]
jbe 0x453280
mov edx, eax
mov ecx, eax
mov ebx, dword [edx]
mov dword [esp + 0x18], ebx
mov dx, word [edx + 4]
mov word [esp + 0x1c], dx
lea edx, [ecx - 6]
mov ebx, ecx
sub ecx, 6
mov ebp, dword [edx]
mov dword [ebx], ebp
mov ebp, dword [esp + 0x24]
mov dx, word [edx + 4]
cmp ecx, ebp
mov word [ebx + 4], dx
je 0x45326d
mov dl, byte [esp + 0x19]
mov bl, byte [ecx - 5]
cmp dl, bl
ja 0x453246
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov dword [ecx], edx
mov dx, word [esp + 0x1c]
mov word [ecx + 4], dx
mov ecx, dword [esp + 0x28]
dec ecx
mov dword [esp + 0x28], ecx
jne 0x45320c
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x453317
mov ebx, dword [esp + 0x28]
mov cl, byte [eax - 6]
sub eax, 6
inc ebx
test cl, cl
mov dword [esp + 0x28], ebx
je 0x453297
mov eax, dword [edi + 0x7a0]
mov ecx, ebx
add esi, ecx
sub word [eax], cx
mov eax, dword [edi + 0x7a0]
cmp word [eax], 1
jne 0x453317
mov ecx, ebp
mov edx, dword [ecx]
mov dword [esp + 0x18], edx
mov al, byte [esp + 0x19]
mov bx, word [ecx + 4]
mov cl, al
shr cl, 1
sar esi, 1
sub al, cl
cmp esi, 1
jg 0x4532d3
mov edx, dword [esp + 0x10]
mov ecx, edi
inc edx
mov byte [esp + 0x19], al
sar edx, 1
push edx
push ebp
call fcn.00453500
mov eax, dword [edi + 0x7a0]
mov ecx, dword [esp + 0x18]
add eax, 2
mov dword [edi + 0x7a8], eax
pop edi
mov dword [eax], ecx
pop esi
mov word [eax + 4], bx
pop ebp
pop ebx
add esp, 0x10
ret 8
mov eax, dword [edi + 0x7a0]
mov edx, esi
sar edx, 1
sub esi, edx
add word [eax + 2], si
mov eax, dword [esp + 0x10]
mov edx, dword [edi + 0x7a0]
lea ecx, [eax + 1]
xor eax, eax
mov ax, word [edx]
sar ecx, 1
inc eax
sar eax, 1
cmp ecx, eax
je 0x45335f
push eax
push ecx
push ebp
mov ecx, edi
call fcn.004519c0
test eax, eax
je 0x453356
sub eax, dword [edi + 0x144]
mov ecx, dword [edi + 0x7a0]
mov dword [ecx + 4], eax
mov edx, dword [edi + 0x7a0]
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x45337e
xor eax, eax
mov dword [edi + 0x7a8], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
mov eax, dword [edi + 0x144]
add eax, ecx
mov dword [edi + 0x7a8], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
xor ebx, ebx
mov byte [edi + 0xbc6], 0
mov bl, byte [ebp + 1]
xor esi, esi
mov si, word [ecx]
add ebp, 6
xor edx, edx
dec esi
mov dl, byte [ebp]
cmp edx, eax
je 0x4533ca
xor edx, edx
mov dl, byte [ebp + 1]
add ebx, edx
dec esi
je 0x453438
add ebp, 6
xor edx, edx
mov dl, byte [ebp]
cmp edx, eax
jne 0x4533b4
xor edx, edx
mov esi, dword [esp + 0x28]
mov dl, byte [ebp + 1]
mov eax, dword [esi + 0x10]
mov dword [esp + 0x24], edx
xor edx, edx
mov dx, word [ecx + 2]
mov ecx, edx
xor edx, edx
div ecx
mov dword [esi + 0x10], eax
imul eax, ebx
mov ebx, dword [esi + 8]
add ebx, eax
mov eax, dword [esi + 0x10]
mov dword [esi + 8], ebx
mov edx, dword [esi + 0xc]
adc edx, 0
imul eax, dword [esp + 0x24]
cmp eax, 0x1000000
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], eax
jae 0x453426
shl eax, 8
mov ecx, esi
mov dword [esi + 0x10], eax
call fcn.0043fce0
mov eax, dword [esi + 0x10]
cmp eax, 0x1000000
jb 0x45340f
push ebp
mov ecx, edi
call fcn.00453530
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
mov eax, dword [edi + 0x7a8]
xor ecx, ecx
mov cl, byte [eax]
xor eax, eax
mov dl, byte [ecx + edi + 0xac4]
mov cl, byte [edi + 0xbc4]
mov byte [edi + 0xbc7], dl
mov al, byte [ebp]
mov byte [eax + edi + 0x7c4], cl
mov edx, dword [edi + 0x7a0]
xor eax, eax
mov ax, word [edx]
mov dword [edi + 0x7a8], 0
mov dword [edi + 0x7ac], eax
dec eax
mov dl, byte [edi + 0xbc4]
sub ebp, 6
xor ecx, ecx
dec eax
mov cl, byte [ebp]
mov byte [ecx + edi + 0x7c4], dl
jne 0x45347d
mov eax, dword [edi + 0x7a0]
mov esi, dword [esp + 0x28]
xor ecx, ecx
xor edx, edx
mov cx, word [eax + 2]
mov eax, dword [esi + 0x10]
div ecx
mov edi, ecx
sub edi, ebx
mov dword [esi + 0x10], eax
imul eax, ebx
mov ebx, dword [esi + 8]
add ebx, eax
mov eax, dword [esi + 0x10]
mov dword [esi + 8], ebx
mov edx, dword [esi + 0xc]
adc edx, 0
imul eax, edi
cmp eax, 0x1000000
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], eax
jae 0x45342e
shl eax, 8
mov ecx, esi
mov dword [esi + 0x10], eax
call fcn.0043fce0
mov eax, dword [esi + 0x10]
cmp eax, 0x1000000
jb 0x4534db
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8