Function at 0x4dde20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [ebp + 8]
mov bl, byte [esi]
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
mov byte [ebp - 1], bl
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
test bl, 0x40
jne 0x4dde54
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 [ebp - 0x18], edx
cmp edx, 0xf
jae 0x4dde83
nop dword [eax]
movzx eax, byte [edx + esi]
or ecx, eax
mov byte [edx + esi], 0
inc edx
shl ecx, 8
cmp edx, 0xf
jb 0x4dde70
movzx eax, byte [esi + 0xf]
mov edx, dword [ebp + 0x14]
or ecx, eax
mov byte [esi + 0xf], 1
cmp ecx, edx
je 0x4dde9d
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [edx + 0xf]
or eax, 8
shr eax, 3
add dword [esi + 0x20], eax
adc dword [esi + 0x24], 0
cmp dword [esi + 0x24], 0x20000000
jb 0x4ddec9
ja 0x4ddebe
cmp dword [esi + 0x20], 0
jbe 0x4ddec9
pop esi
mov eax, 0xfffffffe
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
cmp edx, 0x10
jb 0x4ddf59
shr edx, 4
lea ecx, [esi + 0x10]
mov dword [ebp - 0x10], edx
mov eax, dword [edi]
xor dword [ecx], eax
mov eax, dword [edi + 4]
xor dword [ecx + 4], eax
push dword [ebp - 8]
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 [ebp - 0xc]
push dword [ebp - 8]
lea eax, [ebp - 0x28]
push eax
push esi
call dword [ebp - 0xc]
add esp, 0x18
mov eax, 8
dec eax
add byte [eax + esi + 8], 1
jne 0x4ddf1f
test eax, eax
jne 0x4ddf13
mov ecx, dword [edi]
mov eax, dword [edi + 4]
xor ecx, dword [ebp - 0x28]
xor eax, dword [ebp - 0x24]
mov edx, dword [ebp + 0x14]
mov dword [ebx], ecx
sub edx, 0x10
mov dword [ebx + 4], eax
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
add edi, 0x10
xor ecx, dword [ebp - 0x20]
xor eax, dword [ebp - 0x1c]
mov dword [ebx + 8], ecx
lea ecx, [esi + 0x10]
mov dword [ebx + 0xc], eax
add ebx, 0x10
sub dword [ebp - 0x10], 1
mov dword [ebp + 0x14], edx
jne 0x4ddee2
test edx, edx
je 0x4de068
xor ecx, ecx
test edx, edx
je 0x4ddf73
mov al, byte [ecx + edi]
xor byte [esi + ecx + 0x10], al
inc ecx
cmp ecx, edx
jb 0x4ddf67
push dword [ebp - 8]
lea eax, [esi + 0x10]
push eax
push eax
call dword [ebp - 0xc]
push dword [ebp - 8]
lea eax, [ebp - 0x28]
push eax
push esi
call dword [ebp - 0xc]
mov ecx, dword [ebp + 0x14]
add esp, 0x18
xor edx, edx
test ecx, ecx
je 0x4de068
cmp ecx, 0x40
jb 0x4de045
lea eax, [ebp + ecx - 0x29]
cmp ebx, eax
ja 0x4ddfbe
lea eax, [ebp - 0x28]
mov dword [ebp - 0x10], eax
lea eax, [ecx - 1]
add eax, ebx
cmp eax, dword [ebp - 0x10]
jae 0x4de045
lea eax, [ecx - 1]
add eax, edi
cmp ebx, eax
ja 0x4ddfd0
lea eax, [ecx - 1]
add eax, ebx
cmp eax, edi
jae 0x4de045
mov eax, ecx
mov esi, edi
and eax, 0xffffffc0
sub esi, ebx
mov dword [ebp - 0x10], esi
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
lea eax, [ebx + 0x10]
nop dword [eax + eax]
movups xmm0, xmmword [ebp + edx - 0x28]
lea eax, [eax + 0x40]
movups xmm1, xmmword [edi + edx]
pxor xmm1, xmm0
movups xmm0, xmmword [ebp + edx - 0x18]
movups xmmword [ebx + edx], xmm1
movups xmm1, xmmword [ecx + eax - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ebp + edx - 8]
movups xmmword [eax - 0x40], xmm1
movups xmm1, xmmword [edi + edx + 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [ebp + edx + 8]
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [edi + edx + 0x30]
add edx, 0x40
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp edx, dword [ebp - 0x14]
jb 0x4ddff0
mov ecx, dword [ebp + 0x14]
cmp edx, ecx
jae 0x4de068
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 0x28]
sub edi, eax
sub ebx, eax
lea ecx, [ebp - 0x28]
add ecx, edx
inc edx
mov al, byte [ecx + edi]
xor al, byte [ecx]
mov byte [ecx + ebx], al
cmp edx, esi
jb 0x4de053
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jae 0x4de08a
mov ecx, 0x10
lea edi, [edx + esi]
sub ecx, edx
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 [ebp - 8]
lea eax, [ebp - 0x28]
push eax
push esi
call dword [ebp - 0xc]
mov eax, dword [ebp - 0x28]
add esp, 0xc
xor dword [esi + 0x10], eax
mov eax, dword [ebp - 0x24]
xor dword [esi + 0x14], eax
mov eax, dword [ebp - 0x20]
xor dword [esi + 0x18], eax
mov eax, dword [ebp - 0x1c]
xor dword [esi + 0x1c], eax
mov al, byte [ebp - 1]
pop edi
mov byte [esi], al
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret