Function at 0x56b740
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xc0
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x1c]
mov eax, dword [0x7a8498]
xor eax, ebp
mov dword [esp + 0xb8], eax
push ebx
call fcn.005407a0
add esp, 4
mov dword [esp + 8], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
mov dword [esp + 0x60], 0xffffffff
lea edi, [esp + 0x30]
push edi
call fcn.00554d30
add esp, 4
push 0
push ebx
push esi
push dword [ebp + 8]
push edi
call fcn.00554d50
add esp, 0x14
xor ebx, ebx
test eax, eax
je 0x56baa1
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x56ba98
mov esi, dword [ebp + 0x24]
mov ecx, 1
pcmpeqd xmm0, xmm0
pxor xmm1, xmm1
jmp 0x56b801
add esi, ebx
mov ecx, dword [esp + 0x28]
add ecx, 1
mov eax, dword [esp + 0x10]
sub eax, ebx
lea edi, [esp + 0x30]
pcmpeqd xmm0, xmm0
pxor xmm1, xmm1
je 0x56ba98
mov ebx, dword [esp + 8]
cmp ebx, eax
mov dword [esp + 0x10], eax
cmova ebx, eax
mov dword [esp + 0x28], ecx
mov eax, ecx
bswap eax
mov dword [esp + 0x6c], eax
movdqa xmmword [esp + 0xa0], xmm0
movdqa xmmword [esp + 0x90], xmm0
movdqa xmmword [esp + 0x80], xmm0
movdqa xmmword [esp + 0x70], xmm0
sub esp, 0x14
movdqu xmmword [esp + 4], xmm1
mov dword [esp], edi
call fcn.00554d50
add esp, 0x14
test eax, eax
je 0x56ba94
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call fcn.00555130
add esp, 0xc
test eax, eax
je 0x56ba94
push 4
lea eax, [esp + 0x70]
push eax
push edi
call fcn.00555130
add esp, 0xc
test eax, eax
je 0x56ba94
push 0
lea eax, [esp + 0x74]
push eax
push edi
call fcn.00555160
add esp, 0xc
test eax, eax
je 0x56ba94
test ebx, ebx
je 0x56b8b1
push ebx
lea eax, [esp + 0x74]
push eax
push esi
call fcn.006cca40
add esp, 0xc
cmp dword [ebp + 0x18], 2
jb 0x56b7e0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
cmovb ecx, eax
lea eax, [ebx - 0x20]
mov dword [esp + 0x1c], eax
shr eax, 5
add eax, 1
mov edx, ebx
and edx, 0xffffffe0
mov dword [esp + 0xc], edx
mov dword [esp + 0x18], eax
and eax, 0xfffffffe
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], ecx
and ecx, 0xfffffff8
mov dword [esp + 0x20], ecx
mov eax, 1
jmp 0x56b910
mov eax, dword [esp + 0x2c]
add eax, 1
cmp eax, dword [ebp + 0x18]
je 0x56b7e0
mov dword [esp + 0x2c], eax
sub esp, 0x14
pxor xmm0, xmm0
movdqu xmmword [esp + 4], xmm0
lea edi, [esp + 0x44]
mov dword [esp], edi
call fcn.00554d50
add esp, 0x14
test eax, eax
je 0x56ba94
push dword [esp + 8]
lea eax, [esp + 0x74]
push eax
push edi
call fcn.00555130
add esp, 0xc
test eax, eax
je 0x56ba94
push 0
lea eax, [esp + 0x74]
push eax
push edi
call fcn.00555160
add esp, 0xc
test eax, eax
je 0x56ba94
test ebx, ebx
je 0x56b900
xor ecx, ecx
cmp ebx, 8
jb 0x56ba80
xor eax, eax
cmp ebx, 0x20
jb 0x56ba40
xor eax, eax
cmp dword [esp + 0x1c], 0x20
jb 0x56b9fb
xor eax, eax
mov ecx, dword [esp + 0x14]
nop word cs:[eax + eax]
nop dword [eax]
movups xmm0, xmmword [esp + eax + 0x70]
movups xmm1, xmmword [esp + eax + 0x80]
movups xmm2, xmmword [esi + eax]
xorps xmm2, xmm0
movups xmm0, xmmword [esi + eax + 0x10]
xorps xmm0, xmm1
movups xmmword [esi + eax], xmm2
movups xmmword [esi + eax + 0x10], xmm0
movups xmm0, xmmword [esp + eax + 0x90]
movdqu xmm1, xmmword [esp + eax + 0xa0]
movups xmm2, xmmword [esi + eax + 0x20]
xorps xmm2, xmm0
movdqu xmm0, xmmword [esi + eax + 0x30]
pxor xmm0, xmm1
movups xmmword [esi + eax + 0x20], xmm2
movdqu xmmword [esi + eax + 0x30], xmm0
add eax, 0x40
add ecx, 0xfffffffe
jne 0x56b9a0
test byte [esp + 0x18], 1
je 0x56ba2b
movups xmm0, xmmword [esp + eax + 0x70]
movdqu xmm1, xmmword [esp + eax + 0x80]
movups xmm2, xmmword [esi + eax]
xorps xmm2, xmm0
movdqu xmm0, xmmword [esi + eax + 0x10]
pxor xmm0, xmm1
movups xmmword [esi + eax], xmm2
movdqu xmmword [esi + eax + 0x10], xmm0
cmp ebx, dword [esp + 0xc]
je 0x56b900
mov ecx, dword [esp + 0xc]
mov eax, ecx
test bl, 0x18
je 0x56ba80
mov ecx, dword [esp + 0x20]
nop word cs:[eax + eax]
nop
movq xmm0, qword [esp + eax + 0x70]
movq xmm1, qword [esi + eax]
pxor xmm1, xmm0
movq qword [esi + eax], xmm1
add eax, 8
cmp ecx, eax
jne 0x56ba50
mov eax, ecx
cmp dword [esp + 0x24], ecx
je 0x56b900
nop word [eax + eax]
movzx eax, byte [esp + ecx + 0x70]
xor byte [esi + ecx], al
add ecx, 1
cmp ebx, ecx
jne 0x56ba80
jmp 0x56b900
xor ebx, ebx
jmp 0x56baa1
xor ebx, ebx
cmp dword [ebp + 0x18], 0
setne bl
push edi
call fcn.00555250
add esp, 4
mov ecx, dword [esp + 0xb8]
xor ecx, ebp
call fcn.006c9121
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret