Function at 0x4401a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
add edx, ebp
sub edx, ebx
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
cmp edx, ebp
jbe 0x440503
mov esi, dword [esp + 0x48]
lea eax, [ebx - 1]
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], 0
mov dword [esp], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], edx
jmp 0x44023a
push eax
push edx
push ecx
call fcn.0040c950
add esp, 0xc
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0x44]
mov dword [edi + eax], ebp
add esi, 4
mov eax, dword [esp + 0x34]
mov dword [eax + 4], esi
add ebp, ebx
dec ebp
mov dword [esp + 0xc], esi
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x48]
inc ebp
mov dword [esp], edi
cmp ebp, edx
jae 0x440503
test esi, esi
je 0x440243
cmp byte [esi], 0x3f
je 0x44024f
movzx eax, byte [ebp]
mov ecx, dword [esp + 0x40]
cmp al, byte [ecx]
jne 0x4402c0
cmp ebx, 2
jb 0x440290
xor eax, eax
jmp 0x44027a
movzx ecx, byte [ebp + eax + 1]
mov edi, dword [esp + 0x40]
cmp cl, byte [edi + eax + 1]
jne 0x4403df
inc eax
cmp dword [esp + 0x1c], eax
je 0x440290
test esi, esi
je 0x440260
cmp byte [esi + eax + 1], 0x3f
jne 0x440260
jmp 0x440273
mov edx, dword [esp + 0xc]
mov eax, edx
not eax
mov edi, dword [esp]
and eax, edi
mov ecx, edi
not ecx
and ecx, edx
sub ecx, eax
cmp edx, dword [esp + 0x10]
je 0x4402c8
mov eax, edx
sub eax, edi
mov esi, edx
cmp eax, ecx
jae 0x440212
jmp 0x440479
mov edi, dword [esp]
jmp 0x44022e
mov dword [esp + 0x14], ecx
mov eax, ecx
sar eax, 2
inc eax
sub edx, edi
mov dword [esp + 4], edx
mov ecx, edx
sar ecx, 2
mov edx, ecx
shr edx, 1
add edx, ecx
cmp edx, eax
ja 0x4402e9
mov edx, eax
mov eax, edx
and eax, 4
mov ecx, edx
or ecx, 4
imul ecx, eax
xor eax, 4
mov esi, edx
mov dword [esp + 0x10], edx
and edx, 0xfffffffb
imul edx, eax
add ecx, edx
push ecx
call fcn.0040c8d0
add esp, 4
mov edi, eax
mov edx, dword [esp]
test edx, edx
je 0x44044b
cmp edi, edx
jbe 0x4403e9
cmp dword [esp + 0xc], edi
jbe 0x4403e9
cmp dword [esp + 4], 0
je 0x44043c
mov eax, dword [esp]
mov edx, dword [esp + 4]
add eax, edx
dec eax
lea ecx, [edi + edx]
dec ecx
mov esi, edx
and esi, 7
je 0x440374
neg esi
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp esi, edx
jne 0x440360
add eax, edx
add ecx, edx
add edx, dword [esp + 4]
mov esi, dword [esp]
sub esi, dword [esp + 0xc]
cmp esi, 0xfffffff8
ja 0x44043c
neg edx
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + esi]
mov byte [ecx + esi], bl
movzx ebx, byte [eax + esi - 1]
mov byte [ecx + esi - 1], bl
movzx ebx, byte [eax + esi - 2]
mov byte [ecx + esi - 2], bl
movzx ebx, byte [eax + esi - 3]
mov byte [ecx + esi - 3], bl
movzx ebx, byte [eax + esi - 4]
mov byte [ecx + esi - 4], bl
movzx ebx, byte [eax + esi - 5]
mov byte [ecx + esi - 5], bl
movzx ebx, byte [eax + esi - 6]
mov byte [ecx + esi - 6], bl
movzx ebx, byte [eax + esi - 7]
mov byte [ecx + esi - 7], bl
add esi, 0xfffffff8
cmp edx, esi
jne 0x440390
jmp 0x44043c
add ebp, eax
mov edi, dword [esp]
jmp 0x44022e
mov ebx, dword [esp + 4]
mov ecx, ebx
shr ecx, 2
mov eax, edx
mov dword [esp + 8], edi
mov edi, dword [esp + 8]
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov ecx, ebx
not ecx
or ecx, 0xfffffffc
add ecx, ebx
mov eax, dword [esp + 8]
add eax, ecx
inc eax
add edx, ecx
inc edx
mov ecx, ebx
shr ecx, 1
and ecx, 1
mov esi, edx
mov edi, eax
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov edi, dword [esp + 8]
test bl, 1
je 0x44043c
mov ecx, dword [esp + 4]
and ecx, 2
movzx edx, byte [edx + ecx]
mov byte [eax + ecx], dl
push dword [esp]
call fcn.0040c8e0
add esp, 4
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x34]
mov dword [eax], edi
mov ecx, dword [esp + 0x14]
lea esi, [edi + ecx]
mov dword [eax + 4], esi
mov edx, dword [esp + 0x10]
lea edx, [edi + edx*4]
mov dword [esp + 0x10], edx
mov dword [eax + 8], edx
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
cmp eax, ecx
jae 0x440212
mov ebx, ecx
mov ecx, eax
mov eax, dword [esp]
add eax, ebx
sub eax, edx
lea edx, [edi + ecx]
mov dword [esp + 4], ecx
add ecx, edi
add ecx, 4
cmp eax, 4
jg 0x4401ff
mov dword [esp], ecx
mov ecx, eax
shr ecx, 2
mov ebx, edx
mov dword [esp + 8], edi
mov edi, dword [esp]
xchg esi, ebx
rep movsd dword es:[edi], dword [esi]
xchg esi, ebx
mov ecx, eax
not ecx
or ecx, 0xfffffffc
add ecx, eax
mov edi, dword [esp]
add edi, ecx
inc edi
add edx, ecx
inc edx
mov ecx, eax
shr ecx, 1
and ecx, 1
mov ebx, edx
mov dword [esp], edi
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
mov edi, dword [esp + 8]
mov ebx, dword [esp + 0x44]
mov ecx, eax
test al, 1
mov eax, dword [esp + 4]
je 0x440212
mov eax, ecx
and eax, 2
movzx ecx, byte [edx + eax]
mov edx, dword [esp]
mov byte [edx + eax], cl
mov eax, dword [esp + 4]
jmp 0x440212
mov eax, dword [esp + 0x34]
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret