Function at 0x407730
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, ecx
test edx, edx
je 0x407745
push esi
call fcn.00407a20
jmp 0x40774b
push esi
call fcn.00407fb0
add esp, 4
lea ebp, [esi + 0x9272]
cmp ebp, dword [esi + 0x28]
jae 0x4079ad
mov eax, 1
jmp 0x40777f
mov eax, dword [esp + 0xc]
shr eax, 1
cmp ebp, dword [esi + 0x28]
jae 0x4079b3
cmp eax, 1
jne 0x40778e
movzx eax, byte [ebp]
inc ebp
or eax, 0x100
mov dword [esp + 0xc], eax
test al, 1
jne 0x407800
movzx edx, byte [ebp]
inc ebp
movzx ebx, word [esi + edx*2 + 0x8852]
mov eax, dword [esi + 0x44]
mov ecx, eax
shl ebx, cl
movzx ecx, byte [esi + edx + 0x8f12]
mov edi, dword [esi + 0x48]
mov edx, edi
xor edx, ebx
not ebx
and ebx, edi
add edx, edi
sub edx, ebx
mov dword [esi + 0x48], edx
add ecx, eax
mov dword [esi + 0x44], ecx
cmp ecx, 8
jae 0x4077e1
jmp 0x407770
shr edx, 8
mov dword [esi + 0x48], edx
add ecx, 0xfffffff8
mov dword [esi + 0x44], ecx
cmp ecx, 7
jbe 0x407770
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x4077d0
lea ecx, [eax + 1]
mov dword [esi + 0x30], ecx
mov byte [eax], dl
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
jmp 0x4077d0
movzx eax, byte [ebp]
mov edi, eax
movzx eax, word [eax + eax + 0x437bea]
movzx edx, word [esi + eax*2 + 0x8852]
mov ecx, dword [esi + 0x44]
shl edx, cl
movzx eax, byte [esi + eax + 0x8f12]
add eax, ecx
movzx ecx, byte [ebp + 1]
mov dword [esp], ecx
or edx, dword [esi + 0x48]
mov dword [esp + 8], ebp
movzx ebp, byte [ebp + 2]
mov dword [esi + 0x48], edx
mov dword [esi + 0x44], eax
cmp eax, 8
jae 0x4078a1
movzx ebx, byte [edi + 0x437e44]
and edi, dword [ebx*4 + 0x437e00]
mov ecx, eax
shl edi, cl
or edi, edx
mov edx, edi
mov dword [esi + 0x48], edi
add eax, ebx
mov dword [esi + 0x44], eax
cmp eax, 8
jae 0x4078d1
mov dword [esp + 4], edx
mov edx, ebp
shl edx, 8
add edx, dword [esp]
cmp edx, 0x200
jb 0x4078f0
lea ecx, [ebp + 0x437b6a]
lea ebp, [ebp + 0x438144]
jmp 0x4078fc
shr edx, 8
mov dword [esi + 0x48], edx
add eax, 0xfffffff8
mov dword [esi + 0x44], eax
cmp eax, 7
jbe 0x407842
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x407890
lea eax, [ecx + 1]
mov dword [esi + 0x30], eax
mov byte [ecx], dl
mov eax, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
jmp 0x407890
shr edx, 8
mov dword [esi + 0x48], edx
add eax, 0xfffffff8
mov dword [esi + 0x44], eax
cmp eax, 7
jbe 0x407865
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x4078c0
lea eax, [ecx + 1]
mov dword [esi + 0x30], eax
mov byte [ecx], dl
mov eax, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
jmp 0x4078c0
lea ecx, [edx + 0x43796a]
lea ebp, [edx + 0x437f44]
movzx edi, byte [ecx]
movzx ebx, word [esi + edi*2 + 0x8a92]
mov ecx, eax
shl ebx, cl
or ebx, dword [esp + 4]
movzx ecx, byte [esi + edi + 0x9032]
add ecx, eax
movzx eax, byte [ebp]
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], ecx
cmp ecx, 8
jae 0x407961
mov ebp, dword [esp + 8]
add ebp, 3
and edx, dword [eax*4 + 0x437e00]
shl edx, cl
or edx, ebx
mov dword [esi + 0x48], edx
add ecx, eax
mov dword [esi + 0x44], ecx
cmp ecx, 8
jae 0x407995
jmp 0x407770
shr ebx, 8
mov dword [esi + 0x48], ebx
add ecx, 0xfffffff8
mov dword [esi + 0x44], ecx
cmp ecx, 7
jbe 0x407928
mov ebp, dword [esi + 0x30]
cmp ebp, dword [esi + 0x34]
jae 0x407950
lea ecx, [ebp + 1]
mov dword [esi + 0x30], ecx
mov byte [ebp], bl
mov ecx, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
jmp 0x407950
shr edx, 8
mov dword [esi + 0x48], edx
add ecx, 0xfffffff8
mov dword [esi + 0x44], ecx
cmp ecx, 7
jbe 0x407770
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x407980
lea ecx, [eax + 1]
mov dword [esi + 0x30], ecx
mov byte [eax], dl
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
jmp 0x407980
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
movzx eax, word [esi + 0x8a52]
movzx edi, byte [esi + 0x9012]
shl eax, cl
or eax, edx
mov dword [esi + 0x48], eax
add edi, ecx
mov dword [esi + 0x44], edi
cmp edi, 8
jae 0x407a01
mov ecx, dword [esi + 0x30]
xor eax, eax
cmp ecx, dword [esi + 0x34]
setb al
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
shr eax, 8
mov dword [esi + 0x48], eax
add edi, 0xfffffff8
mov dword [esi + 0x44], edi
cmp edi, 7
jbe 0x4079d2
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x4079f0
lea edx, [ecx + 1]
mov dword [esi + 0x30], edx
mov byte [ecx], al
mov edi, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
jmp 0x4079f0