Function at 0x4494ef
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
cmp dword [ebp - 0x14], eax
jle 0x449516
mov eax, 0
jmp 0x4497a1
mov eax, dword [ebp + 0xc]
add eax, 0x14
mov dword [ebp - 0x24], eax
sub dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
lea edx, [eax*4]
mov eax, dword [ebp - 0x24]
add eax, edx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
add eax, 0x14
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
lea edx, [eax*4]
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov edx, dword [ebp - 0x3c]
mov edx, dword [edx]
lea ebx, [edx + 1]
mov edx, 0
div ebx
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x449676
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x24]
lea edx, [eax + 4]
mov dword [ebp - 0x24], edx
mov eax, dword [eax]
mov ecx, eax
mov ebx, 0
mov eax, dword [ebp - 0x20]
mov edx, 0
mov edi, ebx
imul edi, eax
mov esi, edx
imul esi, ecx
add esi, edi
mul ecx
mov ecx, eax
mov ebx, edx
lea eax, [esi + ebx]
mov ebx, eax
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
add eax, ecx
adc edx, ebx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
mov eax, edx
xor edx, edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, 0
mov ecx, dword [ebp - 0x48]
and ch, 0xff
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp - 0x44]
and ecx, 0
mov dword [ebp - 0x54], ecx
sub eax, dword [ebp - 0x58]
sbb edx, dword [ebp - 0x54]
sub eax, dword [ebp - 0x30]
sbb edx, dword [ebp - 0x2c]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
mov eax, edx
xor edx, edx
mov ecx, eax
and ecx, 1
mov dword [ebp - 0x30], ecx
mov eax, edx
and eax, 0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
lea edx, [eax + 4]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x50]
mov dword [eax], edx
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x3c]
jbe 0x44958d
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
test eax, eax
jne 0x449676
mov eax, dword [ebp + 8]
add eax, 0x14
mov dword [ebp - 0x18], eax
jmp 0x449658
sub dword [ebp - 0x14], 1
sub dword [ebp - 0x1c], 4
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
jbe 0x44966d
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
test eax, eax
je 0x449654
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x10], edx
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00447d75
test eax, eax
js 0x44979e
add dword [ebp - 0x20], 1
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov eax, dword [ebp + 8]
add eax, 0x14
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
add eax, 0x14
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
lea edx, [eax + 4]
mov dword [ebp - 0x24], edx
mov eax, dword [eax]
mov ecx, eax
mov ebx, 0
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
add eax, ecx
adc edx, ebx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
mov eax, edx
xor edx, edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, 0
mov ecx, dword [ebp - 0x48]
and ch, 0xff
mov dword [ebp - 0x60], ecx
mov ecx, dword [ebp - 0x44]
and ecx, 0
mov dword [ebp - 0x5c], ecx
sub eax, dword [ebp - 0x60]
sbb edx, dword [ebp - 0x5c]
sub eax, dword [ebp - 0x30]
sbb edx, dword [ebp - 0x2c]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
mov eax, edx
xor edx, edx
mov ecx, eax
and ecx, 1
mov dword [ebp - 0x30], ecx
mov eax, edx
and eax, 0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
lea edx, [eax + 4]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x50]
mov dword [eax], edx
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x3c]
jbe 0x4496c2
mov eax, dword [ebp + 8]
add eax, 0x14
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
lea edx, [eax*4]
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
test eax, eax
jne 0x44979e
jmp 0x449780
sub dword [ebp - 0x14], 1
sub dword [ebp - 0x1c], 4
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
jbe 0x449795
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
test eax, eax
je 0x44977c
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0x20]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret