Function at 0x100d4620
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x1029912c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, edx
mov edx, ecx
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x48], edx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x58], edi
test ebx, ebx
je 0x100d46b6
cmp dword [edx + 0x40], 0
jbe 0x100d46b6
lea ecx, [ebp - 0x44]
call fcn.100d4350
mov edx, dword [ebp - 0x48]
lea eax, [ebp - 4]
xor ecx, ecx
sub eax, dword [edx + 0x40]
test ebx, ebx
je 0x100d46a2
sub eax, esi
mov edx, esi
mov dword [ebp - 0x50], eax
mov eax, edi
mov edi, dword [ebp - 0x50]
sub eax, esi
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
nop dword [eax + eax]
cmp ecx, dword [esi + 0x40]
jae 0x100d4699
mov al, byte [edi + edx]
inc ecx
mov ebx, dword [ebp - 0x4c]
xor al, byte [edx]
mov byte [ebx + edx], al
inc edx
mov ebx, dword [ebp + 0xc]
cmp ecx, ebx
jb 0x100d4680
mov esi, dword [ebp - 0x54]
mov edi, dword [ebp - 0x58]
mov edx, dword [ebp - 0x48]
sub dword [edx + 0x40], ecx
jne 0x100d46aa
inc dword [edx + 0x30]
sub ebx, ecx
add edi, ecx
add esi, ecx
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0x54], esi
cmp ebx, 0x40
jb 0x100d479e
lea ecx, [ebp - 0x44]
mov eax, edi
sub eax, ecx
mov dword [ebp - 0x58], eax
mov eax, esi
sub eax, ecx
mov dword [ebp - 0x4c], eax
lea eax, [edi + 0x3f]
mov dword [ebp - 0x5c], eax
mov eax, ebx
shr eax, 6
mov dword [ebp - 0x50], eax
nop
lea ecx, [ebp - 0x44]
call fcn.100d4350
mov edx, dword [ebp - 0x48]
lea ecx, [esi + 0x3f]
xor eax, eax
inc dword [edx + 0x30]
cmp edi, ecx
mov ecx, dword [ebp - 0x5c]
ja 0x100d46fe
cmp ecx, esi
jae 0x100d4712
lea ebx, [ebp - 5]
cmp edi, ebx
mov ebx, dword [ebp + 0xc]
ja 0x100d4739
lea edx, [ebp - 0x44]
cmp ecx, edx
mov edx, dword [ebp - 0x48]
jb 0x100d4739
mov ebx, dword [ebp - 0x58]
mov esi, dword [ebp - 0x4c]
lea edx, [ebp - 0x44]
add edx, eax
inc eax
mov cl, byte [esi + edx]
xor cl, byte [edx]
mov byte [ebx + edx], cl
cmp eax, 0x40
jb 0x100d4718
mov esi, dword [ebp - 0x54]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x48]
jmp 0x100d4777
movups xmm0, xmmword [ebp - 0x44]
movups xmm1, xmmword [esi]
pxor xmm1, xmm0
movups xmm0, xmmword [ebp - 0x34]
movups xmmword [edi], xmm1
movups xmm1, xmmword [esi + 0x10]
pxor xmm1, xmm0
movups xmm0, xmmword [ebp - 0x24]
movups xmmword [ecx - 0x2f], xmm1
movups xmm1, xmmword [esi + 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [ebp - 0x14]
movups xmmword [ecx - 0x1f], xmm1
movups xmm1, xmmword [esi + 0x30]
pxor xmm1, xmm0
movups xmmword [ecx - 0xf], xmm1
add dword [ebp - 0x58], 0x40
sub ebx, 0x40
add dword [ebp - 0x4c], 0x40
add ecx, 0x40
add esi, 0x40
mov dword [ebp + 0xc], ebx
add edi, 0x40
mov dword [ebp - 0x5c], ecx
sub dword [ebp - 0x50], 1
mov dword [ebp - 0x54], esi
jne 0x100d46e0
test ebx, ebx
je 0x100d487c
lea ecx, [ebp - 0x44]
call fcn.100d4350
xor ecx, ecx
test ebx, ebx
je 0x100d486f
cmp ebx, 0x40
jb 0x100d4859
lea eax, [esi - 1]
lea edx, [edi - 1]
add eax, ebx
add edx, ebx
cmp edi, eax
ja 0x100d47d7
cmp edx, esi
jae 0x100d4859
lea eax, [ebp + ebx - 0x45]
cmp edi, eax
ja 0x100d47e6
lea eax, [ebp - 0x44]
cmp edx, eax
jae 0x100d4859
mov edx, ebx
lea eax, [edi + 0x10]
mov ebx, esi
and edx, 0xffffffc0
sub ebx, edi
mov dword [ebp - 0x50], ebx
lea ebx, [esi + 0x30]
mov dword [ebp - 0x4c], ebx
mov ebx, dword [ebp + 0xc]
nop
movups xmm1, xmmword [esi + ecx]
mov esi, dword [ebp - 0x50]
lea eax, [eax + 0x40]
movups xmm0, xmmword [ebp + ecx - 0x44]
pxor xmm1, xmm0
movups xmm0, xmmword [ebp + ecx - 0x34]
movups xmmword [edi + ecx], xmm1
movups xmm1, xmmword [esi + eax - 0x40]
mov esi, dword [ebp - 0x4c]
pxor xmm1, xmm0
movups xmm0, xmmword [ebp + ecx - 0x24]
movups xmmword [eax - 0x40], xmm1
movups xmm1, xmmword [esi + ecx - 0x10]
pxor xmm1, xmm0
movups xmm0, xmmword [ebp + ecx - 0x14]
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [esi + ecx]
mov esi, dword [ebp - 0x54]
add ecx, 0x40
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp ecx, edx
jb 0x100d4800
cmp ecx, ebx
jae 0x100d486f
nop dword [eax]
mov al, byte [esi + ecx]
xor al, byte [ebp + ecx - 0x44]
mov byte [edi + ecx], al
inc ecx
cmp ecx, ebx
jb 0x100d4860
mov eax, 0x40
sub eax, ecx
mov ecx, dword [ebp - 0x48]
mov dword [ecx + 0x40], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101d506b
mov esp, ebp
pop ebp
ret