Function at 0x41e52d
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
cmp dword [ebp - 0x1c], eax
jle 0x41e554
mov eax, 0
jmp 0x41e7fb
mov eax, dword [ebp + 0xc]
add eax, 0x14
mov dword [ebp - 0x2c], eax
sub dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x1c]
lea edx, [eax*4]
mov eax, dword [ebp - 0x2c]
add eax, edx
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 8]
add eax, 0x14
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
lea edx, [eax*4]
mov eax, dword [ebp - 0x20]
add eax, edx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov edx, dword [ebp - 0x44]
mov edx, dword [edx]
lea edi, [edx + 1]
mov edx, 0
div edi
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x41e6c2
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x2c]
lea edx, [eax + 4]
mov dword [ebp - 0x2c], edx
mov eax, dword [eax]
mov ecx, eax
mov ebx, 0
mov eax, dword [ebp - 0x28]
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 - 0x40]
mov edx, dword [ebp - 0x3c]
add eax, ecx
adc edx, ebx
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 ebx, eax
mov esi, edx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], esi
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov edx, eax
mov ecx, 0
mov eax, dword [ebp - 0x50]
and ah, 0xff
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x4c]
and eax, 0
mov dword [ebp - 0x5c], eax
mov eax, edx
mov edx, ecx
sub eax, dword [ebp - 0x60]
sbb edx, dword [ebp - 0x5c]
sub eax, dword [ebp - 0x38]
sbb edx, dword [ebp - 0x34]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
mov eax, edx
xor edx, edx
mov ebx, eax
mov esi, edx
mov ecx, ebx
and ecx, 1
mov dword [ebp - 0x38], ecx
mov eax, esi
and eax, 0
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x20]
lea edx, [eax + 4]
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x58]
mov dword [eax], edx
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x44]
jbe 0x41e5cb
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
test eax, eax
jne 0x41e6c2
mov eax, dword [ebp + 8]
add eax, 0x14
mov dword [ebp - 0x20], eax
jmp 0x41e6a4
sub dword [ebp - 0x1c], 1
sub dword [ebp - 0x24], 4
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
jbe 0x41e6b9
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
test eax, eax
je 0x41e6a0
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
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.00420920
test eax, eax
js 0x41e7f8
add dword [ebp - 0x28], 1
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp + 8]
add eax, 0x14
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
add eax, 0x14
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
lea edx, [eax + 4]
mov dword [ebp - 0x2c], edx
mov eax, dword [eax]
mov ecx, eax
mov ebx, 0
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
add eax, ecx
adc edx, ebx
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 ebx, eax
mov esi, edx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], esi
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov edx, eax
mov ecx, 0
mov eax, dword [ebp - 0x50]
and ah, 0xff
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x4c]
and eax, 0
mov dword [ebp - 0x64], eax
mov eax, edx
mov edx, ecx
sub eax, dword [ebp - 0x68]
sbb edx, dword [ebp - 0x64]
sub eax, dword [ebp - 0x38]
sbb edx, dword [ebp - 0x34]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
mov eax, edx
xor edx, edx
mov ebx, eax
mov esi, edx
mov ecx, ebx
and ecx, 1
mov dword [ebp - 0x38], ecx
mov eax, esi
and eax, 0
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x20]
lea edx, [eax + 4]
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x58]
mov dword [eax], edx
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x44]
jbe 0x41e70e
mov eax, dword [ebp + 8]
add eax, 0x14
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
lea edx, [eax*4]
mov eax, dword [ebp - 0x20]
add eax, edx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
test eax, eax
jne 0x41e7f8
jmp 0x41e7da
sub dword [ebp - 0x1c], 1
sub dword [ebp - 0x24], 4
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
jbe 0x41e7ef
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
test eax, eax
je 0x41e7d6
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0x28]
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret