Function at 0x10103860
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x30
call fcn.10163610
mov eax, dword [0x101f9e50]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x40]
push edi
mov bl, byte [esi]
mov edi, dword [esp + 0x4c]
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x28], esi
mov dword [esp + 0x10], edi
mov byte [esp + 0x17], bl
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test bl, 0x40
jne 0x101038ad
push eax
lea eax, [esi + 0x10]
push eax
push esi
call ecx
add esp, 0xc
movzx eax, bl
and eax, 7
mov edx, 0xf
sub edx, eax
xor ecx, ecx
mov byte [esi], al
mov dword [esp + 0x24], edx
cmp edx, 0xf
jae 0x101038e3
jmp 0x101038d0
movzx eax, byte [esi + edx]
or ecx, eax
mov byte [esi + edx], 0
inc edx
shl ecx, 8
cmp edx, 0xf
jb 0x101038d0
movzx eax, byte [esi + 0xf]
mov ebp, dword [esp + 0x50]
or ecx, eax
mov byte [esi + 0xf], 1
cmp ecx, ebp
je 0x1010390b
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.1016059f
add esp, 0x30
ret
mov ebx, dword [esp + 0x48]
cmp ebp, 0x10
jb 0x10103997
mov eax, ebp
shr eax, 4
mov dword [esp + 0x10], eax
push dword [esp + 0x18]
lea eax, [esp + 0x30]
push eax
push esi
call dword [esp + 0x28]
add esp, 0xc
mov eax, 8
dec eax
inc byte [esi + eax + 8]
jne 0x10103942
test eax, eax
jne 0x10103937
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
xor ecx, dword [esp + 0x2c]
xor eax, dword [esp + 0x30]
push dword [esp + 0x18]
mov dword [edi], ecx
mov dword [edi + 4], eax
xor dword [esi + 0x10], ecx
xor dword [esi + 0x14], eax
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
xor ecx, dword [esp + 0x38]
xor eax, dword [esp + 0x3c]
lea edx, [esi + 0x10]
push edx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], eax
xor dword [esi + 0x18], ecx
xor dword [esi + 0x1c], eax
push edx
call dword [esp + 0x28]
add esp, 0xc
add ebx, 0x10
add edi, 0x10
sub ebp, 0x10
dec dword [esp + 0x10]
jne 0x10103921
mov dword [esp + 0x10], edi
test ebp, ebp
je 0x101039ff
push dword [esp + 0x18]
lea eax, [esp + 0x30]
push eax
push esi
call dword [esp + 0x28]
add esp, 0xc
xor edi, edi
test ebp, ebp
je 0x101039ea
lea eax, [esp + 0x2c]
sub ebx, eax
sub dword [esp + 0x10], eax
lea eax, [esi + 0x10]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x2c]
add ecx, edi
inc edi
movzx edx, byte [ebx + ecx]
movzx eax, byte [ecx]
xor edx, eax
mov eax, dword [esp + 0x20]
mov byte [esi + ecx], dl
xor byte [eax + edi - 1], dl
cmp edi, ebp
jb 0x101039c7
mov esi, dword [esp + 0x28]
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
lea eax, [esi + 0x10]
push ebp
push eax
push eax
call ebx
add esp, 0xc
jmp 0x10103a07
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
cmp eax, 0x10
jae 0x10103a2a
mov ecx, 0x10
sub ecx, eax
mov edx, ecx
shr ecx, 2
lea edi, [esi + eax]
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push ebp
lea eax, [esp + 0x30]
push eax
push esi
call ebx
mov eax, dword [esp + 0x38]
xor dword [esi + 0x10], eax
mov eax, dword [esp + 0x3c]
xor dword [esi + 0x14], eax
mov eax, dword [esp + 0x40]
xor dword [esi + 0x18], eax
mov eax, dword [esp + 0x44]
xor dword [esi + 0x1c], eax
mov al, byte [esp + 0x23]
mov ecx, dword [esp + 0x48]
add esp, 0xc
mov byte [esi], al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.1016059f
add esp, 0x30
ret