Function at 0x6098b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x30
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x18]
test edx, edx
je 0x609a7c
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x2c], 0
test eax, eax
jne 0x609a88
lea esi, [esi]
mov eax, dword [esp + 0x2c]
mov edx, dword [ebp + 8]
mov ebx, dword [edi + 4]
mov esi, eax
not eax
shr esi, 3
mov ecx, eax
movzx eax, byte [edx + esi]
and ecx, 7
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ecx
mov esi, dword [edi]
sar eax, cl
mov ecx, dword [ebp + 0x14]
mov edx, eax
shl edx, 7
mov byte [esp + 0x28], dl
mov edx, dword [edi + 8]
mov dword [esp + 0x18], edx
mov edx, dword [edi + 0xc]
mov dword [esp + 8], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 4], edi
mov dword [esp], edi
call dword [ebp + 0x24]
mov edx, esi
movzx ecx, byte [esp + 0x28]
xor cl, byte [edi]
mov byte [esp + 0x24], cl
movzx ecx, dh
lea eax, [esi + esi]
mov edx, ecx
add ecx, ecx
sar edx, 7
or eax, edx
mov edx, esi
shr edx, 0x10
mov byte [edi], al
mov eax, edx
shr dl, 7
or edx, ecx
add eax, eax
movzx ecx, bh
mov byte [edi + 1], dl
mov edx, esi
shr esi, 0x1f
or eax, esi
shr edx, 0x18
mov byte [edi + 2], al
mov eax, ebx
add edx, edx
shr al, 7
or eax, edx
mov edx, ecx
add ecx, ecx
mov byte [edi + 3], al
sar edx, 7
lea eax, [ebx + ebx]
or eax, edx
mov edx, ebx
shr edx, 0x10
mov byte [edi + 4], al
mov eax, edx
shr dl, 7
or edx, ecx
add eax, eax
mov byte [edi + 5], dl
mov edx, ebx
shr ebx, 0x1f
or eax, ebx
mov ebx, dword [esp + 0x18]
shr edx, 0x18
mov byte [edi + 6], al
add edx, edx
mov eax, ebx
movzx ecx, bh
mov esi, ebx
shr al, 7
or eax, edx
mov edx, ecx
mov byte [edi + 7], al
mov eax, ebx
sar edx, 7
add ecx, ecx
add eax, eax
shr esi, 0x1f
or eax, edx
mov edx, ebx
shr edx, 0x10
mov byte [edi + 8], al
mov eax, edx
shr dl, 7
or edx, ecx
add eax, eax
mov byte [edi + 9], dl
mov edx, ebx
mov ebx, dword [esp + 0x14]
or eax, esi
mov byte [edi + 0xa], al
shr edx, 0x18
mov eax, ebx
add edx, edx
movzx ecx, bh
mov esi, ebx
shr al, 7
or eax, edx
mov edx, ecx
add ecx, ecx
mov byte [edi + 0xb], al
sar edx, 7
lea eax, [esi + esi]
mov esi, dword [esp + 0x2c]
or eax, edx
mov edx, ebx
shr edx, 0x10
mov byte [edi + 0xc], al
mov eax, edx
shr dl, 7
or edx, ecx
add eax, eax
movzx ecx, byte [esp + 0x20]
mov byte [edi + 0xd], dl
mov edx, ebx
shr ebx, 0x1f
or eax, ebx
shr edx, 0x18
mov ebx, dword [esp + 0x1c]
add ebx, dword [ebp + 0xc]
mov byte [edi + 0xe], al
movzx eax, byte [esp + 0x28]
add edx, edx
sar eax, 7
or edx, eax
mov eax, ebx
mov byte [edi + 0xf], dl
mov edx, 1
shl edx, cl
mov ecx, esi
not edx
and dl, byte [ebx]
mov ebx, dword [esp + 0x24]
and ecx, 7
and ebx, 0x80
sar ebx, cl
add esi, 1
or edx, ebx
mov dword [esp + 0x2c], esi
mov byte [eax], dl
cmp dword [ebp + 0x10], esi
jne 0x6098e0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x2c]
mov edx, dword [ebp + 8]
mov esi, eax
not eax
shr esi, 3
mov ecx, eax
mov eax, dword [edi]
mov dword [esp + 0x28], esi
movzx esi, byte [edx + esi]
and ecx, 7
mov edx, dword [edi + 8]
mov dword [esp + 0x24], ecx
sar esi, cl
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
mov ebx, esi
mov edx, dword [ebp + 0x14]
shl ebx, 7
mov esi, dword [edi + 0xc]
mov byte [esp + 0x20], bl
mov ebx, dword [edi + 4]
mov dword [esp + 8], edx
mov dword [esp + 4], edi
mov dword [esp], edi
call dword [ebp + 0x24]
movzx eax, byte [esp + 0x20]
xor al, byte [edi]
mov byte [esp + 0x20], al
mov eax, dword [esp + 0x1c]
movzx edx, ah
movzx ecx, ah
mov dword [esp + 0x1c], edx
sar ecx, 7
lea edx, [eax + eax]
or edx, ecx
movzx ecx, byte [esp + 0x1c]
mov byte [edi], dl
mov edx, eax
shr edx, 0x10
add ecx, ecx
mov byte [esp + 0x1c], cl
mov ecx, edx
add edx, edx
shr cl, 7
or cl, byte [esp + 0x1c]
mov byte [edi + 1], cl
mov ecx, eax
shr eax, 0x1f
or edx, eax
shr ecx, 0x18
mov eax, ebx
add ecx, ecx
shr al, 7
mov byte [edi + 2], dl
or eax, ecx
movzx ecx, bh
mov edx, ecx
mov byte [edi + 3], al
lea eax, [ebx + ebx]
add ecx, ecx
sar edx, 7
or eax, edx
mov edx, ebx
shr edx, 0x10
mov byte [edi + 4], al
mov eax, edx
shr dl, 7
or edx, ecx
add eax, eax
mov ecx, dword [esp + 0x18]
mov byte [edi + 5], dl
mov edx, ebx
shr ebx, 0x1f
or eax, ebx
shr edx, 0x18
mov byte [edi + 6], al
mov eax, ecx
add edx, edx
shr al, 7
or eax, edx
mov edx, ecx
movzx ecx, ch
mov ebx, edx
mov byte [edi + 7], al
lea eax, [ebx + ebx]
mov ebx, edx
mov edx, ecx
sar edx, 7
add ecx, ecx
or eax, edx
mov edx, ebx
shr edx, 0x10
mov byte [edi + 8], al
mov eax, edx
shr dl, 7
or edx, ecx
mov ecx, ebx
add eax, eax
shr ecx, 0x1f
mov byte [edi + 9], dl
mov edx, ebx
movzx ebx, byte [esp + 0x20]
or eax, ecx
shr edx, 0x18
mov ecx, esi
mov byte [edi + 0xa], al
mov eax, esi
add edx, edx
movzx ecx, ch
shr al, 7
or eax, edx
mov edx, ecx
add ecx, ecx
mov byte [edi + 0xb], al
sar edx, 7
lea eax, [esi + esi]
or eax, edx
mov edx, esi
shr edx, 0x10
mov byte [edi + 0xc], al
mov eax, edx
shr dl, 7
or edx, ecx
mov ecx, esi
add eax, eax
shr ecx, 0x1f
mov byte [edi + 0xd], dl
mov edx, esi
mov esi, dword [esp + 0x2c]
or eax, ecx
shr edx, 0x18
mov ecx, dword [esp + 0x28]
add ecx, dword [ebp + 0xc]
mov byte [edi + 0xe], al
mov eax, ebx
add edx, edx
and ebx, 0x80
shr al, 7
or eax, edx
mov edx, 1
mov byte [edi + 0xf], al
mov eax, ecx
movzx ecx, byte [esp + 0x24]
shl edx, cl
mov ecx, esi
and ecx, 7
not edx
and dl, byte [eax]
sar ebx, cl
or edx, ebx
add esi, 1
mov byte [eax], dl
mov dword [esp + 0x2c], esi
cmp dword [ebp + 0x10], esi
jne 0x609a88
jmp 0x609a7c