Function at 0x4063d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x475aa8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x68], 0
call fcn.0040b810
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x84], eax
call fcn.0040b810
sub eax, dword [ebp - 0x88]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
cmp ecx, dword [ebp + 0xc]
ja 0x4065cb
mov edx, 0x54
sub edx, dword [ebp - 0x68]
mov dword [ebp - 0x78], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 0x7c]
push ecx
mov edx, dword [ebp - 0x78]
push edx
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x60]
mov eax, dword [ecx]
mov ecx, dword [edx + 4]
mov edx, dword [eax + 0x10]
call edx
mov byte [ebp - 0x61], al
movzx eax, byte [ebp - 0x61]
test eax, eax
jne 0x40645d
mov eax, 0x80008002
jmp 0x4065da
mov ecx, dword [ebp - 0x6c]
cmp ecx, dword [ebp - 0x78]
jbe 0x40646b
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x60]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0x60]
mov edx, dword [eax]
mov ecx, dword [ecx + 4]
mov eax, dword [edx + 0x18]
call eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x70], 0
jmp 0x40649b
mov ecx, dword [ebp - 0x70]
add ecx, 1
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x70]
cmp edx, dword [ebp - 0x6c]
jae 0x4065c6
mov eax, dword [ebp - 0x70]
mov cl, byte [ebp + eax - 0x58]
mov byte [ebp - 0x59], cl
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x80], edx
cmp dword [ebp - 0x80], 0
je 0x4064c5
cmp dword [ebp - 0x80], 1
je 0x4064e8
jmp 0x406510
movzx eax, byte [ebp - 0x59]
sar eax, 4
mov byte [ebp - 0x62], al
movzx ecx, byte [ebp - 0x62]
cmp ecx, 0xa
jne 0x4064da
jmp 0x4064e6
mov edx, dword [ebp - 0x60]
mov byte [edx + 0x20471], 0
jmp 0x406492
jmp 0x406510
movzx eax, byte [ebp - 0x59]
sar eax, 4
mov byte [ebp - 0x63], al
movzx ecx, byte [ebp - 0x63]
cmp ecx, 5
jne 0x4064fd
jmp 0x406510
mov dword [ebp - 0x68], 0
mov edx, dword [ebp - 0x60]
mov byte [edx + 0x20471], 0
jmp 0x406492
mov eax, dword [ebp - 0x84]
add eax, dword [ebp - 0x68]
mov cl, byte [ebp - 0x59]
mov byte [eax], cl
mov edx, dword [ebp - 0x68]
add edx, 1
mov dword [ebp - 0x68], edx
cmp dword [ebp - 0x68], 0x54
jne 0x4065c1
mov byte [ebp - 0x5a], 0
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
and ecx, 0xf
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 1]
shl eax, 4
or ecx, eax
mov byte [ebp - 0x64], cl
mov dword [ebp - 0x74], 2
jmp 0x40655f
mov ecx, dword [ebp - 0x74]
add ecx, 1
mov dword [ebp - 0x74], ecx
cmp dword [ebp - 0x74], 0x54
jae 0x40657c
mov edx, dword [ebp - 0x84]
add edx, dword [ebp - 0x74]
movzx eax, byte [edx]
movzx ecx, byte [ebp - 0x5a]
xor ecx, eax
mov byte [ebp - 0x5a], cl
jmp 0x406556
movzx edx, byte [ebp - 0x64]
movzx eax, byte [ebp - 0x5a]
cmp edx, eax
jne 0x4065b0
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 2]
and edx, 0x8000
je 0x4065ac
mov eax, dword [ebp - 0x60]
mov byte [eax + 0x28], 0
mov ecx, dword [ebp - 0x60]
mov byte [ecx + 0x20471], 0
xor eax, eax
jmp 0x4065da
xor eax, eax
jmp 0x4065da
mov edx, dword [ebp - 0x60]
mov byte [edx + 0x20471], 0
mov eax, 0x80008000
jmp 0x4065da
jmp 0x406492
jmp 0x406401
mov eax, dword [ebp - 0x60]
mov byte [eax + 0x20471], 0
mov eax, 0x80008002
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041de32
mov esp, ebp
pop ebp
ret 8