Function at 0xc47368
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
push ebx
push esi
push edi
mov esi, 0xc6f528
mov dword [ebp - 0x58], ecx
lea edi, [ebp - 0x54]
mov dword [ebp - 0x30], 0x8c4b8e3b
mov dword [ebp - 0x2c], 0xf3d489ee
mov ebx, 0x100
mov dword [ebp - 0x28], 0x6c838724
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x24], 0xf9c4be80
mov dword [ebp - 0x20], 0x1b66154a
mov dword [ebp - 0x1c], 0xf6bbb18f
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x18], 0x6916a51b
mov dword [ebp - 0x14], 0xf45b6162
mov dword [ebp - 0x10], 0x5b032699
movsb byte es:[edi], byte [esi]
xor edi, edi
mov dword [ebp - 0xc], 0x6308520e
mov dword [ebp - 8], 0x3d70385b
xor eax, eax
mov byte [ebp + eax - 0x15c], al
inc eax
cmp eax, ebx
jb 0xc473d8
xor esi, esi
mov dl, byte [ebp + esi - 0x15c]
mov eax, esi
and eax, 7
movzx ecx, dl
movzx eax, byte [ebp + eax - 0x54]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [ebp + edi - 0x15c]
mov byte [ebp + esi - 0x15c], al
inc esi
mov byte [ebp + edi - 0x15c], dl
cmp esi, ebx
jb 0xc473e6
xor ebx, ebx
xor edi, edi
xor esi, esi
lea eax, [edi + 1]
movzx edi, al
mov cl, byte [ebp + edi - 0x15c]
movzx edx, cl
lea eax, [edx + ebx]
movzx ebx, al
mov al, byte [ebp + ebx - 0x15c]
mov byte [ebp + edi - 0x15c], al
mov byte [ebp + ebx - 0x15c], cl
movzx eax, byte [ebp + edi - 0x15c]
add eax, edx
movzx eax, al
mov al, byte [ebp + eax - 0x15c]
xor al, byte [ebp + esi - 0x30]
mov byte [ebp + esi - 0x18c], al
inc esi
cmp esi, 0x2c
jb 0xc47421
lea eax, [ebp - 0x5c]
mov byte [ebp - 0x160], 0
push eax
push dword [ebp - 0x58]
xor ecx, ecx
mov dword [ebp - 0x5c], 0x208
push 2
lea edx, [ebp - 0x18c]
inc ecx
call fcn.00c4ba1b
call eax
test eax, eax
jne 0xc47650
mov edx, dword [0xc770e4]
mov ecx, 0xc771a0
push edx
mov dword [ebp - 0x48], 0xe4f9233e
mov dword [ebp - 0x44], 0xb7781eba
mov dword [ebp - 0x40], 0x8dda9e42
mov dword [ebp - 0x3c], 0xa15154fe
mov dword [ebp - 0x38], 0x642b17fe
mov dword [ebp - 0x34], 0x7a379615
call fcn.00c4574b
xor esi, esi
cmp byte [0xc771a0], 0
pop ecx
je 0xc4754f
mov ebx, dword [0xc770e4]
call fcn.00c46236
xor ebx, 0x8b27bbf
inc esi
cmp byte [esi + 0xc771a0], 0
jne 0xc474ed
mov edi, dword [ebp - 0x5c]
mov dword [ebp - 4], ebx
cmp edi, esi
jae 0xc47557
mov dword [ebp - 4], ebx
mov dword [ebp - 0x50], ebx
mov edx, ebx
mov ecx, 0xc771a0
call fcn.00c45da2
mov ebx, dword [ebp - 0x50]
cmp edi, 0x11a5
jne 0xc47532
mov ebx, dword [ebp - 4]
and ebx, 0x98b9ef3
xor ebx, 0xe0f6bcd1
mov dword [ebp - 4], ebx
call fcn.00c4555f
inc edi
mov eax, ebx
mov dword [ebp - 0x50], eax
cmp edi, esi
jb 0xc47512
mov dword [ebp - 4], ebx
jmp 0xc47557
mov eax, dword [0xc770e4]
mov dword [ebp - 4], eax
mov esi, str.Errors
lea edi, [ebp - 0x54]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor edi, edi
xor eax, eax
mov byte [ebp + eax - 0x15c], al
inc eax
cmp eax, 0x100
jb 0xc47567
xor esi, esi
xor edx, edx
mov bl, byte [ebp + esi - 0x15c]
push 6
mov eax, esi
pop ecx
div ecx
movzx ecx, bl
movzx eax, byte [ebp + edx - 0x54]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [ebp + edi - 0x15c]
mov byte [ebp + esi - 0x15c], al
inc esi
mov byte [ebp + edi - 0x15c], bl
cmp esi, 0x100
jb 0xc47578
mov eax, dword [ebp - 4]
xor ebx, ebx
xor eax, 0xd7bf2581
xor edi, edi
mov dword [0xc770e4], eax
xor esi, esi
lea eax, [edi + 1]
movzx edi, al
mov cl, byte [ebp + edi - 0x15c]
movzx edx, cl
lea eax, [ebx + edx]
movzx ebx, al
mov al, byte [ebp + ebx - 0x15c]
mov byte [ebp + edi - 0x15c], al
mov byte [ebp + ebx - 0x15c], cl
movzx eax, byte [ebp + edi - 0x15c]
add eax, edx
movzx eax, al
mov al, byte [ebp + eax - 0x15c]
xor al, byte [ebp + esi - 0x48]
mov byte [ebp + esi - 0x20], al
inc esi
cmp esi, 0x18
jb 0xc475c8
lea ecx, [ebp - 0x20]
mov byte [ebp - 8], 0
call fcn.00c4d05e
mov esi, eax
mov ecx, esi
call fcn.00c4d317
add eax, eax
push eax
push esi
push dword [ebp - 0x58]
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