Function at 0x10106c40
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x34
call fcn.10021e20
mov eax, dword [0x10195170]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push ebp
mov ebp, dword [esp + 0x48]
push esi
mov esi, dword [esp + 0x44]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebp
mov bl, byte [esi]
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
mov byte [esp + 0xf], bl
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
test bl, 0x40
jne 0x10106c94
push eax
lea eax, [esi + 0x10]
push eax
push esi
call ecx
add esp, 0xc
add dword [esi + 0x20], 1
adc dword [esi + 0x24], 0
movzx eax, bl
mov edx, 0xf
and eax, 7
xor ecx, ecx
sub edx, eax
mov byte [esi], al
mov dword [esp + 0x24], edx
cmp edx, 0xf
jae 0x10106cc3
mov edi, edi
movzx eax, byte [esi + edx]
or ecx, eax
mov byte [esi + edx], 0
inc edx
shl ecx, 8
cmp edx, 0xf
jb 0x10106cb0
movzx eax, byte [esi + 0xf]
mov ebx, dword [esp + 0x50]
or ecx, eax
mov byte [esi + 0xf], 1
cmp ecx, ebx
je 0x10106cea
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.10020a26
add esp, 0x34
ret
lea eax, [ebx + 0xf]
or eax, 8
shr eax, 3
add dword [esi + 0x20], eax
adc dword [esi + 0x24], 0
cmp dword [esi + 0x24], 0x20000000
jb 0x10106d22
ja 0x10106d0b
cmp dword [esi + 0x20], 0
jbe 0x10106d22
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.10020a26
add esp, 0x34
ret
push edi
mov edi, dword [esp + 0x4c]
cmp ebx, 0x10
jb 0x10106dc2
mov eax, ebx
lea ecx, [esi + 0x10]
shr eax, 4
mov dword [esp + 0x1c], eax
lea esp, [esp]
mov eax, dword [edi]
xor dword [ecx], eax
mov eax, dword [edi + 4]
xor dword [ecx + 4], eax
push dword [esp + 0x14]
mov eax, dword [edi + 8]
xor dword [esi + 0x18], eax
mov eax, dword [edi + 0xc]
xor dword [esi + 0x1c], eax
push ecx
push ecx
call dword [esp + 0x24]
push dword [esp + 0x20]
lea eax, [esp + 0x40]
push eax
push esi
call dword [esp + 0x30]
add esp, 0x18
mov ecx, 8
dec ecx
inc byte [ecx + esi + 8]
jne 0x10106d81
test ecx, ecx
jne 0x10106d76
mov ecx, dword [edi]
sub ebx, 0x10
mov eax, dword [edi + 4]
xor ecx, dword [esp + 0x30]
xor eax, dword [esp + 0x34]
mov dword [ebp], ecx
mov ecx, dword [esp + 0x38]
mov dword [ebp + 4], eax
xor ecx, dword [edi + 8]
mov eax, dword [esp + 0x3c]
xor eax, dword [edi + 0xc]
add edi, 0x10
mov dword [ebp + 8], ecx
lea ecx, [esi + 0x10]
mov dword [ebp + 0xc], eax
add ebp, 0x10
dec dword [esp + 0x1c]
jne 0x10106d40
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x54], ebx
test ebx, ebx
je 0x10106e99
xor ecx, ecx
test ebx, ebx
je 0x10106ddc
mov al, byte [ecx + edi]
xor byte [esi + ecx + 0x10], al
inc ecx
cmp ecx, ebx
jb 0x10106dd0
push dword [esp + 0x14]
lea eax, [esi + 0x10]
push eax
push eax
call dword [esp + 0x24]
push dword [esp + 0x20]
lea eax, [esp + 0x40]
push eax
push esi
call dword [esp + 0x30]
add esp, 0x18
xor edx, edx
test ebx, ebx
je 0x10106e99
cmp ebx, 0x10
jb 0x10106e7a
lea ecx, [ebp - 1]
lea eax, [esp + ebx + 0x2f]
add ecx, ebx
cmp ebp, eax
ja 0x10106e1e
lea eax, [esp + 0x30]
cmp ecx, eax
jae 0x10106e7a
lea eax, [edi - 1]
add eax, ebx
cmp ebp, eax
ja 0x10106e2b
cmp ecx, edi
jae 0x10106e7a
mov eax, ebx
mov ecx, ebx
and eax, 0xf
lea ebx, [esp + 0x30]
mov esi, ebp
sub ecx, eax
sub esi, edi
mov eax, edi
sub ebx, edi
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
movdqu xmm0, xmmword [eax]
add edx, 0x10
lea eax, [eax + 0x10]
movdqu xmm1, xmmword [eax + ebp - 0x10]
pxor xmm1, xmm0
movdqu xmmword [ebx + eax - 0x10], xmm1
cmp edx, ecx
jb 0x10106e54
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x1c]
cmp edx, ebx
jae 0x10106e99
lea eax, [esp + 0x30]
sub edi, eax
sub ebp, eax
lea ecx, [esp + 0x30]
add ecx, edx
inc edx
mov al, byte [edi + ecx]
xor al, byte [ecx]
mov byte [ecx + ebp], al
cmp edx, ebx
jb 0x10106e86
mov eax, dword [esp + 0x28]
cmp eax, 0x10
jae 0x10106ebc
mov ecx, 0x10
lea edi, [esi + eax]
sub ecx, eax
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push dword [esp + 0x14]
lea eax, [esp + 0x34]
push eax
push esi
call dword [esp + 0x24]
mov eax, dword [esp + 0x3c]
add esp, 0xc
xor dword [esi + 0x10], eax
mov eax, dword [esp + 0x34]
xor dword [esi + 0x14], eax
mov eax, dword [esp + 0x38]
xor dword [esi + 0x18], eax
mov eax, dword [esp + 0x3c]
xor dword [esi + 0x1c], eax
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x40]
pop edi
mov byte [esi], al
xor eax, eax
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10020a26
add esp, 0x34
ret