Function at 0x100d5da0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0x10]
sub esp, 0x18
push ebx
push esi
test al, 7
je 0x100d5dbd
mov eax, 0xffffffe8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0xc], 0
jne 0x100d5eea
test eax, eax
je 0x100d5f98
lea esi, [ecx + 2]
dec eax
sub ecx, edx
add ecx, 0xfffffffe
shr eax, 3
inc eax
lea ebx, [edx + 2]
mov dword [esp + 8], ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebx - 2]
mov ecx, dword [ebx + 2]
movzx edx, al
mov dword [esp + 0x1c], ecx
movzx ecx, byte [ebx]
shl edx, 8
mov dword [esp + 0x18], eax
movzx eax, byte [ebx - 1]
or edx, eax
movzx eax, byte [ebx + 1]
shl edx, 8
or edx, ecx
movzx ecx, byte [ebx + 2]
shl edx, 8
or edx, eax
movzx eax, byte [ebx + 4]
mov dword [esp + 0xc], edx
movzx edx, byte [ebx + 3]
shl ecx, 8
or ecx, edx
movzx edx, byte [ebx + 5]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, edx
mov edx, dword [ebp + 8]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ecx
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.100d5b20
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov byte [esi + 1], al
mov edx, eax
shr edx, 0x18
mov byte [ecx + ebx], dl
mov edx, eax
shr edx, 0x10
mov byte [esi - 1], dl
mov edx, eax
mov eax, dword [esp + 0x18]
shr edx, 8
mov byte [esi], dl
mov byte [esi + 5], al
mov edx, eax
shr edx, 0x18
mov byte [esi + 2], dl
mov edx, eax
shr edx, 0x10
mov byte [esi + 3], dl
mov edx, eax
shr edx, 8
mov byte [esi + 4], dl
movzx eax, byte [edi]
xor byte [ecx + ebx], al
movzx ecx, byte [edi + 1]
xor byte [esi - 1], cl
movzx edx, byte [edi + 2]
xor byte [esi], dl
movzx eax, byte [edi + 3]
xor byte [esi + 1], al
movzx ecx, byte [edi + 4]
xor byte [esi + 2], cl
movzx edx, byte [edi + 5]
xor byte [esi + 3], dl
movzx eax, byte [edi + 6]
xor byte [esi + 4], al
movzx ecx, byte [edi + 7]
xor byte [esi + 5], cl
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
add esp, 8
add ebx, 8
add esi, 8
dec dword [esp + 0x14]
mov dword [edi], edx
mov dword [edi + 4], eax
jne 0x100d5de7
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x100d5f98
lea eax, [ecx + 2]
sub ecx, edx
add ecx, 0xfffffffe
mov dword [esp + 8], ecx
mov ecx, dword [ebp + 0x10]
dec ecx
shr ecx, 3
inc ecx
mov dword [esp + 0xc], eax
lea ebx, [edx + 2]
mov dword [esp + 0x14], ecx
jmp 0x100d5f17
mov eax, dword [esp + 0xc]
movzx edx, byte [ebx - 2]
xor dl, byte [edi]
mov ecx, dword [esp + 8]
mov byte [ebx + ecx], dl
lea esi, [ebx + ecx]
movzx ecx, byte [ebx - 1]
xor cl, byte [edi + 1]
mov byte [eax - 1], cl
movzx edx, byte [edi + 2]
xor dl, byte [ebx]
mov byte [eax], dl
movzx ecx, byte [ebx + 1]
xor cl, byte [edi + 3]
mov byte [eax + 1], cl
movzx edx, byte [ebx + 2]
xor dl, byte [edi + 4]
mov byte [eax + 2], dl
movzx ecx, byte [ebx + 3]
xor cl, byte [edi + 5]
mov byte [eax + 3], cl
movzx edx, byte [ebx + 4]
xor dl, byte [edi + 6]
mov byte [eax + 4], dl
movzx ecx, byte [ebx + 5]
xor cl, byte [edi + 7]
mov edx, dword [ebp + 0xc]
mov byte [eax + 5], cl
push edx
mov edx, dword [ebp + 8]
mov eax, esi
call fcn.100d5cf0
mov eax, dword [esi]
add dword [esp + 0x10], 8
mov dword [edi], eax
mov ecx, dword [esi + 4]
add esp, 4
add ebx, 8
dec dword [esp + 0x14]
mov dword [edi + 4], ecx
jne 0x100d5f13
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret