Function at 0x421dc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov esi, ecx
mov ebx, dword [esp + 0x30]
mov byte [esp + 2], 0
xor eax, eax
mov dword [esp + 0xc], ecx
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [esp + 0x18], eax
push 0xadeee8f4
push dword [0x44df90]
call fcn.004412a0
add esp, 8
push 0
push 1
lea ecx, [esp + 0xa]
push ecx
push dword [esi]
call eax
test eax, eax
setg cl
jg 0x421e14
cmp dword [esi], 0xffffffff
jne 0x421fd3
test eax, eax
jle 0x422009
movzx eax, byte [esp + 2]
mov ebp, dword [ebx]
mov edi, dword [ebx + 4]
mov edx, edi
sub edx, ebp
cmp edi, dword [ebx + 8]
jne 0x421fb6
mov byte [esp + 3], al
mov dword [esp + 0x14], ecx
lea eax, [edx + 1]
mov ecx, edx
shr ecx, 1
mov dword [esp + 4], edx
add ecx, edx
cmp ecx, eax
ja 0x421e4e
mov ecx, eax
mov dword [esp + 0x10], ecx
push ecx
call fcn.00408810
add esp, 4
mov esi, eax
test ebp, ebp
je 0x421f92
cmp esi, ebp
mov edx, dword [esp + 4]
mov dword [esp + 8], esi
jbe 0x421f1f
cmp edi, esi
jbe 0x421f1f
test edx, edx
je 0x421f80
mov edx, dword [esp + 4]
lea eax, [edx + ebp]
dec eax
mov ecx, dword [esp + 8]
add ecx, edx
dec ecx
mov esi, edx
and esi, 7
je 0x421eb4
neg esi
xor edx, edx
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp esi, edx
jne 0x421ea0
add eax, edx
add ecx, edx
add edx, dword [esp + 4]
sub ebp, edi
cmp ebp, 0xfffffff8
ja 0x421f80
neg edx
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edi]
mov byte [ecx + edi], bl
movzx ebx, byte [eax + edi - 1]
mov byte [ecx + edi - 1], bl
movzx ebx, byte [eax + edi - 2]
mov byte [ecx + edi - 2], bl
movzx ebx, byte [eax + edi - 3]
mov byte [ecx + edi - 3], bl
movzx ebx, byte [eax + edi - 4]
mov byte [ecx + edi - 4], bl
movzx ebx, byte [eax + edi - 5]
mov byte [ecx + edi - 5], bl
movzx ebx, byte [eax + edi - 6]
mov byte [ecx + edi - 6], bl
movzx ebx, byte [eax + edi - 7]
mov byte [ecx + edi - 7], bl
add edi, 0xfffffff8
cmp edx, edi
jne 0x421ed0
jmp 0x421f80
mov ecx, edx
shr ecx, 2
mov eax, ebp
mov edi, esi
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, edx
and edx, 0xfffffffc
lea ebx, [esi + edx]
add edx, ebp
mov ebp, eax
and ebp, 3
mov ecx, ebp
shr ecx, 1
mov esi, edx
mov edi, ebx
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov ecx, ebp
xor ecx, 0xfffffffe
or ebp, 1
and ebp, ecx
je 0x421f80
mov ecx, dword [esp + 4]
and ecx, 2
movzx eax, byte [edx + ecx]
mov byte [ebx + ecx], al
cmp ebp, 1
je 0x421f80
movzx eax, byte [edx + ecx + 1]
mov byte [ebx + ecx + 1], al
cmp ebp, 2
je 0x421f80
movzx eax, byte [edx + ecx + 2]
mov byte [ebx + ecx + 2], al
mov ebx, dword [esp + 0x30]
push dword [ebx]
call fcn.00408820
add esp, 4
mov esi, dword [esp + 8]
mov dword [ebx], esi
mov edx, dword [esp + 4]
lea eax, [esi + edx]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x10]
add eax, esi
mov dword [ebx + 8], eax
mov ecx, dword [esp + 0x14]
movzx eax, byte [esp + 3]
mov ebp, esi
mov esi, dword [esp + 0xc]
mov byte [ebp + edx], al
inc dword [ebx + 4]
cmp byte [esp + 0x18], 0xd
je 0x42200b
movzx eax, byte [esp + 2]
cmp al, 0xa
jne 0x421de0
jmp 0x42200b
push 0x59ea2086
push dword [0x44df90]
call fcn.004412a0
add esp, 8
push 2
push dword [esi]
call eax
push 0x2e775759
push dword [0x44df90]
call fcn.004412a0
add esp, 8
push dword [esi]
call eax
mov dword [esi], 0xffffffff
xor ecx, ecx
mov eax, ecx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret 4