Function at 0x569c10
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov ebx, ecx
mov ecx, dword [esp + 0x48]
mov esi, 1
mov ebp, 1
shl ebp, cl
xor edi, edi
shld edi, esi, cl
mov dword [esp + 4], edx
shl esi, cl
xor edx, edx
test cl, 0x20
cmovne edi, esi
cmovne esi, edx
mov ecx, dword [esp + 0x44]
lea eax, [ecx + ecx]
add eax, 2
add esi, eax
adc edi, 0
add esi, 8
adc edi, 0
mov eax, 0xffffffd2
cmp ecx, 0xff
ja 0x56a087
cmp dword [esp + 0x50], esi
sbb edx, edi
jb 0x56a087
mov eax, 0xffffffd4
cmp dword [esp + 0x48], 0xc
ja 0x56a087
mov dword [esp + 8], ebx
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov ecx, eax
add cl, 0xff
mov esi, 0x10000
shl esi, cl
lea eax, [ebp - 1]
sar esi, 0x10
mov dword [esp], esi
mov ecx, dword [esp + 0x44]
lea esi, [ecx + 1]
test ecx, ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0xc], esi
je 0x569d57
and esi, 0xfffffffe
mov dword [esp + 0x10], esi
mov bp, 1
mov ecx, eax
xor ebx, ebx
jmp 0x569cf6
mov edx, ebx
add dl, 1
mov esi, dword [esp + 8]
mov byte [esi + ecx*4 + 6], dl
mov edx, dword [esp + 0x4c]
add ecx, 0xffffffff
mov si, 1
mov word [edx + ebx*2 + 2], si
add ebx, 2
cmp dword [esp + 0x10], ebx
je 0x569d4e
mov esi, dword [esp + 4]
movsx esi, word [esi + ebx*2]
cmp esi, 0xffffffff
je 0x569d10
cmp dword [esp], esi
mov edi, 0
cmovle ebp, edi
jmp 0x569d23
mov edx, dword [esp + 8]
mov byte [edx + ecx*4 + 6], bl
mov edx, dword [esp + 0x4c]
add ecx, 0xffffffff
mov si, 1
mov word [edx + ebx*2], si
mov esi, dword [esp + 4]
movsx esi, word [esi + ebx*2 + 2]
cmp esi, 0xffffffff
je 0x569cd0
cmp dword [esp], esi
mov edi, 0
cmovle ebp, edi
mov word [edx + ebx*2 + 2], si
add ebx, 2
cmp dword [esp + 0x10], ebx
jne 0x569cf6
test byte [esp + 0xc], 1
jne 0x569d66
jmp 0x569d94
xor ebx, ebx
mov bp, 1
mov ecx, eax
test byte [esp + 0xc], 1
je 0x569d94
mov edx, dword [esp + 4]
movsx esi, word [edx + ebx*2]
cmp esi, 0xffffffff
je 0x569d7d
xor edx, edx
cmp dword [esp], esi
cmovle ebp, edx
jmp 0x569d8c
mov edx, dword [esp + 8]
mov byte [edx + ecx*4 + 6], bl
add ecx, 0xffffffff
mov si, 1
mov edx, dword [esp + 0x4c]
mov word [edx + ebx*2], si
mov edx, dword [esp + 8]
mov esi, dword [esp + 0x48]
mov word [edx], si
mov word [edx + 2], bp
cmp ecx, eax
jne 0x569f34
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x44]
lea ebp, [esi + edi*2]
add ebp, 2
mov edx, dword [esp + 0x14]
mov ecx, edx
shr ecx, 1
shr edx, 3
add ecx, edx
add ecx, 3
mov dword [esp + 0x18], ecx
mov ecx, esi
mov esi, ebp
lea ecx, [ecx + edi*2]
add ecx, 0x7a
mov dword [esp + 0x1c], ecx
xor ebp, ebp
xor edx, edx
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x20], esi
jmp 0x569e14
mov ebp, dword [esp]
add ebp, ebx
mov ebx, dword [esp + 0x10]
lea ecx, [ebx + 1]
add edx, 0x1010101
adc edi, 0x1010101
cmp ebx, dword [esp + 0x44]
mov ebx, ecx
je 0x569fca
mov ecx, dword [esp + 4]
mov dword [esp + 0x10], ebx
movsx ebx, word [ecx + ebx*2]
mov dword [esi + ebp + 4], edi
mov dword [esp], ebp
mov dword [esi + ebp], edx
cmp ebx, 9
jl 0x569df0
mov dword [esp + 0xc], edx
mov ecx, dword [esp]
lea ebp, [esi + ecx]
lea edx, [ebx - 9]
mov ecx, 8
cmp edx, 0x18
jb 0x569f1a
mov dword [esp + 0x2c], ebx
shr edx, 3
add edx, 1
mov dword [esp + 0x28], edx
and edx, 0xfffffffc
movd xmm0, dword [esp + 0xc]
movd xmm1, edi
punpckldq xmm0, xmm1
pshufd xmm0, xmm0, 0x44
mov dword [esp + 0x24], edx
lea ecx, [edx - 4]
mov esi, ecx
shr esi, 2
add esi, 1
mov edx, esi
and edx, 3
xor ebx, ebx
cmp ecx, 0xc
jb 0x569ed7
and esi, 0xfffffffc
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp]
add ecx, ebx
xor ebx, ebx
nop word [eax + eax]
movdqu xmmword [ecx + ebx*8 - 0x70], xmm0
movdqu xmmword [ecx + ebx*8 - 0x60], xmm0
movdqu xmmword [ecx + ebx*8 - 0x50], xmm0
movdqu xmmword [ecx + ebx*8 - 0x40], xmm0
movdqu xmmword [ecx + ebx*8 - 0x30], xmm0
movdqu xmmword [ecx + ebx*8 - 0x20], xmm0
movdqu xmmword [ecx + ebx*8 - 0x10], xmm0
movdqu xmmword [ecx + ebx*8], xmm0
add ebx, 0x10
add esi, 0xfffffffc
jne 0x569ea0
test edx, edx
je 0x569ef9
shl ebx, 3
nop
mov ecx, ebx
or ecx, 8
movdqu xmmword [ebp + ecx], xmm0
movdqu xmmword [ebp + ecx + 0x10], xmm0
add ebx, 0x20
add edx, 0xffffffff
jne 0x569ee0
mov ecx, dword [esp + 0x24]
cmp dword [esp + 0x28], ecx
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x2c]
je 0x569df0
lea ecx, [ecx*8 + 8]
mov edx, dword [esp + 0xc]
nop
mov dword [ebp + ecx], edx
mov dword [ebp + ecx + 4], edi
add ecx, 8
cmp ecx, ebx
jl 0x569f20
jmp 0x569df0
mov ebp, edx
mov esi, dword [esp + 0x14]
mov edx, esi
shr edx, 3
shr esi, 1
lea edi, [edx + esi]
add edi, 3
xor edx, edx
xor ebx, ebx
jmp 0x569f5f
lea esi, [ebx + 1]
cmp ebx, dword [esp + 0x44]
mov ebx, esi
je 0x56a02f
mov esi, dword [esp + 4]
movsx esi, word [esi + ebx*2]
test esi, esi
jle 0x569f50
cmp si, 1
mov dword [esp + 0x10], esi
je 0x569fb0
and esi, 0xfffffffe
mov dword [esp], esi
xor esi, esi
nop dword [eax]
mov byte [ebp + edx*4 + 6], bl
nop word cs:[eax + eax]
nop
add edx, edi
and edx, eax
cmp edx, ecx
ja 0x569f90
mov byte [ebp + edx*4 + 6], bl
nop dword [eax]
add edx, edi
and edx, eax
cmp edx, ecx
ja 0x569fa0
add esi, 2
cmp esi, dword [esp]
jne 0x569f80
test byte [esp + 0x10], 1
je 0x569f50
mov byte [ebp + edx*4 + 6], bl
nop dword [eax + eax]
add edx, edi
and edx, eax
cmp edx, ecx
ja 0x569fc0
jmp 0x569f50
mov ecx, dword [esp + 0x18]
add ecx, ecx
mov dword [esp], ecx
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x4c]
lea ecx, [edx + ecx*2]
add ecx, 3
mov dword [esp + 4], ecx
xor esi, esi
xor edi, edi
mov edx, dword [esp + 4]
mov ebp, dword [esp + 8]
nop word cs:[eax + eax]
nop dword [eax + eax]
mov ebx, edi
and ebx, eax
movzx ecx, byte [edx + esi - 1]
mov byte [ebp + ebx*4 + 6], cl
mov ecx, dword [esp + 0x18]
add ecx, edi
and ecx, eax
movzx ebx, byte [edx + esi]
mov byte [ebp + ecx*4 + 6], bl
mov ecx, dword [esp + 0x14]
add edi, dword [esp]
and edi, eax
add esi, 2
cmp esi, ecx
jb 0x56a000
jmp 0x56a03c
mov eax, 0xffffffff
test edx, edx
mov ecx, dword [esp + 0x14]
jne 0x56a087
mov ebx, dword [esp + 0x48]
add ebx, 0xffffffe1
mov dword [esp], ebx
xor edx, edx
mov ebp, dword [esp + 8]
nop dword [eax]
mov eax, ecx
movzx ecx, byte [ebp + edx*4 + 6]
mov ebx, dword [esp + 0x4c]
movzx esi, word [ebx + ecx*2]
lea edi, [esi + 1]
mov word [ebx + ecx*2], di
bsr ecx, esi
xor ecx, 0x1f
add ecx, dword [esp]
mov byte [ebp + edx*4 + 7], cl
shl esi, cl
mov ecx, eax
sub esi, eax
mov word [ebp + edx*4 + 4], si
add edx, 1
cmp eax, edx
jne 0x56a050
xor eax, eax
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret