Function at 0x4ac4a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push esi
mov esi, dword [ebp + 0x1c]
push esi
mov dword [ebp - 0x18], 1
call fcn.0044e5c0
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jns 0x4ac4c8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
call fcn.004c2ed0
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
jne 0x4ac4dd
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x24]
test edx, edx
jne 0x4ac4f1
mov edx, 0x56a6d8
xor ecx, ecx
jmp 0x4ac50c
mov ecx, dword [ebp + 0xc]
cmp ecx, 0xffffffff
jne 0x4ac50c
mov ecx, edx
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4ac500
sub ecx, edi
mov edi, dword [ebp - 4]
push 0
push esi
push ecx
push edx
push edi
call fcn.004c3060
add esp, 0x14
test eax, eax
je 0x4ac52c
call fcn.004c2ed0
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x4ac53e
push edi
call fcn.004c2e60
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x20]
test edx, edx
je 0x4ac750
mov ecx, 1
nop
cmp edx, dword [ebp - 0xc]
mov edi, edx
push dword [ebp - 4]
cmovg edi, dword [ebp - 0xc]
mov eax, ecx
shr eax, 0x18
mov byte [ebp - 8], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 7], al
mov eax, ecx
shr eax, 8
push esi
mov dword [ebp - 0x2c], edi
mov byte [ebp - 6], al
mov byte [ebp - 5], cl
call fcn.004c2d80
add esp, 8
test eax, eax
je 0x4ac76b
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call fcn.004c3280
add esp, 0xc
test eax, eax
je 0x4ac76b
push 4
lea eax, [ebp - 8]
push eax
push esi
call fcn.004c3280
add esp, 0xc
test eax, eax
je 0x4ac76b
push 0
lea eax, [ebp - 0x6c]
push eax
push esi
call fcn.004c2fe0
add esp, 0xc
test eax, eax
je 0x4ac76b
push edi
lea eax, [ebp - 0x6c]
push eax
push ebx
call fcn.0053f3e0
add esp, 0xc
mov dword [ebp - 0x14], 1
cmp dword [ebp + 0x18], 1
jle 0x4ac731
nop
push dword [ebp - 4]
push esi
call fcn.004c2d80
add esp, 8
test eax, eax
je 0x4ac76b
push dword [ebp - 0xc]
lea eax, [ebp - 0x6c]
push eax
push esi
call fcn.004c3280
add esp, 0xc
test eax, eax
je 0x4ac76b
push 0
lea eax, [ebp - 0x6c]
push eax
push esi
call fcn.004c2fe0
add esp, 0xc
test eax, eax
je 0x4ac76b
xor ecx, ecx
test edi, edi
jle 0x4ac721
cmp edi, 0x40
jb 0x4ac6fc
lea edx, [ebx - 1]
lea eax, [ebp + edi - 0x6d]
add edx, edi
cmp ebx, eax
ja 0x4ac65e
lea eax, [ebp - 0x6c]
cmp edx, eax
jae 0x4ac6fc
mov eax, edi
and eax, 0x8000003f
jns 0x4ac66c
dec eax
or eax, 0xffffffc0
inc eax
lea esi, [ebp - 0x6c]
mov edx, edi
sub esi, ebx
sub edx, eax
mov dword [ebp - 0x1c], esi
mov eax, ebx
mov edi, dword [ebp - 0x1c]
lea esi, [ebp - 0x5c]
sub esi, ebx
mov dword [ebp - 0x20], esi
lea esi, [ebp - 0x4c]
sub esi, ebx
mov dword [ebp - 0x24], esi
lea esi, [ebp - 0x3c]
sub esi, ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x28], esi
nop dword [eax + eax]
movups xmm0, xmmword [eax]
mov esi, dword [ebp - 0x24]
add ecx, 0x40
lea eax, [eax + 0x40]
movups xmm1, xmmword [edi + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ebx + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm0, xmmword [eax - 0x20]
movups xmm1, xmmword [esi + eax - 0x40]
mov esi, dword [ebp - 0x28]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm1, xmmword [esi + eax - 0x40]
mov esi, dword [ebp - 0x10]
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp ecx, edx
jl 0x4ac6a0
mov edi, dword [ebp - 0x2c]
mov ebx, dword [ebp + 0x24]
cmp ecx, edi
jge 0x4ac721
lea esi, [ebp - 0x6c]
mov edx, edi
sub esi, ebx
lea eax, [ecx + ebx]
sub edx, ecx
nop dword [eax]
mov cl, byte [esi + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x4ac710
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp + 0x18]
jl 0x4ac5f0
mov edx, dword [ebp + 0x20]
add ebx, edi
mov ecx, dword [ebp - 0x18]
sub edx, edi
inc ecx
mov dword [ebp + 0x20], edx
mov dword [ebp - 0x18], ecx
mov dword [ebp + 0x24], ebx
test edx, edx
jne 0x4ac550
mov edi, dword [ebp - 4]
push esi
call fcn.004c2e60
push edi
call fcn.004c2e60
add esp, 8
mov eax, 1
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call fcn.004c2e60
push dword [ebp - 4]
call fcn.004c2e60
add esp, 8
xor eax, eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret