Function at 0x4207d0
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 [0x44ab0c]
call fcn.0043e580
add esp, 8
push 0
push 1
lea ecx, [esp + 0xa]
push ecx
push dword [esi]
call eax
test eax, eax
setg cl
jg 0x420824
cmp dword [esi], 0xffffffff
jne 0x4209e3
test eax, eax
jle 0x420a19
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 0x4209c6
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 0x42085e
mov ecx, eax
mov dword [esp + 0x10], ecx
push ecx
call fcn.004082d0
add esp, 4
mov esi, eax
test ebp, ebp
je 0x4209a2
cmp esi, ebp
mov edx, dword [esp + 4]
mov dword [esp + 8], esi
jbe 0x42092f
cmp edi, esi
jbe 0x42092f
test edx, edx
je 0x420990
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 0x4208c4
neg esi
xor edx, edx
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp esi, edx
jne 0x4208b0
add eax, edx
add ecx, edx
add edx, dword [esp + 4]
sub ebp, edi
cmp ebp, 0xfffffff8
ja 0x420990
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 0x4208e0
jmp 0x420990
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 0x420990
mov ecx, dword [esp + 4]
and ecx, 2
movzx eax, byte [edx + ecx]
mov byte [ebx + ecx], al
cmp ebp, 1
je 0x420990
movzx eax, byte [edx + ecx + 1]
mov byte [ebx + ecx + 1], al
cmp ebp, 2
je 0x420990
movzx eax, byte [edx + ecx + 2]
mov byte [ebx + ecx + 2], al
mov ebx, dword [esp + 0x30]
push dword [ebx]
call fcn.004082e0
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 0x420a1b
movzx eax, byte [esp + 2]
cmp al, 0xa
jne 0x4207f0
jmp 0x420a1b
push 0x59ea2086
push dword [0x44ab0c]
call fcn.0043e580
add esp, 8
push 2
push dword [esi]
call eax
push 0x2e775759
push dword [0x44ab0c]
call fcn.0043e580
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