Function at 0x101a2ae0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov ebx, ecx
push esi
mov esi, edx
mov dword [ebp - 0x1c], ebx
cmp dword [ebx], 0
je 0x101a2aff
pop esi
mov eax, 0xfffffffb
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 8], 0
je 0x101a2b10
pop esi
mov eax, 0xfffffffa
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x101a2e4b
mov eax, dword [ebp + 8]
test eax, eax
jle 0x101a2e4b
cdq
and edx, 0x7f
push edi
lea edi, [edx + eax]
mov eax, dword [ebx + 4]
sar edi, 7
mov dword [ebp - 0x18], edi
sub eax, 0
je 0x101a2e14
sub eax, 1
je 0x101a2d74
sub eax, 1
je 0x101a2b55
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0xc]
mov esi, edi
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x20], eax
test edi, edi
jle 0x101a2e3f
mov al, byte [ebp - 0x1d]
mov byte [ebp - 0x10], al
mov al, byte [ebp - 0x1e]
mov byte [ebp - 0xf], al
mov al, byte [ebp - 0x1f]
mov byte [ebp - 0xe], al
mov al, byte [ebp - 0x20]
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0x21]
mov byte [ebp - 0xc], al
mov al, byte [ebp - 0x22]
mov byte [ebp - 0xb], al
mov al, byte [ebp - 0x23]
mov byte [ebp - 0xa], al
mov al, byte [ebp - 0x24]
mov edi, dword [ebp + 0xc]
mov byte [ebp - 9], al
mov al, byte [ebp - 0x25]
mov byte [ebp - 8], al
mov al, byte [ebp - 0x26]
mov byte [ebp - 7], al
mov al, byte [ebp - 0x27]
mov byte [ebp - 6], al
mov al, byte [ebp - 0x28]
mov byte [ebp - 5], al
mov al, byte [ebp - 0x29]
mov byte [ebp - 4], al
mov al, byte [ebp - 0x2a]
mov byte [ebp - 3], al
mov al, byte [ebp - 0x2b]
mov byte [ebp - 2], al
mov al, byte [ebp - 0x2c]
mov byte [ebp - 1], al
nop word [eax + eax]
mov dword [ebp - 0x14], 0
movups xmm0, xmmword [ebp - 0x2c]
lea eax, [ebp - 0x3c]
mov ecx, ebx
push eax
mov edx, eax
movups xmmword [ebp - 0x3c], xmm0
call fcn.101a33a0
mov eax, dword [ebp - 0x14]
add esp, 4
mov bl, al
and bl, 7
mov eax, eax
test eax, eax
jns 0x101a2c10
add eax, 7
sar eax, 3
lea edx, [eax + edi]
mov cl, bl
mov al, byte [ebp - 0x3c]
mov ah, byte [ebp - 1]
and al, 0x80
shr al, cl
add ah, ah
xor byte [edx], al
mov cl, byte [ebp - 2]
mov al, cl
mov dl, byte [edx]
shr al, 7
add cl, cl
or ah, al
mov byte [ebp - 1], ah
mov byte [ebp - 0x2c], ah
mov ah, byte [ebp - 3]
mov al, ah
add ah, ah
shr al, 7
or cl, al
mov byte [ebp - 2], cl
mov byte [ebp - 0x2b], cl
mov cl, byte [ebp - 4]
mov al, cl
add cl, cl
shr al, 7
or ah, al
mov byte [ebp - 3], ah
mov byte [ebp - 0x2a], ah
mov ah, byte [ebp - 5]
mov al, ah
add ah, ah
shr al, 7
or cl, al
mov byte [ebp - 4], cl
mov byte [ebp - 0x29], cl
mov cl, byte [ebp - 6]
mov al, cl
add cl, cl
shr al, 7
or ah, al
mov byte [ebp - 5], ah
mov byte [ebp - 0x28], ah
mov ah, byte [ebp - 7]
mov al, ah
add ah, ah
shr al, 7
or cl, al
mov byte [ebp - 6], cl
mov byte [ebp - 0x27], cl
mov cl, byte [ebp - 8]
mov al, cl
add cl, cl
shr al, 7
or ah, al
mov byte [ebp - 7], ah
mov byte [ebp - 0x26], ah
mov ah, byte [ebp - 9]
mov al, ah
add ah, ah
shr al, 7
or cl, al
mov byte [ebp - 8], cl
mov byte [ebp - 0x25], cl
mov cl, byte [ebp - 0xa]
mov al, cl
shr al, 7
or ah, al
mov byte [ebp - 9], ah
add cl, cl
mov byte [ebp - 0x24], ah
mov ah, byte [ebp - 0xb]
mov al, ah
mov dh, byte [ebp - 0xf]
shr al, 7
add ah, ah
or cl, al
mov ch, byte [ebp - 0x10]
mov byte [ebp - 0xa], cl
mov byte [ebp - 0x23], cl
mov cl, byte [ebp - 0xc]
mov al, cl
add cl, cl
shr al, 7
or ah, al
mov byte [ebp - 0xb], ah
mov byte [ebp - 0x22], ah
mov ah, byte [ebp - 0xd]
mov al, ah
add ah, ah
shr al, 7
or cl, al
mov byte [ebp - 0xc], cl
mov byte [ebp - 0x21], cl
mov cl, byte [ebp - 0xe]
mov al, cl
add cl, cl
shr al, 7
or ah, al
mov al, dh
shr al, 7
add dh, dh
or cl, al
mov byte [ebp - 0xd], ah
mov al, ch
mov byte [ebp - 0xe], cl
mov byte [ebp - 0x1f], cl
add ch, ch
shr al, 7
mov cl, 7
or dh, al
mov byte [ebp - 0x20], ah
mov eax, dword [ebp - 0x14]
sub cl, bl
mov ebx, dword [ebp - 0x1c]
inc eax
shr dl, cl
and dl, 1
mov byte [ebp - 0xf], dh
or ch, dl
mov byte [ebp - 0x1e], dh
mov byte [ebp - 0x10], ch
mov byte [ebp - 0x1d], ch
mov dword [ebp - 0x14], eax
cmp eax, 0x80
jl 0x101a2be7
dec esi
test esi, esi
jg 0x101a2be0
mov edi, dword [ebp - 0x18]
shl edi, 7
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0xc]
lea edx, [ebp - 0x3c]
xor eax, dword [esi]
push dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx + 0x10]
xor eax, dword [esi + 4]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 0x14]
xor eax, dword [esi + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0x18]
xor eax, dword [esi + 0xc]
mov dword [ebp - 0x30], eax
call fcn.101a33a0
lea eax, [edi - 1]
add esp, 4
add esi, 0x10
mov dword [ebp - 0x1c], eax
test eax, eax
jle 0x101a2e3f
mov edi, dword [ebp + 0xc]
add edi, 8
nop dword [eax]
mov eax, dword [edi - 8]
lea edi, [edi + 0x10]
xor eax, dword [esi]
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x3c], eax
mov ecx, ebx
mov eax, dword [edi - 0x14]
xor eax, dword [esi + 4]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 8]
xor eax, dword [edi - 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [edi - 0xc]
xor eax, dword [esi + 0xc]
mov dword [ebp - 0x30], eax
lea eax, [edi - 8]
push eax
call fcn.101a33a0
mov eax, dword [ebp - 0x1c]
lea esi, [esi + 0x10]
dec eax
add esp, 4
mov dword [ebp - 0x1c], eax
test eax, eax
jg 0x101a2dc0
mov edi, dword [ebp - 0x18]
shl edi, 7
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x1c], edi
test edi, edi
jle 0x101a2e3f
mov edi, dword [ebp + 0xc]
sub esi, edi
push edi
lea edx, [esi + edi]
mov ecx, ebx
call fcn.101a33a0
mov eax, dword [ebp - 0x1c]
add esp, 4
dec eax
add edi, 0x10
mov dword [ebp - 0x1c], eax
test eax, eax
jg 0x101a2e20
mov edi, dword [ebp - 0x18]
shl edi, 7
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret