Function at 0x572298
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffff580
push ebx
push esi
push edi
mov dword [ebp - 0x40c], eax
lea edi, [ebp - 0x10fa]
xor eax, eax
mov dword [ebp - 0x1a54], eax
push ebp
call fcn.00571ed0
pop ecx
push ebp
call fcn.0056fe0c
pop ecx
push ebp
call fcn.00570724
pop ecx
push ebp
call fcn.005719e8
pop ecx
xor eax, eax
mov dword [ebp - 0x1a7c], eax
mov bx, 2
xor esi, esi
mov eax, dword [ebp - 0x40c]
cmp dword [eax + 0x190], 3
jg 0x572304
push ebp
call fcn.00571f9c
pop ecx
jmp 0x572607
cmp word [ebp - 0x1a56], 0
je 0x5725d5
cmp word [ebp - 0x1a56], 3
jb 0x5723ab
movzx eax, word [edi]
add eax, 3
mov edx, dword [ebp - 0x40c]
mov edx, dword [edx + 0xb4c]
movzx eax, byte [edx + eax - 1]
mov dx, word [ebp - 0x1a68]
shl edx, 5
xor ax, dx
and ax, 0x7fff
mov word [ebp - 0x1a68], ax
movzx eax, word [ebp - 0x1a68]
mov edx, dword [ebp - 0x40c]
mov edx, dword [edx + 0xb54]
mov ax, word [edx + eax*2]
mov dx, word [edi]
and dx, 0x7fff
movzx edx, dx
mov ecx, dword [ebp - 0x40c]
mov ecx, dword [ecx + 0xb50]
mov word [ecx + edx*2], ax
movzx eax, word [ebp - 0x1a68]
mov edx, dword [ebp - 0x40c]
mov edx, dword [edx + 0xb54]
mov si, word [edx + eax*2]
mov edx, dword [ebp - 0x40c]
mov edx, dword [edx + 0xb54]
mov cx, word [edi]
mov word [edx + eax*2], cx
mov word [ebp - 0x1a6a], bx
mov ax, word [ebp - 0x1a5a]
mov word [ebp - 0x1a76], ax
mov bx, 2
test si, si
je 0x572420
mov ax, word [ebp - 0x1a6a]
cmp ax, word [ebp - 0x1a5e]
jae 0x572420
movzx eax, word [edi]
movzx edx, si
sub eax, edx
cmp eax, 0x7efa
ja 0x572420
push ebp
mov eax, esi
call fcn.00571bb8
pop ecx
mov ebx, eax
cmp bx, word [ebp - 0x1a56]
jbe 0x572403
mov bx, word [ebp - 0x1a56]
cmp bx, 3
jne 0x572420
movzx eax, word [edi]
movzx edx, word [ebp - 0x1a5a]
sub eax, edx
cmp eax, 0x1000
jbe 0x572420
mov bx, 2
cmp word [ebp - 0x1a6a], 3
jb 0x57252b
cmp bx, word [ebp - 0x1a6a]
ja 0x57252b
push ebp
movzx eax, word [edi]
dec eax
movzx edx, word [ebp - 0x1a76]
sub eax, edx
movzx edx, word [ebp - 0x1a6a]
sub edx, 3
call fcn.0057076c
pop ecx
mov dx, word [ebp - 0x1a6a]
dec edx
sub word [ebp - 0x1a56], dx
sub word [ebp - 0x1a6a], 2
inc word [edi]
movzx edx, word [edi]
add edx, 3
mov ecx, dword [ebp - 0x40c]
mov ecx, dword [ecx + 0xb4c]
movzx edx, byte [ecx + edx - 1]
mov cx, word [ebp - 0x1a68]
shl ecx, 5
xor dx, cx
and dx, 0x7fff
mov word [ebp - 0x1a68], dx
movzx edx, word [ebp - 0x1a68]
mov ecx, dword [ebp - 0x40c]
mov ecx, dword [ecx + 0xb54]
mov dx, word [ecx + edx*2]
mov cx, word [edi]
and cx, 0x7fff
movzx ecx, cx
mov ebx, dword [ebp - 0x40c]
mov ebx, dword [ebx + 0xb50]
mov word [ebx + ecx*2], dx
movzx edx, word [ebp - 0x1a68]
mov ecx, dword [ebp - 0x40c]
mov ecx, dword [ecx + 0xb54]
mov bx, word [edi]
mov word [ecx + edx*2], bx
dec word [ebp - 0x1a6a]
cmp word [ebp - 0x1a6a], 0
jne 0x572470
xor edx, edx
mov dword [ebp - 0x1a7c], edx
mov bx, 2
inc word [edi]
test al, al
je 0x572587
push ebp
xor eax, eax
call fcn.00571e60
pop ecx
movzx eax, word [edi]
mov dword [ebp - 0x1100], eax
jmp 0x572587
cmp dword [ebp - 0x1a7c], 0
je 0x572573
push ebp
movzx eax, word [edi]
mov edx, dword [ebp - 0x40c]
mov edx, dword [edx + 0xb4c]
movzx edx, byte [edx + eax - 1]
xor eax, eax
call fcn.0057076c
pop ecx
test al, al
je 0x572567
push ebp
xor eax, eax
call fcn.00571e60
pop ecx
movzx eax, word [edi]
mov dword [ebp - 0x1100], eax
inc word [edi]
dec word [ebp - 0x1a56]
jmp 0x572587
mov dword [ebp - 0x1a7c], 1
inc word [edi]
dec word [ebp - 0x1a56]
mov eax, dword [ebp - 0x40c]
mov eax, dword [eax + 0x21c]
movzx edx, word [edi]
cmp eax, edx
jl 0x5725a5
movzx edx, word [ebp - 0x1a56]
cmp eax, edx
jge 0x5725a9
xor eax, eax
jmp 0x5725ab
mov al, 1
mov edx, 0x572618
call fcn.00566620
cmp word [ebp - 0x1a56], 0x106
jae 0x5725c7
push ebp
call fcn.00571810
pop ecx
cmp word [ebp - 0x1a56], 0
jne 0x572312
cmp dword [ebp - 0x1a7c], 0
je 0x5725fb
push ebp
movzx eax, word [edi]
mov edx, dword [ebp - 0x40c]
mov edx, dword [edx + 0xb4c]
movzx edx, byte [edx + eax - 1]
xor eax, eax
call fcn.0057076c
pop ecx
push ebp
mov eax, 1
call fcn.00571e60
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret