Function at 0x566a80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a1c29
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x831184]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 1
mov ebx, dword [ebp + 8]
push 0
lea ecx, [ebx + 8]
mov byte [ebx], 0
call fcn.004353e0
mov edi, dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 0x10], 1
mov byte [ebp - 0x24], 0
movq qword [ebp - 0x1c], xmm0
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00436be0
mov dword [ebp - 4], 2
mov eax, 9
mov dword [ebp - 0x34], eax
xor ecx, ecx
mov dword [ebp - 0x30], 0xdecadeda
mov dword [ebp - 0x2c], 0xc4ceead9
mov dword [ebp - 0x28], 0xb2d4
nop
lea eax, [ecx - 0x57]
xor byte [ebp + ecx - 0x30], al
inc ecx
mov eax, dword [ebp - 0x34]
cmp ecx, eax
jb 0x566b10
mov byte [ebp + eax - 0x30], 0
mov ecx, ebx
lea eax, [ebp - 0x30]
push eax
call fcn.00435a30
mov esi, eax
mov al, byte [ebp - 0x24]
mov cl, byte [esi]
mov byte [esi], al
mov eax, dword [ebp - 0x1c]
mov edx, dword [esi + 0xc]
mov byte [ebp - 0x24], cl
mov ecx, dword [esi + 8]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x24]
mov dword [esi + 0xc], eax
mov dword [ebp - 0x18], edx
call fcn.00434940
lea eax, [edi + 0x10]
mov byte [ebp - 0x34], 0
push eax
lea eax, [ebp - 0x34]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x2c], xmm0
call fcn.00436be0
mov dword [ebp - 4], 3
xor ecx, ecx
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x1c], 0xe8d9dfca
mov dword [ebp - 0x18], 0xb0cadacc
lea eax, [ecx - 0x57]
xor byte [ebp + ecx - 0x1c], al
inc ecx
mov eax, dword [ebp - 0x20]
cmp ecx, eax
jb 0x566b92
mov byte [ebp + eax - 0x1c], 0
mov ecx, ebx
lea eax, [ebp - 0x1c]
push eax
call fcn.00435a30
mov esi, eax
mov al, byte [ebp - 0x34]
mov cl, byte [esi]
mov byte [esi], al
mov eax, dword [ebp - 0x2c]
mov edx, dword [esi + 0xc]
mov byte [ebp - 0x34], cl
mov ecx, dword [esi + 8]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x34]
mov dword [esi + 0xc], eax
mov dword [ebp - 0x28], edx
call fcn.00434940
lea eax, [edi + 0x18]
mov byte [ebp - 0x34], 0
push eax
lea eax, [ebp - 0x34]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x2c], xmm0
call fcn.00436be0
mov dword [ebp - 4], 4
xor ecx, ecx
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x1c], 0xe8cfc4cc
mov dword [ebp - 0x18], 0xb0cadacc
lea eax, [ecx - 0x57]
xor byte [ebp + ecx - 0x1c], al
inc ecx
mov eax, dword [ebp - 0x20]
cmp ecx, eax
jb 0x566c14
mov byte [ebp + eax - 0x1c], 0
mov ecx, ebx
lea eax, [ebp - 0x1c]
push eax
call fcn.00435a30
mov esi, eax
mov byte [ebp - 4], 0
mov al, byte [ebp - 0x34]
mov cl, byte [esi]
mov byte [esi], al
mov eax, dword [ebp - 0x2c]
mov edx, dword [esi + 0xc]
mov byte [ebp - 0x34], cl
mov ecx, dword [esi + 8]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x34]
mov dword [esi + 0xc], eax
mov dword [ebp - 0x28], edx
call fcn.00434940
mov eax, dword [edi]
cmp eax, 1
jne 0x566d2f
mov eax, 6
mov dword [ebp - 0x1c], 0xc5dfc9c8
mov dword [ebp - 0x20], eax
xor ecx, ecx
mov dword [ebp - 0x18], 0xafcbdb
lea eax, [ecx - 0x57]
xor byte [ebp + ecx - 0x1c], al
inc ecx
mov eax, dword [ebp - 0x20]
cmp ecx, eax
jb 0x566c86
mov byte [ebp + eax - 0x1c], 0
lea ecx, [ebp - 0x44]
lea eax, [ebp - 0x1c]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
call fcn.00435c30
mov dword [ebp - 4], 5
xor ecx, ecx
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x2c], 0xc9c8c3c5
mov dword [ebp - 0x28], 0xb0caddc3
nop word [eax + eax]
lea eax, [ecx - 0x57]
xor byte [ebp + ecx - 0x2c], al
inc ecx
mov eax, dword [ebp - 0x30]
cmp ecx, eax
jb 0x566cd0
mov byte [ebp + eax - 0x2c], 0
mov ecx, ebx
lea eax, [ebp - 0x2c]
push eax
call fcn.00435a30
mov edi, eax
mov al, byte [ebp - 0x44]
mov cl, byte [edi]
mov byte [edi], al
mov byte [ebp - 0x44], cl
mov ecx, dword [ebp - 0x3c]
mov edx, dword [edi + 8]
mov esi, dword [edi + 0xc]
mov dword [edi + 8], ecx
mov ecx, dword [ebp - 0x38]
mov dword [edi + 0xc], ecx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], esi
call fcn.00434940
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x566dd0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x2c], 0xc5dbd2cc
mov dword [ebp - 0x28], 0xb0cbcbdf
call fcn.004131e0
mov dword [ebp + 0xc], eax
lea ecx, [ebp - 0x44]
lea eax, [ebp + 0xc]
push eax
call fcn.00435c30
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x1c], 0xc9c8c3c5
mov dword [ebp - 0x18], 0xb0caddc3
call fcn.004131e0
push eax
mov ecx, ebx
call fcn.00435a30
mov cl, byte [ebp - 0x44]
mov esi, eax
mov dl, byte [esi]
mov byte [esi], cl
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 0x44], dl
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x38]
mov dword [esi + 0xc], eax
mov dword [ebp - 0x3c], ecx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x38], edx
call fcn.00434940
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x566e0c
movaps xmm0, xmmword [0x7e5310]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], 0xc
movups xmmword [ebp - 0x44], xmm0
call fcn.004131e0
sub esp, 0x10
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.00435c30
mov dword [ebp - 4], 7
jmp 0x566e87
cmp eax, 4
jne 0x566e48
movaps xmm0, xmmword [0x7e54d0]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], 0xd
movups xmmword [ebp - 0x44], xmm0
call fcn.004131e0
sub esp, 0x10
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.00435c30
mov dword [ebp - 4], 8
jmp 0x566e87
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0xa
mov dword [ebp - 0x20], 0xf3dfc5c7
mov dword [ebp - 0x1c], 0xd9dbcdcc
mov dword [ebp - 0x18], 0xb3d7c7
call fcn.004131e0
sub esp, 0x10
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.00435c30
mov dword [ebp - 4], 9
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x2c], 0xc9c8c3c5
mov dword [ebp - 0x28], 0xb0caddc3
call fcn.004131e0
push eax
mov ecx, ebx
call fcn.00435a30
mov ecx, eax
mov byte [ebp - 4], 0
call fcn.00434a20
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret