Function at 0x655d50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 8]
xor ecx, ecx
push esi
mov esi, dword [ebp + 0x14]
mov eax, dword [ebx + 0x174]
mov dword [ebp - 0x1c], eax
mov eax, esi
add eax, dword [ebx + 0x38]
adc ecx, dword [ebx + 0x3c]
cmp ecx, 0xf
ja 0x655fc1
jb 0x655d85
cmp eax, 0xffffffe0
ja 0x655fc1
cmp dword [ebx + 0x16c], 0
lea edx, [ebx + 0x40]
mov dword [ebx + 0x38], eax
lea eax, [ebx + 0x60]
mov dword [ebx + 0x3c], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], edx
je 0x655db9
push eax
push edx
call fcn.006567f0
add esp, 8
mov dword [ebx + 0x16c], 0
lea edx, [ebx + 0x40]
jmp 0x655dbf
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], edx
movzx ecx, byte [ebx + 0xc]
movzx eax, byte [ebx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0xf]
shl ecx, 8
push edi
mov edi, dword [ebx + 0x168]
or ecx, eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x20], edi
test edi, edi
je 0x655e52
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
nop
test esi, esi
je 0x655e32
mov cl, byte [edi + ebx + 0x10]
dec esi
xor cl, byte [edx]
inc edx
mov byte [eax], cl
lea eax, [ebx + 0x40]
xor byte [eax + edi], cl
inc edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 8], edx
and edi, 0xf
mov dword [ebp - 4], eax
mov dword [ebp + 0x14], esi
mov dword [ebp - 0x20], edi
jne 0x655e00
mov edx, dword [ebp - 0x14]
jmp 0x655e3d
mov edx, dword [ebp - 0x14]
test edi, edi
jne 0x655fb2
lea eax, [ebx + 0x60]
push eax
push edx
call fcn.006567f0
mov eax, dword [ebp - 8]
add esp, 8
mov ecx, dword [ebp - 4]
jmp 0x655e5e
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
cmp esi, 0xc00
jb 0x655ef5
mov edi, dword [ebp - 8]
mov eax, 0xaaaaaaab
mul esi
shr edx, 0xb
mov dword [ebp + 0x14], edx
nop word [eax + eax]
push ebx
push dword [ebp - 0x1c]
push 0xc0
push ecx
push edi
call dword [ebp + 0x18]
mov ecx, dword [ebp - 0xc]
add ecx, 0xc0
mov eax, ecx
mov dword [ebp - 0xc], ecx
shr eax, 0x18
mov byte [ebx + 0xc], al
mov eax, ecx
push 0xc00
push dword [ebp - 4]
shr eax, 0x10
push dword [ebp - 0x18]
mov byte [ebx + 0xd], al
mov eax, ecx
push dword [ebp - 0x10]
shr eax, 8
mov byte [ebx + 0xe], al
mov byte [ebx + 0xf], cl
call fcn.006565d0
mov ecx, dword [ebp - 4]
add esp, 0x24
add ecx, 0xc00
add edi, 0xc00
sub esi, 0xc00
mov dword [ebp - 4], ecx
sub dword [ebp + 0x14], 1
jne 0x655e80
mov dword [ebp - 8], edi
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
mov dword [ebp + 0x14], esi
mov edx, esi
and edx, 0xfffffff0
mov dword [ebp - 0x20], edx
je 0x655f54
push ebx
push dword [ebp - 0x1c]
mov esi, edx
shr esi, 4
push esi
push ecx
push eax
call dword [ebp + 0x18]
mov ecx, dword [ebp - 0xc]
add ecx, esi
mov esi, dword [ebp + 0x14]
mov eax, ecx
mov dword [ebp - 0xc], ecx
shr eax, 0x18
mov byte [ebx + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [ebx + 0xe], al
mov eax, dword [ebp - 0x20]
sub esi, eax
add dword [ebp - 8], eax
push eax
push dword [ebp - 4]
mov byte [ebx + 0xf], cl
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call fcn.006565d0
mov eax, dword [ebp - 0x20]
add esp, 0x24
add dword [ebp - 4], eax
test esi, esi
je 0x655fb2
push dword [ebp - 0x1c]
lea eax, [ebx + 0x10]
push eax
mov eax, dword [ebx + 0x170]
push ebx
call eax
mov ecx, dword [ebp - 0xc]
add esp, 0xc
inc ecx
mov eax, ecx
mov byte [ebx + 0xf], cl
shr eax, 0x18
mov byte [ebx + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [ebx + 0xe], al
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 8]
sub ebx, eax
lea edx, [edi + eax]
mov eax, dword [ebp - 0x10]
lea edx, [edx + 1]
mov cl, byte [eax + edi - 0x30]
xor cl, byte [ebx + edx - 1]
mov byte [edx - 1], cl
xor byte [eax + edi], cl
inc edi
sub esi, 1
jne 0x655f95
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x168], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret