Function at 0x4cb9a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xfc
mov eax, dword [0x502c60]
xor eax, esp
mov dword [esp + 0xf8], eax
mov eax, dword [esp + 0x104]
mov ecx, dword [esp + 0x100]
push ebx
mov ebx, dword [esp + 0x118]
push ebp
mov dword [esp + 0x10], eax
xor ebp, ebp
cmp dword [esp + 0x118], 0x1c
mov eax, dword [esp + 0x114]
push edi
mov edi, dword [esp + 0x128]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
jae 0x4cba0c
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.004d17f4
add esp, 0xfc
ret
push esi
mov esi, dword [esp + 0x128]
mov edx, 0x20
cmp esi, edx
cmova esi, edx
lea edx, [esp + 0x94]
push edx
push eax
push ecx
call fcn.004cee10
add esp, 0xc
test eax, eax
js 0x4cbc24
lea eax, [esp + 0x24]
mov byte [esp + 0x1f], 4
push eax
mov dword [esp + 0x24], 0x1000000
call fcn.004cb7e0
push 1
lea eax, [esp + 0x27]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.004cb830
push 0x38
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.004cb830
add esp, 0x1c
test edi, edi
je 0x4cbad3
push 0x40
push 0
push edi
call fcn.004d26a0
movdqu xmm0, xmmword [esp + 0xa0]
mov eax, dword [esp + 0xb8]
add esp, 0xc
movdqu xmmword [edi], xmm0
movq xmm0, qword [esp + 0xa4]
movq qword [edi + 0x10], xmm0
movdqu xmm0, xmmword [esp + 0xb0]
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0xc8]
movdqu xmmword [edi + 0x20], xmm0
movq xmm0, qword [esp + 0xc0]
movq qword [edi + 0x30], xmm0
mov dword [edi + 0x38], eax
mov ecx, dword [esp + 0x18]
push 0
mov eax, dword [ecx + 0x18]
movdqu xmm0, xmmword [ecx]
mov dword [esp + 0xb0], eax
mov eax, dword [ecx + 0x38]
mov dword [esp + 0xcc], eax
lea eax, [esp + 0xf0]
movdqu xmmword [esp + 0x98], xmm0
push eax
movq xmm0, qword [ecx + 0x10]
lea eax, [esp + 0x9c]
movq qword [esp + 0xac], xmm0
movdqu xmm0, xmmword [ecx + 0x20]
push eax
push dword [esp + 0x20]
movdqu xmmword [esp + 0xc0], xmm0
movq xmm0, qword [ecx + 0x30]
push dword [esp + 0x20]
movq qword [esp + 0xd4], xmm0
call fcn.004cebd0
add esp, 0x14
test eax, eax
je 0x4cbc24
push 0x1c
lea eax, [esp + 0xf0]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.004cb830
push 4
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.004cb830
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0xe8]
push eax
call fcn.004cb710
add esp, 0x20
xor edx, edx
test esi, esi
je 0x4cbc1f
cmp esi, 0x20
jb 0x4cbc01
lea ecx, [ebx - 1]
lea eax, [esp + esi + 0xcb]
add ecx, esi
cmp ebx, eax
ja 0x4cbbb0
lea eax, [esp + 0xcc]
cmp ecx, eax
jae 0x4cbc01
mov eax, esi
lea edi, [esp + 0xcc]
and eax, 0x1f
lea ebp, [esp + 0xdc]
mov ecx, esi
sub edi, ebx
sub ecx, eax
mov eax, ebx
sub ebp, ebx
lea ecx, [ecx]
movdqu xmm0, xmmword [eax]
add edx, 0x20
lea eax, [eax + 0x20]
movdqu xmm1, xmmword [edi + eax - 0x20]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x20], xmm1
movdqu xmm0, xmmword [eax - 0x10]
movdqu xmm1, xmmword [eax + ebp - 0x20]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x10], xmm1
cmp edx, ecx
jb 0x4cbbd0
cmp edx, esi
jae 0x4cbc1f
lea edi, [esp + 0xcc]
sub edi, ebx
lea ecx, [ebx + edx]
sub esi, edx
mov al, byte [ecx + edi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
dec esi
jne 0x4cbc13
mov ebp, 1
mov ecx, dword [esp + 0x108]
mov eax, ebp
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.004d17f4
add esp, 0xfc
ret