Function at 0x56ac30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6ce488]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x24]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x1c]
push edi
mov dword [ebp - 0x1fc], eax
mov dword [ebp - 0x1f8], ebx
mov dword [ebp - 0x1f4], 1
call fcn.005190d0
add esp, 4
mov dword [ebp - 0x1f0], eax
test eax, eax
js 0x56afdb
lea eax, [ebp - 0x1e4]
push eax
call fcn.0057af00
add esp, 4
test esi, esi
jne 0x56ac96
xor ecx, ecx
jmp 0x56acac
mov ecx, dword [ebp + 0xc]
cmp ecx, 0xffffffff
jne 0x56acac
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x56aca3
sub ecx, edx
push 0
push edi
push ecx
lea eax, [ebp - 0x1e4]
push esi
push eax
call fcn.0057b000
add esp, 0x14
test eax, eax
je 0x56afcc
mov ecx, dword [ebp + 0x20]
test ecx, ecx
je 0x56af79
mov edx, 1
nop dword [eax + eax]
cmp ecx, dword [ebp - 0x1f0]
mov edi, ecx
mov eax, edx
mov byte [ebp - 0x1e5], dl
cmovg edi, dword [ebp - 0x1f0]
shr eax, 0x18
mov byte [ebp - 0x1e8], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 0x1e7], al
mov eax, edx
shr eax, 8
mov byte [ebp - 0x1e6], al
lea eax, [ebp - 0x1e4]
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x20c], edi
push eax
call fcn.0057ae80
add esp, 8
test eax, eax
je 0x56afcc
push dword [ebp + 0x14]
lea eax, [ebp - 0x114]
push dword [ebp - 0x1fc]
push eax
call fcn.0057b220
add esp, 0xc
test eax, eax
je 0x56af9e
push 4
lea eax, [ebp - 0x1e8]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0057b220
add esp, 0xc
test eax, eax
je 0x56af9e
push 0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0057af60
add esp, 0xc
test eax, eax
je 0x56af9e
lea eax, [ebp - 0x114]
push eax
call fcn.0057ae40
push edi
lea eax, [ebp - 0x44]
push eax
push ebx
call fcn.005fe040
mov esi, 1
add esp, 0x10
mov dword [ebp - 0x1ec], esi
cmp dword [ebp + 0x18], esi
jle 0x56af54
nop word [eax + eax]
lea eax, [ebp - 0x1e4]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0057ae80
add esp, 8
test eax, eax
je 0x56afcc
push dword [ebp - 0x1f0]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0057b220
add esp, 0xc
test eax, eax
je 0x56af9e
push 0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0057af60
add esp, 0xc
test eax, eax
je 0x56af9e
lea eax, [ebp - 0x114]
push eax
call fcn.0057ae40
add esp, 4
xor ecx, ecx
test edi, edi
jle 0x56af44
cmp edi, 0x40
jb 0x56af1b
lea edx, [ebx - 1]
lea eax, [ebp + edi - 0x45]
add edx, edi
cmp ebx, eax
ja 0x56ae66
lea eax, [ebp - 0x44]
cmp edx, eax
jae 0x56af1b
mov eax, edi
and eax, 0x8000003f
jns 0x56ae74
dec eax
or eax, 0xffffffc0
inc eax
mov edx, edi
lea esi, [ebp - 0x44]
lea edi, [ebp - 0x34]
sub edx, eax
sub edi, ebx
sub esi, ebx
mov dword [ebp - 0x200], edi
mov eax, ebx
lea edi, [ebp - 0x24]
sub edi, ebx
mov dword [ebp - 0x204], edi
lea edi, [ebp - 0x14]
sub edi, ebx
mov ebx, dword [ebp - 0x200]
mov dword [ebp - 0x208], edi
nop word [eax + eax]
movups xmm0, xmmword [eax]
mov edi, dword [ebp - 0x204]
add ecx, 0x40
lea eax, [eax + 0x40]
movups xmm1, xmmword [esi + 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 [edi + eax - 0x40]
mov edi, dword [ebp - 0x208]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm1, xmmword [edi + eax - 0x40]
mov edi, dword [ebp - 0x20c]
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp ecx, edx
jl 0x56aeb0
mov ebx, dword [ebp - 0x1f8]
mov esi, dword [ebp - 0x1ec]
cmp ecx, edi
jge 0x56af44
lea esi, [ebp - 0x44]
mov edx, edi
sub esi, ebx
lea eax, [ecx + ebx]
sub edx, ecx
nop dword [eax + eax]
mov cl, byte [esi + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x56af30
mov esi, dword [ebp - 0x1ec]
inc esi
mov dword [ebp - 0x1ec], esi
cmp esi, dword [ebp + 0x18]
jl 0x56add0
mov ecx, dword [ebp + 0x20]
add ebx, edi
mov edx, dword [ebp - 0x1f4]
sub ecx, edi
inc edx
mov dword [ebp + 0x20], ecx
mov dword [ebp - 0x1f4], edx
mov dword [ebp - 0x1f8], ebx
test ecx, ecx
jne 0x56ace0
lea eax, [ebp - 0x1e4]
push eax
call fcn.0057ae40
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c358e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1e4]
push eax
call fcn.0057ae40
lea eax, [ebp - 0x114]
push eax
call fcn.0057ae40
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c358e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1e4]
push eax
call fcn.0057ae40
add esp, 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005c358e
mov esp, ebp
pop ebp
ret