Function at 0x6b522a10
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x50]
mov esi, dword [esp + 0x54]
mov ebx, dword [esp + 0x60]
mov ebp, dword [eax]
mov edi, dword [esp + 0x64]
test ebp, ebp
je 0x6b522a63
mov eax, dword [esp + 0x58]
test eax, eax
je 0x6b522a63
mov edx, dword [esp + 0x58]
lea esi, [esi]
add ecx, 1
movzx eax, byte [edi + ebp]
add esi, 1
add ebp, 1
xor al, byte [ecx - 1]
sub edx, 1
mov byte [esi - 1], al
and ebp, 0xf
je 0x6b522a5f
test edx, edx
jne 0x6b522a40
mov dword [esp + 0x58], edx
cmp dword [esp + 0x58], 0xf
jbe 0x6b522ef7
mov eax, dword [esp + 0x58]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x64], edi
mov ebp, dword [esp + 0x64]
mov edi, ecx
sub eax, 0x10
and eax, 0xfffffff0
add eax, 0x10
mov dword [esp + 0x1c], eax
add eax, esi
mov dword [esp + 0x18], eax
lea esi, [esi]
nop
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], ebp
mov dword [esp], ebx
mov dword [esp + 8], eax
call dword [esp + 0x6c]
movzx edx, byte [ebx + 0xf]
mov eax, edx
add edx, 1
add eax, 1
mov byte [ebx + 0xf], al
mov eax, edx
movzx edx, byte [ebx + 0xe]
shr eax, 8
add edx, eax
movzx eax, byte [ebx + 0xd]
mov byte [ebx + 0xe], dl
shr edx, 8
add eax, edx
movzx edx, byte [ebx + 0xc]
mov byte [ebx + 0xd], al
shr eax, 8
add edx, eax
movzx eax, byte [ebx + 0xb]
mov byte [ebx + 0xc], dl
shr edx, 8
add eax, edx
movzx edx, byte [ebx + 0xa]
mov byte [ebx + 0xb], al
shr eax, 8
add edx, eax
movzx eax, byte [ebx + 9]
mov byte [ebx + 0xa], dl
shr edx, 8
add eax, edx
movzx edx, byte [ebx + 8]
mov byte [ebx + 9], al
shr eax, 8
add edx, eax
movzx eax, byte [ebx + 7]
mov byte [ebx + 8], dl
shr edx, 8
add eax, edx
movzx edx, byte [ebx + 6]
mov byte [ebx + 7], al
shr eax, 8
add edx, eax
movzx eax, byte [ebx + 5]
mov byte [ebx + 6], dl
shr edx, 8
add eax, edx
movzx edx, byte [ebx + 4]
mov byte [ebx + 5], al
shr eax, 8
add edx, eax
movzx eax, byte [ebx + 3]
mov byte [ebx + 4], dl
shr edx, 8
add eax, edx
movzx edx, byte [ebx + 2]
mov byte [ebx + 3], al
shr eax, 8
add edx, eax
movzx eax, byte [ebx + 1]
mov byte [ebx + 2], dl
shr edx, 8
add eax, edx
mov byte [ebx + 1], al
shr eax, 8
add byte [ebx], al
mov eax, dword [edi]
add esi, 0x10
add edi, 0x10
xor eax, dword [ebp]
mov dword [esi - 0x10], eax
mov eax, dword [edi - 0xc]
xor eax, dword [ebp + 4]
mov dword [esi - 0xc], eax
mov eax, dword [edi - 8]
xor eax, dword [ebp + 8]
mov dword [esi - 8], eax
mov eax, dword [edi - 4]
xor eax, dword [ebp + 0xc]
mov dword [esi - 4], eax
cmp esi, dword [esp + 0x18]
jne 0x6b522a98
and dword [esp + 0x58], 0xf
mov ecx, dword [esp + 0x50]
mov edi, ebp
xor ebp, ebp
add ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x50], ecx
test edx, edx
je 0x6b522d96
mov eax, dword [esp + 0x5c]
mov dword [esp], ebx
mov dword [esp + 4], edi
mov dword [esp + 8], eax
call dword [esp + 0x6c]
movzx edx, byte [ebx + 0xf]
mov eax, edx
add edx, 1
add eax, 1
shr edx, 8
mov byte [ebx + 0xf], al
movzx eax, byte [ebx + 0xe]
add edx, eax
movzx eax, byte [ebx + 0xd]
mov byte [ebx + 0xe], dl
shr edx, 8
add edx, eax
movzx eax, byte [ebx + 0xc]
mov byte [ebx + 0xd], dl
shr edx, 8
add edx, eax
movzx eax, byte [ebx + 0xb]
mov byte [ebx + 0xc], dl
shr edx, 8
add edx, eax
movzx eax, byte [ebx + 0xa]
mov byte [ebx + 0xb], dl
shr edx, 8
add edx, eax
movzx eax, byte [ebx + 9]
mov byte [ebx + 0xa], dl
shr edx, 8
add edx, eax
movzx eax, byte [ebx + 8]
mov byte [ebx + 9], dl
shr edx, 8
add edx, eax
movzx eax, byte [ebx + 7]
mov byte [ebx + 8], dl
shr edx, 8
add edx, eax
movzx eax, byte [ebx + 6]
mov byte [ebx + 7], dl
shr edx, 8
add edx, eax
movzx eax, byte [ebx + 5]
mov byte [ebx + 6], dl
shr edx, 8
add edx, eax
movzx eax, byte [ebx + 4]
mov byte [ebx + 5], dl
shr edx, 8
add edx, eax
movzx eax, byte [ebx + 3]
mov byte [ebx + 4], dl
shr edx, 8
add edx, eax
movzx eax, byte [ebx + 2]
mov byte [ebx + 3], dl
shr edx, 8
add edx, eax
movzx eax, byte [ebx + 1]
mov byte [ebx + 2], dl
shr edx, 8
add eax, edx
mov byte [ebx + 1], al
shr eax, 8
add byte [ebx], al
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x18]
lea ebx, [eax - 1]
lea eax, [ecx + ebp]
lea esi, [edx + ebp]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], eax
lea eax, [edi + ebp]
mov dword [esp + 0x20], eax
lea eax, [ebp + 4]
add edx, eax
mov dword [esp + 0x1c], edx
lea edx, [edi + eax]
cmp esi, edx
lea edx, [edi + ebp]
setae byte [esp + 0x2b]
cmp dword [esp + 0x1c], edx
setbe dl
add eax, ecx
or dl, byte [esp + 0x2b]
cmp esi, eax
mov byte [esp + 0x2b], dl
mov edx, dword [esp + 0x1c]
setae al
cmp edx, dword [esp + 0x24]
setbe byte [esp + 0x1c]
movzx edx, byte [esp + 0x1c]
or eax, edx
movzx edx, byte [esp + 0x2b]
and edx, eax
cmp ebx, 3
seta al
test dl, al
je 0x6b522da4
mov eax, dword [esp + 0x20]
lea ebx, [ecx + ebp]
or eax, ebx
or eax, esi
test al, 3
jne 0x6b522da4
mov edx, dword [esp + 0x58]
lea eax, [edi + ebp]
mov eax, dword [eax]
xor eax, dword [ebx]
shr edx, 2
mov dword [esi], eax
cmp edx, 1
je 0x6b522d4a
lea eax, [edi + ebp]
mov eax, dword [eax + 4]
xor eax, dword [ebx + 4]
mov dword [esi + 4], eax
cmp edx, 3
jne 0x6b522d4a
lea eax, [edi + ebp]
mov eax, dword [eax + 8]
xor eax, dword [ebx + 8]
mov dword [esi + 8], eax
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x2c]
and edx, 0xfffffffc
lea eax, [ebp + edx]
sub ebx, edx
cmp dword [esp + 0x58], edx
je 0x6b522d92
mov esi, dword [esp + 0x18]
movzx edx, byte [ecx + eax]
xor dl, byte [edi + eax]
mov byte [esi + eax], dl
test ebx, ebx
je 0x6b522d92
movzx edx, byte [ecx + eax + 1]
xor dl, byte [edi + eax + 1]
mov byte [esi + eax + 1], dl
cmp ebx, 1
je 0x6b522d92
movzx edx, byte [ecx + eax + 2]
xor dl, byte [edi + eax + 2]
mov byte [esi + eax + 2], dl
add ebp, dword [esp + 0x58]
mov eax, dword [esp + 0x68]
mov dword [eax], ebp
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ecx + ebp]
lea ebx, [edi + ebp]
movzx eax, byte [eax]
xor al, byte [ebx]
mov byte [esi], al
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x6b522d92
mov esi, dword [esp + 0x18]
movzx eax, byte [ecx + ebp + 1]
xor al, byte [edi + ebp + 1]
cmp dword [esp + 0x58], 2
mov byte [esi + ebp + 1], al
je 0x6b522d92
movzx eax, byte [ecx + ebp + 2]
xor al, byte [edi + ebp + 2]
cmp dword [esp + 0x58], 3
mov byte [esi + ebp + 2], al
je 0x6b522d92
movzx eax, byte [ecx + ebp + 3]
xor al, byte [edi + ebp + 3]
cmp dword [esp + 0x58], 4
mov byte [esi + ebp + 3], al
je 0x6b522d92
movzx eax, byte [ecx + ebp + 4]
xor al, byte [edi + ebp + 4]
cmp dword [esp + 0x58], 5
mov byte [esi + ebp + 4], al
je 0x6b522d92
movzx eax, byte [ecx + ebp + 5]
xor al, byte [edi + ebp + 5]
cmp dword [esp + 0x58], 6
mov byte [esi + ebp + 5], al
je 0x6b522d92
movzx eax, byte [ecx + ebp + 6]
xor al, byte [edi + ebp + 6]
cmp dword [esp + 0x58], 7
mov byte [esi + ebp + 6], al
je 0x6b522d92
movzx eax, byte [ecx + ebp + 7]
xor al, byte [edi + ebp + 7]
cmp dword [esp + 0x58], 8
mov byte [esi + ebp + 7], al
je 0x6b522d92
movzx eax, byte [ecx + ebp + 8]
xor al, byte [edi + ebp + 8]
cmp dword [esp + 0x58], 9
mov byte [esi + ebp + 8], al
je 0x6b522d92
movzx eax, byte [ecx + ebp + 9]
xor al, byte [edi + ebp + 9]
cmp dword [esp + 0x58], 0xa
mov byte [esi + ebp + 9], al
je 0x6b522d92
movzx eax, byte [ecx + ebp + 0xa]
xor al, byte [edi + ebp + 0xa]
cmp dword [esp + 0x58], 0xb
mov byte [esi + ebp + 0xa], al
je 0x6b522d92
movzx eax, byte [ecx + ebp + 0xb]
xor al, byte [edi + ebp + 0xb]
cmp dword [esp + 0x58], 0xc
mov byte [esi + ebp + 0xb], al
je 0x6b522d92
movzx eax, byte [ecx + ebp + 0xc]
xor al, byte [edi + ebp + 0xc]
cmp dword [esp + 0x58], 0xd
mov byte [esi + ebp + 0xc], al
je 0x6b522d92
movzx eax, byte [ecx + ebp + 0xd]
xor al, byte [edi + ebp + 0xd]
cmp dword [esp + 0x58], 0xe
mov byte [esi + ebp + 0xd], al
je 0x6b522d92
movzx eax, byte [ecx + ebp + 0xe]
xor al, byte [edi + ebp + 0xe]
mov byte [esi + ebp + 0xe], al
jmp 0x6b522d92
mov dword [esp + 0x18], esi
jmp 0x6b522bad