Function at 0x4c18d0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
pcmpeqd xmm0, xmm0
mov esi, dword [ebp + 8]
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 8], ecx
mov eax, edx
movdqa xmmword [esp + 0x20], xmm0
mov dword [esp + 0x18], eax
mov ecx, dword [ecx + 8]
mov edx, esi
push eax
call fcn.004923d0
add esp, 4
test byte [esi + 0x24], 0x40
je 0x4c1986
mov eax, dword [esp + 8]
mov ecx, dword [eax + 8]
mov eax, 0x51ea94
mov edx, dword [ecx]
cmp byte [edx + 0x51], 0
jne 0x4c1940
mov eax, dword [ecx + 0x68]
mov ecx, dword [ecx + 0x6c]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4 - 0x14]
cmp byte [eax], 0x5a
jne 0x4c1986
mov eax, dword [eax + 0x10]
cmp byte [eax], 0
je 0x4c1986
xor ecx, ecx
mov edx, 0x10
mov esi, eax
jmp 0x4c196d
inc ecx
add edx, 0x14
cmp byte [eax + ecx], 0
lea esi, [eax + ecx]
je 0x4c1986
mov edi, dword [ebp + 8]
mov edi, dword [edi + 4]
movzx ebx, word [edi + edx]
test bl, 0x20
jne 0x4c1961
test bl, 0x40
je 0x4c1960
mov byte [esi], 0x40
jmp 0x4c1960
mov eax, dword [ebp + 8]
movzx edx, word [eax + 0x2a]
test dx, dx
jle 0x4c19ca
xor eax, eax
mov ecx, 0x10
jmp 0x4c19ab
inc eax
movsx esi, dx
add ecx, 0x14
cmp eax, esi
jge 0x4c19ca
mov edi, dword [ebp + 8]
mov esi, dword [edi + 4]
movzx ebx, word [esi + ecx]
test bl, 0x60
je 0x4c19a0
or ebx, 0x80
mov word [esi + ecx], bx
movzx edx, word [edi + 0x2a]
jmp 0x4c19a0
mov eax, dword [esp + 0x18]
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 8]
neg eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x24], 0x4c4d00
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [ecx + 0x34], eax
mov ecx, edx
movzx eax, word [edx + 0x2a]
nop dword [eax]
test ax, ax
jle 0x4c1b5d
xor edx, edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], 0
jmp 0x4c1a32
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0xc]
movsx eax, word [ecx + 0x2a]
inc edx
cmp edx, eax
jge 0x4c1b30
mov esi, dword [ecx + 4]
lea edi, [edx + edx*4]
cmp edx, 1
mov ebx, 1
cmova ebx, edx
movzx eax, word [esi + edi*4 + 0x10]
test al, al
jns 0x4c1a25
mov dword [esp + 0xc], edx
lea edx, [esi + edi*4 + 0x10]
or eax, 0x100
mov word [edx], ax
mov word [esp + 0x34], 0
mov dword [esp + 0x14], edx
mov edx, dword [esi + edi*4 + 4]
test edx, edx
je 0x4c1a7b
lea ecx, [esp + 0x20]
call fcn.0048d1b0
mov ecx, dword [ebp + 8]
lea edx, [esi + edi*4]
mov esi, dword [esp + 0x14]
and byte [esi + 1], 0xfe
cmp byte [esp + 0x34], 0
js 0x4c1a1d
test byte [ecx + 0x24], 0x20
jne 0x4c1a99
mov ecx, dword [esp + 0xc]
jmp 0x4c1b01
mov edi, dword [esp + 0xc]
test di, di
js 0x4c1aff
mov esi, dword [ecx + 4]
movzx eax, word [esi + 0x10]
and eax, 0x20
test di, di
je 0x4c1ae9
movsx edi, di
mov ecx, 1
cmp edi, 1
cmovbe edi, ecx
add esi, 0x24
xor ecx, ecx
nop word cs:[eax + eax]
nop
movzx eax, ax
shr eax, 5
xor eax, 1
add ecx, eax
movzx eax, word [esi]
add esi, 0x14
and eax, 0x20
dec ebx
jne 0x4c1ad0
jmp 0x4c1aed
xor edi, edi
xor ecx, ecx
mov esi, dword [esp + 0x14]
test ax, ax
je 0x4c1b01
mov eax, dword [ebp + 8]
sub edi, ecx
add di, word [eax + 0x2c]
mov ecx, edi
movsx eax, cx
mov ecx, dword [esp + 8]
add eax, dword [esp + 0x18]
push eax
call fcn.00488130
add esp, 4
mov ecx, dword [ebp + 8]
and byte [esi], 0x7f
mov dword [esp + 0x1c], 1
jmp 0x4c1a21
cmp dword [esp + 0x1c], 0
je 0x4c1b42
cmp dword [esp + 0x10], 0
jne 0x4c1a00
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4c1b5d
push dword [eax]
push str.generated_column_loop_on___s_
push dword [esp + 0x10]
call fcn.0042af90
add esp, 0xc
mov eax, dword [esp + 8]
mov dword [eax + 0x34], 0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret