Function at 0x4530c0
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 ebp, dword [edi + 0x7ac]
mov dx, word [ecx]
mov eax, edx
and eax, 0xffff
mov esi, eax
sub esi, ebp
cmp dx, 0x100
je 0x453182
mov ebx, dword [ecx + 8]
test ebx, ebx
jne 0x4530fb
mov dword [esp + 0x14], ebx
jmp 0x453107
mov edx, dword [edi + 0x144]
add edx, ebx
mov dword [esp + 0x14], edx
xor edx, edx
xor ebx, ebx
mov dl, byte [esi + edi + 0x8c3]
cmp ebp, esi
setg bl
lea edx, [ebx + edx*4]
xor ebx, ebx
mov bx, word [ecx + 2]
lea ecx, [eax + eax*4]
lea ebp, [eax + ecx*2]
xor ecx, ecx
cmp ebx, ebp
mov ebx, dword [esp + 0x14]
setl cl
lea edx, [ecx + edx*2]
xor ecx, ecx
mov cx, word [ebx]
sub ecx, eax
xor eax, eax
cmp esi, ecx
setl al
lea ecx, [eax + edx*2]
xor edx, edx
mov dl, byte [edi + 0xbc7]
add ecx, edx
mov dx, word [edi + ecx*4 + 0x15c]
mov eax, edx
lea ebx, [edi + ecx*4 + 0x15c]
and eax, 0xffff
mov dword [esp + 0x14], ebx
mov cl, byte [ebx + 2]
shr eax, cl
xor ecx, ecx
sub edx, eax
test eax, eax
sete cl
add ecx, eax
mov word [ebx], dx
mov dword [esp + 0x10], ecx
jmp 0x453196
lea edx, [edi + 0x79c]
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], edx
mov ebx, edx
mov eax, dword [edi + 0x7a0]
mov eax, dword [eax + 4]
test eax, eax
jne 0x4531a7
xor ebp, ebp
jmp 0x4531af
mov ebp, dword [edi + 0x144]
add ebp, eax
add ebp, 0xfffffffa
xor ecx, ecx
mov dl, byte [edi + 0xbc4]
add ebp, 6
xor eax, eax
mov al, byte [ebp]
cmp byte [eax + edi + 0x7c4], dl
je 0x4531ba
xor eax, eax
mov al, byte [ebp + 1]
add ecx, eax
xor eax, eax
mov al, byte [ebp]
cmp eax, dword [esp + 0x24]
je 0x4531ed
dec esi
mov byte [eax + edi + 0x7c4], dl
je 0x453361
jmp 0x4531b4
xor edx, edx
mov ebx, ecx
mov dl, byte [ebp + 1]
mov dword [esp + 0x18], ecx
sub ebx, edx
dec esi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ebx
je 0x45322f
mov dl, byte [edi + 0xbc4]
mov eax, ebp
add eax, 6
xor ebx, ebx
mov bl, byte [eax]
cmp byte [ebx + edi + 0x7c4], dl
je 0x453211
xor ebx, ebx
mov bl, byte [eax + 1]
add ecx, ebx
dec esi
jne 0x453211
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
add ecx, eax
xor edx, edx
mov eax, dword [esi + 0x10]
div ecx
mov edx, dword [esi + 8]
mov ecx, eax
imul ecx, ebx
add edx, ecx
mov dword [esi + 8], edx
mov ecx, dword [esi + 0xc]
adc ecx, 0
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x1c]
sub ecx, ebx
imul ecx, eax
cmp ecx, 0x1000000
mov dword [esi + 0x10], ecx
jae 0x4532e6
mov ecx, dword [esi + 0x10]
mov ebx, dword [esi + 8]
shl ecx, 8
cmp ebx, 0xff000000
mov dword [esi + 0x10], ecx
jb 0x453291
mov edx, dword [esi + 0xc]
mov ecx, 0x20
mov eax, ebx
call fcn.0045e070
test eax, eax
je 0x4532ca
mov bl, byte [esi + 4]
lea ebp, [esi + 0x18]
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov ecx, 0x20
call fcn.0045e070
add al, bl
mov ecx, ebp
push eax
call fcn.00424086
mov eax, dword [esi]
or bl, 0xff
dec eax
mov dword [esi], eax
jne 0x453297
mov ebx, dword [esi + 8]
mov ebp, dword [esp + 0x24]
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 0x45326a
mov esi, dword [esp + 0x14]
mov al, byte [esi + 2]
cmp al, 7
jae 0x453312
mov cl, byte [esi + 3]
dec cl
mov byte [esi + 3], cl
jne 0x453312
shl word [esi], 1
mov ecx, eax
mov dl, 3
and ecx, 0xff
shl dl, cl
inc al
mov byte [esi + 2], al
mov byte [esi + 3], dl
mov dword [edi + 0x7a8], ebp
mov bl, byte [ebp + 1]
mov ecx, 4
add bl, cl
mov byte [ebp + 1], bl
mov eax, dword [edi + 0x7a0]
add word [eax + 2], cx
mov al, byte [ebp + 1]
cmp al, 0x7c
jbe 0x45333d
mov ecx, edi
call fcn.00451330
mov al, byte [edi + 0xbc4]
inc al
mov byte [edi + 0xbc4], al
mov eax, dword [edi + 0x7bc]
mov dword [edi + 0x7b8], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x18], ecx
mov eax, dword [esi + 0x10]
lea ebp, [ecx + edx]
xor edx, edx
div ebp
mov ebp, dword [esi + 8]
mov edx, eax
imul edx, ecx
add ebp, edx
mov dword [esi + 8], ebp
mov ebp, dword [esi + 0xc]
adc ebp, 0
imul eax, dword [esp + 0x10]
cmp eax, 0x1000000
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], eax
jae 0x453424
mov ecx, dword [esi + 0x10]
mov ebx, dword [esi + 8]
shl ecx, 8
cmp ebx, 0xff000000
mov dword [esi + 0x10], ecx
jb 0x4533cb
mov edx, dword [esi + 0xc]
mov ecx, 0x20
mov eax, ebx
call fcn.0045e070
test eax, eax
je 0x453400
mov bl, byte [esi + 4]
lea ebp, [esi + 0x18]
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov ecx, 0x20
call fcn.0045e070
add al, bl
mov ecx, ebp
push eax
call fcn.00424086
mov eax, dword [esi]
or bl, 0xff
dec eax
mov dword [esi], eax
jne 0x4533d1
mov ebx, dword [esi + 8]
mov eax, ebx
shr eax, 0x18
mov byte [esi + 4], al
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 0x4533a4
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
add edx, ecx
add word [ebx], dx
mov eax, dword [edi + 0x7a0]
xor ecx, ecx
mov cx, word [eax]
mov dword [edi + 0x7ac], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8