Function at 0xc46b56
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
push ebx
push esi
push edi
mov esi, 0xc70564
mov dword [ebp - 0x48], ecx
mov ecx, dword [0xc7714c]
lea edi, [ebp - 0x50]
xor eax, eax
mov dword [ebp - 0x24], 0xa8f72b71
mov dword [ebp - 0x20], 0x30f8860c
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x1c], 0x967678c7
mov dword [ebp - 0x18], 0x7c2e2d9e
mov dword [ebp - 0x14], 0x141f8839
movsw word es:[edi], word [esi]
mov dword [ebp - 0x10], 0x36dce4d7
movsb byte es:[edi], byte [esi]
xor edi, edi
or ecx, 0xaf7107ef
add ecx, 0x85968f7d
mov byte [ebp + eax - 0x188], al
inc eax
mov dword [0xc7714c], ecx
cmp eax, 0x100
jb 0xc46bab
push 6
mov dword [ebp - 8], ecx
xor esi, esi
pop ecx
xor edx, edx
mov bl, byte [ebp + esi - 0x188]
mov eax, esi
div ecx
movzx ecx, bl
push 6
movzx eax, byte [ebp + edx - 0x50]
add eax, edi
add ecx, eax
movzx edi, cl
pop ecx
mov al, byte [ebp + edi - 0x188]
mov byte [ebp + esi - 0x188], al
inc esi
mov byte [ebp + edi - 0x188], bl
cmp esi, 0x100
jb 0xc46bce
mov ebx, dword [ebp - 8]
xor esi, esi
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0xc], edx
lea eax, [ecx + 1]
movzx eax, al
lea edi, [ebp - 0x6c]
mov dword [ebp - 0x40], eax
push 6
pop ecx
mov al, byte [ebp + eax - 0x188]
mov byte [ebp - 1], al
movzx eax, al
mov dword [ebp - 0x44], eax
add eax, esi
mov esi, str.no_such_device_or_address
movzx eax, al
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 8], eax
movsw word es:[edi], word [esi]
cmp byte [ebp - 0x6c], 0x68
jne 0xc46c7b
mov al, 0x68
xor esi, esi
test al, al
je 0xc46c78
cmp byte [ebp + esi - 0x6c], 0
je 0xc46c78
push ebx
push 0xc70a70
mov ecx, ebx
call fcn.00c45fd4
mov al, byte [esi + 0xc709e9]
inc esi
pop ecx
pop ecx
cmp al, byte [ebp + esi - 0x6c]
je 0xc46c51
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0x40]
mov al, byte [ebp + esi - 0x188]
mov byte [ebp + ecx - 0x188], al
mov al, byte [ebp - 1]
mov byte [ebp + esi - 0x188], al
movzx eax, byte [ebp + ecx - 0x188]
add eax, dword [ebp - 0x44]
movzx eax, al
mov al, byte [ebp + eax - 0x188]
xor al, byte [ebp + edx - 0x24]
mov byte [ebp + edx - 0x88], al
inc edx
mov dword [ebp - 0xc], edx
cmp edx, 0x18
jb 0xc46c17
lea eax, [ebp - 0x44]
mov byte [ebp - 0x70], 0
push eax
push dword [ebp - 0x48]
lea edx, [ebp - 0x88]
mov dword [ebp - 0x44], 0x208
push 6
pop ecx
call fcn.00c4ba1b
call eax
test eax, eax
jne 0xc46e92
mov esi, 0xc6f58c
mov dword [ebp - 0x3c], 0xfae953ab
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x38], 0x18fadad7
push 0xe
pop ecx
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x34], 0xa63716b5
mov word [ebp - 0x30], 0x8377
mov byte [ebp - 0x2e], cl
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x2d], 0xd6053cc0
mov dword [ebp - 0x29], 0x2ed1f0e1
mov byte [ebp - 0x25], 0xc6
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor edi, edi
mov byte [ebp + eax - 0x188], al
inc eax
cmp eax, 0x100
jb 0xc46d33
xor esi, esi
xor edx, edx
mov bl, byte [ebp + esi - 0x188]
mov eax, esi
div ecx
movzx ecx, bl
push 0xe
movzx eax, byte [ebp + edx - 0x1c]
add eax, edi
add ecx, eax
movzx edi, cl
pop ecx
mov al, byte [ebp + edi - 0x188]
mov byte [ebp + esi - 0x188], al
inc esi
mov byte [ebp + edi - 0x188], bl
cmp esi, 0x100
jb 0xc46d44
and dword [ebp - 0xc], 0
xor esi, esi
and dword [ebp - 8], esi
mov ebx, dword [0xc7714c]
lea eax, [esi + 1]
movzx eax, al
mov dword [ebp - 0x50], eax
call fcn.00c460af
push 5
pop ecx
mov esi, 0xc7056c
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
movsw word es:[edi], word [esi]
cmp byte [ebp - 0x24], 0x46
jne 0xc46df2
mov cl, 0x46
test cl, cl
je 0xc46dcf
cmp byte [ebp + eax - 0x24], 0
je 0xc46dcf
mov cl, byte [eax + 0xc70ce1]
inc eax
cmp cl, byte [ebp + eax - 0x24]
je 0xc46db7
mov ecx, dword [ebp - 0x40]
cmp ecx, eax
jae 0xc46df2
cmp ecx, 0x21c8
jne 0xc46de4
or ebx, 0x62c4364
imul ebx, ebx, 0x255bcf18
inc ecx
cmp ecx, eax
jb 0xc46dd6
mov dword [ebp - 0x40], ecx
mov esi, dword [ebp - 0x50]
mov eax, dword [ebp - 0xc]
mov cl, byte [ebp + esi - 0x188]
movzx edx, cl
add eax, edx
movzx edi, al
mov dword [ebp - 0xc], edi
mov al, byte [ebp + edi - 0x188]
mov byte [ebp + esi - 0x188], al
mov byte [ebp + edi - 0x188], cl
movzx eax, byte [ebp + esi - 0x188]
mov ecx, dword [ebp - 8]
add eax, edx
movzx eax, al
mov al, byte [ebp + eax - 0x188]
xor al, byte [ebp + ecx - 0x3c]
mov byte [ebp + ecx - 0x6c], al
inc ecx
mov dword [ebp - 8], ecx
cmp ecx, 0x18
jb 0xc46d90
or ebx, 0x4c416ba9
mov byte [ebp - 0x54], 0
lea ecx, [ebp - 0x6c]
mov dword [0xc7714c], ebx
call fcn.00c4d05e
mov esi, eax
mov ecx, esi
call fcn.00c4d317
add eax, eax
push eax
push esi
push dword [ebp - 0x48]
call fcn.00c4cef6
mov ecx, esi
call fcn.00c4d317
push eax
push 0
push esi
call fcn.00c4cf49
add esp, 0x18
mov ecx, esi
call fcn.00c4ba07
pop edi
pop esi
pop ebx
leave
ret