Function at 0x45473e
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [esi + 0xe8]
test edx, edx
je 0x454758
mov ecx, dword [esi + 0x84]
sub ecx, dword [ebp + 0xc]
dec ecx
jmp 0x45475b
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi + 0xcc]
push ebx
mov ebx, dword [esi + 0xd4]
push edi
mov edi, eax
imul edi, ecx
mov ecx, ebx
imul ecx, dword [ebp + 8]
add edi, ecx
add edi, dword [esi + 0xc8]
xor ecx, ecx
cmp edx, ecx
je 0x454784
neg eax
mov dword [ebp - 4], eax
cmp dword [esi + 0xe0], ecx
jne 0x454b47
cmp dword [esi + 0xe4], ecx
jne 0x454b47
mov eax, dword [esi + 0xd8]
test al, 2
jne 0x4547e3
test eax, 0x100
jne 0x454816
test al, 8
je 0x454839
cmp ebx, 4
jne 0x454b66
jmp 0x45482f
mov al, byte [esi + 0xf0]
xor byte [edi + 2], al
mov al, byte [esi + 0xf4]
xor byte [edi + 1], al
mov al, byte [esi + 0xf8]
xor byte [edi], al
dec dword [ebp + 0x10]
add edi, dword [ebp - 4]
cmp dword [ebp + 0x10], ecx
jne 0x4547c3
jmp 0x454b66
mov al, byte [esi + 0xf0]
dec dword [ebp + 0x10]
mov byte [edi + 2], al
mov al, byte [esi + 0xf4]
mov byte [edi + 1], al
mov al, byte [esi + 0xf8]
mov byte [edi], al
mov al, byte [esi + 0xfc]
mov byte [edi + 3], al
add edi, dword [ebp - 4]
cmp dword [ebp + 0x10], ecx
jne 0x4547ed
jmp 0x454b66
mov al, byte [esi + 0xfc]
dec dword [ebp + 0x10]
mov byte [edi + 3], al
add edi, dword [ebp - 4]
cmp dword [ebp + 0x10], ecx
jne 0x454820
jmp 0x454b66
test al, 0x10
je 0x4549f5
cmp ebx, 4
jne 0x454991
cmp dword [ebp + 0x10], ecx
je 0x454b66
mov ebx, dword [esi + 0xfc]
movzx edx, byte [edi + 3]
test ebx, ebx
jne 0x454867
movzx eax, byte [edi + 2]
jmp 0x4548a6
test edx, edx
jne 0x454876
mov eax, dword [esi + 0xf0]
cdq
idiv ebx
jmp 0x4548a6
movzx eax, byte [edi + 2]
imul ebx, ebx, 0xff
mov ecx, dword [esi + 0x100]
imul eax, ecx
imul eax, edx
mov edx, dword [esi + 0xf0]
imul edx, edx, 0xff
add eax, edx
movzx edx, byte [edi + 3]
imul ecx, edx
cdq
add ecx, ebx
idiv ecx
mov byte [edi + 2], al
mov ebx, dword [esi + 0xfc]
test ebx, ebx
jne 0x4548b9
movzx eax, byte [edi + 1]
jmp 0x4548fc
movzx edx, byte [edi + 3]
test edx, edx
jne 0x4548cc
mov eax, dword [esi + 0xf4]
cdq
idiv ebx
jmp 0x4548fc
movzx eax, byte [edi + 1]
imul ebx, ebx, 0xff
mov ecx, dword [esi + 0x100]
imul eax, ecx
imul eax, edx
mov edx, dword [esi + 0xf4]
imul edx, edx, 0xff
add eax, edx
movzx edx, byte [edi + 3]
imul ecx, edx
cdq
add ecx, ebx
idiv ecx
mov byte [edi + 1], al
mov ebx, dword [esi + 0xfc]
test ebx, ebx
jne 0x45490e
movzx eax, byte [edi]
jmp 0x454954
movzx eax, byte [edi + 3]
test eax, eax
jne 0x454921
mov eax, dword [esi + 0xf8]
cdq
idiv ebx
jmp 0x454954
movzx eax, byte [edi]
imul ebx, ebx, 0xff
mov ecx, dword [esi + 0x100]
movzx edx, byte [edi + 3]
imul eax, ecx
imul eax, edx
mov edx, dword [esi + 0xf8]
imul edx, edx, 0xff
add eax, edx
movzx edx, byte [edi + 3]
imul ecx, edx
cdq
add ecx, ebx
idiv ecx
movzx ecx, byte [edi + 3]
mov byte [edi], al
mov eax, dword [esi + 0x100]
imul eax, ecx
mov ecx, dword [esi + 0xfc]
imul ecx, ecx, 0xff
add eax, ecx
cdq
mov ecx, 0xff
idiv ecx
dec dword [ebp + 0x10]
mov byte [edi + 3], al
add edi, dword [ebp - 4]
cmp dword [ebp + 0x10], 0
jne 0x454853
jmp 0x454b66
cmp dword [ebp + 0x10], ecx
je 0x454b66
movzx eax, byte [edi + 2]
imul eax, dword [esi + 0x100]
add eax, dword [esi + 0xf0]
mov ecx, 0xff
cdq
mov ebx, ecx
idiv ebx
mov byte [edi + 2], al
movzx eax, byte [edi + 1]
imul eax, dword [esi + 0x100]
add eax, dword [esi + 0xf4]
cdq
idiv ebx
mov byte [edi + 1], al
movzx eax, byte [edi]
imul eax, dword [esi + 0x100]
add eax, dword [esi + 0xf8]
cdq
idiv ecx
dec dword [ebp + 0x10]
mov byte [edi], al
add edi, dword [ebp - 4]
cmp dword [ebp + 0x10], 0
jne 0x45499a
jmp 0x454b66
test al, 0x20
je 0x454b40
cmp ebx, 4
jne 0x454b40
cmp dword [ebp + 0x10], ecx
je 0x454b66
mov ebx, dword [esi + 0xfc]
movzx edx, byte [edi + 3]
test ebx, ebx
jne 0x454a23
movzx eax, byte [edi + 2]
jmp 0x454a62
test edx, edx
jne 0x454a32
mov eax, dword [esi + 0xf0]
cdq
idiv ebx
jmp 0x454a62
movzx eax, byte [edi + 2]
imul ebx, ebx, 0xff
mov ecx, dword [esi + 0x100]
imul eax, ecx
imul eax, edx
mov edx, dword [esi + 0xf0]
imul edx, edx, 0xff
add eax, edx
movzx edx, byte [edi + 3]
imul ecx, edx
cdq
add ecx, ebx
idiv ecx
mov byte [edi + 2], al
mov ebx, dword [esi + 0xfc]
test ebx, ebx
jne 0x454a75
movzx eax, byte [edi + 1]
jmp 0x454ab8
movzx edx, byte [edi + 3]
test edx, edx
jne 0x454a88
mov eax, dword [esi + 0xf4]
cdq
idiv ebx
jmp 0x454ab8
movzx eax, byte [edi + 1]
imul ebx, ebx, 0xff
mov ecx, dword [esi + 0x100]
imul eax, ecx
imul eax, edx
mov edx, dword [esi + 0xf4]
imul edx, edx, 0xff
add eax, edx
movzx edx, byte [edi + 3]
imul ecx, edx
cdq
add ecx, ebx
idiv ecx
mov byte [edi + 1], al
mov ebx, dword [esi + 0xfc]
test ebx, ebx
jne 0x454aca
movzx eax, byte [edi]
jmp 0x454b0c
movzx edx, byte [edi + 3]
test edx, edx
jne 0x454add
mov eax, dword [esi + 0xf8]
cdq
idiv ebx
jmp 0x454b0c
movzx eax, byte [edi]
imul ebx, ebx, 0xff
mov ecx, dword [esi + 0x100]
imul eax, ecx
imul eax, edx
mov edx, dword [esi + 0xf8]
imul edx, edx, 0xff
add eax, edx
movzx edx, byte [edi + 3]
imul ecx, edx
cdq
add ecx, ebx
idiv ecx
dec dword [ebp + 0x10]
mov byte [edi], al
add edi, dword [ebp - 4]
cmp dword [ebp + 0x10], 0
jne 0x454a0f
jmp 0x454b66
mov al, byte [esi + 0xf0]
dec dword [ebp + 0x10]
mov byte [edi + 2], al
mov al, byte [esi + 0xf4]
mov byte [edi + 1], al
mov al, byte [esi + 0xf8]
mov byte [edi], al
add edi, dword [ebp - 4]
cmp dword [ebp + 0x10], ecx
jne 0x454b20
jmp 0x454b66
cmp dword [ebp + 0x10], ecx
je 0x454b66
push dword [ebp + 0xc]
mov eax, esi
push dword [ebp + 8]
call fcn.00453def
add edi, dword [ebp - 4]
inc dword [ebp + 0xc]
dec dword [ebp + 0x10]
pop ecx
pop ecx
jne 0x454b4c
pop edi
pop ebx
leave
ret