Function at 0x4c4f20
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov ebx, ecx
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov esi, dword [ecx]
mov ecx, dword [esi + 8]
or byte [ebx + 0x34], 1
mov dword [esp], edx
mov ebp, dword [ecx + 0x6c]
cmp dword [ecx + 0x70], ebp
mov dword [esp + 0x10], ecx
jle 0x4c4f7c
lea edx, [ebp + 1]
mov dword [ecx + 0x6c], edx
mov edx, dword [ecx + 0x68]
lea ecx, [ebp*4]
add ecx, ebp
mov dword [edx + ecx*4], 0x8d
mov dword [edx + ecx*4 + 4], eax
mov dword [edx + ecx*4 + 8], 0
mov dword [edx + ecx*4 + 0xc], edi
mov dword [edx + ecx*4 + 0x10], 0
jmp 0x4c4f8d
mov edx, 0x8d
push edi
push 0
push eax
call fcn.004747e0
add esp, 0xc
movzx eax, word [ebx + 0x2c]
test eax, 0x1020
je 0x4c4fa6
mov eax, dword [esi + 0x74]
test eax, eax
cmove eax, esi
cmp dword [eax + 0x50], 0
je 0x4c4fae
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov ecx, dword [esi]
mov dword [esp + 4], eax
movsx eax, word [eax + 0x22]
lea ebp, [eax*4 + 4]
test ecx, ecx
je 0x4c4fd7
mov edx, ebp
push 0
call fcn.0043f5f0
add esp, 4
jmp 0x4c4fe0
mov ecx, ebp
xor edx, edx
call fcn.00424d20
mov ebx, eax
test eax, eax
je 0x4c4fa6
push ebp
push 0
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov eax, dword [esp + 4]
movsx eax, word [eax + 0x22]
mov dword [ebx], eax
mov edi, dword [esp]
movzx edx, word [edi + 0x34]
cmp dx, 2
jb 0x4c522e
xor eax, eax
movdqa xmm1, xmmword [0x5295d0]
mov dword [esp + 0xc], ebx
jmp 0x4c5038
movsx ecx, si
inc eax
mov dword [ebx + ecx*4 + 4], eax
movzx edx, word [edi + 0x34]
movzx ecx, dx
dec ecx
cmp eax, ecx
jge 0x4c522e
mov word [esp + 0xa], dx
mov edx, dword [edi + 4]
movsx ebp, word [edx + eax*2]
mov esi, ebp
test ebp, ebp
js 0x4c521a
mov ecx, dword [esp + 4]
mov edx, dword [ecx + 0x1c]
mov esi, ebp
and edx, 0x20
je 0x4c521a
xor edi, edi
mov ecx, dword [esp + 4]
mov edx, dword [ecx + 4]
test bp, bp
je 0x4c51f3
mov esi, 0
cmp bp, 0x11
jb 0x4c51d2
mov esi, ebp
and esi, 0xf
mov ecx, 0x10
cmove esi, ecx
mov edi, ebp
sub edi, esi
lea ebx, [edx + 0xbe]
pxor xmm2, xmm2
mov esi, edi
pxor xmm3, xmm3
nop word cs:[eax + eax]
movzx ecx, word [ebx - 0x60]
movd xmm4, ecx
movzx ecx, word [ebx - 0x6c]
movd xmm6, ecx
punpcklwd xmm6, xmm4
movzx ecx, word [ebx - 0x78]
movd xmm4, ecx
movzx ecx, word [ebx - 0x84]
movd xmm5, ecx
punpcklwd xmm5, xmm4
punpckldq xmm5, xmm6
movzx ecx, word [ebx - 0x90]
movd xmm4, ecx
movzx ecx, word [ebx - 0x9c]
movd xmm6, ecx
punpcklwd xmm6, xmm4
movzx ecx, word [ebx - 0xa8]
movd xmm7, ecx
movzx ecx, word [ebx - 0xb4]
movd xmm4, ecx
punpcklwd xmm4, xmm7
punpckldq xmm4, xmm6
punpcklqdq xmm4, xmm5
movzx ecx, word [ebx]
movd xmm5, ecx
movzx ecx, word [ebx - 0xc]
movd xmm7, ecx
punpcklwd xmm7, xmm5
movzx ecx, word [ebx - 0x18]
movd xmm5, ecx
movzx ecx, word [ebx - 0x24]
movd xmm6, ecx
punpcklwd xmm6, xmm5
punpckldq xmm6, xmm7
movzx ecx, word [ebx - 0x30]
movd xmm5, ecx
movzx ecx, word [ebx - 0x3c]
movd xmm7, ecx
punpcklwd xmm7, xmm5
movzx ecx, word [ebx - 0x48]
movd xmm0, ecx
movzx ecx, word [ebx - 0x54]
movd xmm5, ecx
punpcklwd xmm5, xmm0
punpckldq xmm5, xmm7
punpcklqdq xmm5, xmm6
pcmpeqd xmm0, xmm0
pxor xmm4, xmm0
psrlw xmm4, 5
pand xmm4, xmm1
paddw xmm2, xmm4
pxor xmm5, xmm0
psrlw xmm5, 5
pand xmm5, xmm1
paddw xmm3, xmm5
add ebx, 0xc0
add esi, 0xfffffff0
jne 0x4c50b0
paddw xmm3, xmm2
pshufd xmm0, xmm3, 0xee
paddw xmm0, xmm3
pshufd xmm2, xmm0, 0x55
paddw xmm2, xmm0
movdqa xmm0, xmm2
psrld xmm0, 0x10
paddw xmm0, xmm2
movd esi, xmm0
mov ebx, ebp
sub ebx, edi
lea ecx, [edi + edi*2]
lea edi, [edx + ecx*4]
add edi, 0xa
nop
movzx ecx, word [edi]
bt ecx, 5
sbb si, 0xffff
add edi, 0xc
dec ebx
jne 0x4c51e0
jmp 0x4c51f5
xor esi, esi
lea ecx, [ebp*2]
add ecx, ebp
test byte [edx + ecx*4 + 0xa], 0x20
je 0x4c5213
mov ecx, ebp
sub ecx, esi
mov edx, dword [esp + 4]
add cx, word [edx + 0x24]
mov esi, ecx
mov edi, dword [esp]
mov ebx, dword [esp + 0xc]
test bp, bp
jns 0x4c5020
inc eax
movzx edx, word [esp + 0xa]
jmp 0x4c502c
mov esi, dword [esp + 0x10]
mov ecx, dword [esi]
cmp byte [ecx + 0x57], 0
je 0x4c5248
mov edx, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.0043f4f0
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x6c]
dec ecx
lea ecx, [ecx + ecx*4]
cmp byte [eax + ecx*4 + 1], 0
je 0x4c526e
lea edx, [eax + ecx*4]
mov ecx, esi
push 0xfffffffffffffff2
push ebx
call fcn.004749d0
add esp, 0x1c
jmp 0x4c4fa9
lea edx, [eax + ecx*4]
inc edx
mov dword [eax + ecx*4 + 0x10], ebx
mov byte [edx], 0xf2
jmp 0x4c4fa6