Function at 0x45efc9
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
cmp dword [esi + 0xe8], edx
je 0x45efe2
mov eax, dword [esi + 0x84]
sub eax, dword [ebp + 0xc]
dec eax
jmp 0x45efe5
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 0xd4]
push ebx
push edi
mov edi, dword [esi + 0xcc]
imul edi, eax
mov eax, ecx
imul eax, dword [ebp + 8]
add edi, eax
add edi, dword [esi + 0xc8]
cmp dword [esi + 0xe0], edx
jne 0x45f42e
cmp dword [esi + 0xe4], edx
jne 0x45f42e
mov eax, dword [esi + 0xd8]
test al, 2
je 0x45f059
cmp dword [ebp + 0x10], edx
je 0x45f450
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
add edi, dword [esi + 0xd4]
dec dword [ebp + 0x10]
jne 0x45f02f
jmp 0x45f450
test eax, 0x100
je 0x45f099
cmp dword [ebp + 0x10], edx
je 0x45f450
mov al, byte [esi + 0xf0]
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, 4
dec dword [ebp + 0x10]
jne 0x45f069
jmp 0x45f450
test al, 8
je 0x45f0c7
cmp ecx, 4
jne 0x45f450
cmp dword [ebp + 0x10], edx
je 0x45f450
add edi, 3
mov al, byte [esi + 0xfc]
mov byte [edi], al
add edi, 4
dec dword [ebp + 0x10]
jne 0x45f0b2
jmp 0x45f450
test al, 0x10
je 0x45f27b
cmp ecx, 4
jne 0x45f21b
cmp dword [ebp + 0x10], edx
je 0x45f450
mov ebx, dword [esi + 0xfc]
movzx edx, byte [edi + 3]
test ebx, ebx
jne 0x45f0f5
movzx eax, byte [edi + 2]
jmp 0x45f134
test edx, edx
jne 0x45f104
mov eax, dword [esi + 0xf0]
cdq
idiv ebx
jmp 0x45f134
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 0x45f147
movzx eax, byte [edi + 1]
jmp 0x45f18a
movzx edx, byte [edi + 3]
test edx, edx
jne 0x45f15a
mov eax, dword [esi + 0xf4]
cdq
idiv ebx
jmp 0x45f18a
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 0x45f19c
movzx eax, byte [edi]
jmp 0x45f1e2
movzx eax, byte [edi + 3]
test eax, eax
jne 0x45f1af
mov eax, dword [esi + 0xf8]
cdq
idiv ebx
jmp 0x45f1e2
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
add edi, 4
dec dword [ebp + 0x10]
mov byte [edi - 1], al
jne 0x45f0e1
jmp 0x45f450
cmp dword [ebp + 0x10], edx
je 0x45f450
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
mov byte [edi], al
add edi, 3
dec dword [ebp + 0x10]
jne 0x45f224
jmp 0x45f450
test al, 0x20
je 0x45f402
cmp ecx, 4
jne 0x45f3a5
cmp dword [ebp + 0x10], edx
je 0x45f450
mov ebx, dword [esi + 0xfc]
movzx edx, byte [edi + 3]
test ebx, ebx
jne 0x45f2a9
movzx eax, byte [edi + 2]
jmp 0x45f2e8
test edx, edx
jne 0x45f2b8
mov eax, dword [esi + 0xf0]
cdq
idiv ebx
jmp 0x45f2e8
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 0x45f2fb
movzx eax, byte [edi + 1]
jmp 0x45f33e
movzx edx, byte [edi + 3]
test edx, edx
jne 0x45f30e
mov eax, dword [esi + 0xf4]
cdq
idiv ebx
jmp 0x45f33e
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 0x45f350
movzx eax, byte [edi]
jmp 0x45f392
movzx edx, byte [edi + 3]
test edx, edx
jne 0x45f363
mov eax, dword [esi + 0xf8]
cdq
idiv ebx
jmp 0x45f392
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
mov byte [edi], al
add edi, 4
dec dword [ebp + 0x10]
jne 0x45f295
jmp 0x45f450
cmp dword [ebp + 0x10], edx
je 0x45f450
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
mov byte [edi], al
add edi, 3
dec dword [ebp + 0x10]
jne 0x45f3ae
jmp 0x45f450
cmp dword [ebp + 0x10], edx
je 0x45f450
mov al, byte [esi + 0xf0]
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 [esi + 0xd4]
dec dword [ebp + 0x10]
jne 0x45f407
jmp 0x45f450
cmp dword [ebp + 0x10], edx
je 0x45f450
push dword [ebp + 0xc]
mov eax, esi
push dword [ebp + 8]
call fcn.0045eb05
add edi, dword [esi + 0xd4]
inc dword [ebp + 8]
dec dword [ebp + 0x10]
pop ecx
pop ecx
jne 0x45f433
pop edi
pop ebx
pop ebp
ret