Function at 0x4d3c20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4d3ffa
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
cmp edx, 0x20
setae al
lea ecx, [edx - 0x20]
cmp ecx, edi
mov ebx, dword [ebp + 0x18]
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
setae cl
mov dword [esp + 8], edx
cmp edx, edi
jb 0x4d3cfd
and al, cl
jne 0x4d3cfd
cmp esi, 0x10
jb 0x4d3d66
mov eax, dword [ebp + 0x14]
nop word cs:[eax + eax]
push eax
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x10]
push eax
mov ebx, edi
mov edi, eax
call dword [ebp + 0x1c]
mov edx, edi
mov edi, ebx
mov ebx, dword [ebp + 0x18]
add esp, 0xc
mov eax, dword [edx]
mov ecx, dword [ebx]
xor ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov dword [ebx], eax
mov eax, dword [edx + 4]
mov ecx, dword [ebx + 4]
xor ecx, dword [esp + 0x24]
mov dword [edi + 4], ecx
mov dword [ebx + 4], eax
mov eax, dword [edx + 8]
mov ecx, dword [ebx + 8]
xor ecx, dword [esp + 0x28]
mov dword [edi + 8], ecx
mov dword [ebx + 8], eax
mov eax, dword [edx + 0xc]
mov ecx, dword [ebx + 0xc]
xor ecx, dword [esp + 0x2c]
mov dword [edi + 0xc], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 0x14]
add esi, 0xfffffff0
add edx, 0x10
mov dword [esp + 8], edx
add edi, 0x10
cmp esi, 0xf
ja 0x4d3c80
test esi, esi
jne 0x4d3d84
jmp 0x4d3ffa
cmp esi, 0x10
jb 0x4d3d6e
nop word cs:[eax + eax]
mov dword [esp + 0xc], esi
mov eax, dword [esp + 8]
mov dword [esp + 0x18], eax
push dword [ebp + 0x14]
push edi
push eax
call dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x1c]
mov esi, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ebx]
xor dword [edi], eax
mov eax, dword [ebx + 4]
xor dword [edi + 4], eax
mov eax, dword [ebx + 8]
xor dword [edi + 8], eax
mov eax, dword [ebx + 0xc]
xor dword [edi + 0xc], eax
add esi, 0xfffffff0
mov ebx, dword [esp + 0x18]
lea eax, [ebx + 0x10]
mov dword [esp + 8], eax
add edi, 0x10
cmp esi, 0xf
ja 0x4d3d10
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov ebx, dword [ebp + 0x18]
jmp 0x4d3d73
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x14]
jmp 0x4d3d84
mov eax, ebx
mov ecx, dword [ebp + 0x1c]
movups xmm0, xmmword [eax]
movups xmmword [ebx], xmm0
mov eax, dword [ebp + 0x14]
test esi, esi
je 0x4d3ffa
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], edi
lea edx, [esp + 0x20]
push eax
push edx
push dword [esp + 0x10]
call ecx
mov edx, dword [esp + 0x18]
add esp, 0xc
lea eax, [edx - 1]
mov dword [esp + 0x38], eax
xor ecx, ecx
cmp edx, 8
jb 0x4d3f1d
mov edi, dword [esp + 0x18]
lea eax, [edi + edx]
mov dword [esp + 0x30], eax
lea eax, [ebx + edx]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 8]
lea esi, [eax + edx]
mov dword [esp + 0x1c], esi
cmp edi, dword [esp + 0x34]
setb byte [esp + 0x17]
mov esi, dword [esp + 0x30]
cmp esi, ebx
seta byte [esp + 0x16]
cmp edi, dword [esp + 0x1c]
setb byte [esp + 0x15]
cmp eax, esi
setb byte [esp + 0x14]
add edx, esp
add edx, 0x20
cmp edi, edx
setb byte [esp + 0x13]
lea edi, [esp + 0x20]
cmp edi, esi
setb byte [esp + 0x30]
cmp dword [esp + 0x1c], ebx
seta al
mov edi, dword [esp + 0x34]
cmp dword [esp + 8], edi
setb byte [esp + 0x1c]
cmp edx, ebx
seta ah
lea edx, [esp + 0x20]
cmp edx, edi
setb dl
mov dh, byte [esp + 0x16]
test byte [esp + 0x17], dh
jne 0x4d3f19
mov dh, byte [esp + 0x14]
and byte [esp + 0x15], dh
jne 0x4d3f19
mov dh, byte [esp + 0x30]
and byte [esp + 0x13], dh
jne 0x4d3f19
and al, byte [esp + 0x1c]
jne 0x4d3f19
and ah, dl
mov edx, dword [esp + 0xc]
mov edi, dword [esp + 0x18]
jne 0x4d3f1d
xor ecx, ecx
cmp edx, 0x20
jb 0x4d3ed6
mov ecx, edx
and ecx, 0xffffffe0
xor edx, edx
mov eax, dword [esp + 8]
nop word cs:[eax + eax]
movups xmm0, xmmword [eax + edx]
movups xmm1, xmmword [eax + edx + 0x10]
movups xmm2, xmmword [ebx + edx]
movups xmm3, xmmword [ebx + edx + 0x10]
xorps xmm2, xmmword [esp + edx + 0x20]
xorps xmm3, xmmword [esp + edx + 0x30]
movups xmmword [edi + edx], xmm2
movups xmmword [edi + edx + 0x10], xmm3
movups xmmword [ebx + edx], xmm0
movups xmmword [ebx + edx + 0x10], xmm1
add edx, 0x20
cmp ecx, edx
jne 0x4d3e90
mov edx, dword [esp + 0xc]
cmp edx, ecx
je 0x4d3f93
test dl, 0x18
je 0x4d3f1d
mov eax, ecx
mov ecx, edx
and ecx, 0xfffffff8
mov esi, dword [esp + 8]
nop word cs:[eax + eax]
movsd xmm0, qword [esi + eax]
movsd xmm1, qword [esp + eax + 0x20]
movsd xmm2, qword [ebx + eax]
xorps xmm2, xmm1
movlps qword [edi + eax], xmm2
movsd qword [ebx + eax], xmm0
add eax, 8
cmp ecx, eax
jne 0x4d3ef0
cmp edx, ecx
jne 0x4d3f1d
jmp 0x4d3f93
mov edx, dword [esp + 0xc]
mov eax, ecx
or eax, 1
test dl, 1
je 0x4d3f46
movzx edx, byte [ebx + ecx]
xor dl, byte [esp + ecx + 0x20]
mov esi, dword [esp + 8]
mov dh, byte [esi + ecx]
mov esi, dword [esp + 0x18]
mov byte [esi + ecx], dl
mov byte [ebx + ecx], dh
mov edx, dword [esp + 0xc]
mov ecx, eax
cmp edx, eax
mov esi, dword [esp + 0x18]
je 0x4d3f93
mov edi, dword [esp + 8]
nop word cs:[eax + eax]
movzx eax, byte [edi + ecx]
movzx edx, byte [ebx + ecx]
xor dl, byte [esp + ecx + 0x20]
mov byte [esi + ecx], dl
mov byte [ebx + ecx], al
movzx eax, byte [edi + ecx + 1]
movzx edx, byte [ebx + ecx + 1]
xor dl, byte [esp + ecx + 0x21]
mov byte [esi + ecx + 1], dl
mov edx, dword [esp + 0xc]
mov byte [ebx + ecx + 1], al
add ecx, 2
cmp edx, ecx
jne 0x4d3f60
cmp dword [esp + 0x38], 0xe
ja 0x4d3ffa
mov ecx, edx
neg ecx
mov eax, edx
and ecx, 3
je 0x4d3fbf
mov eax, dword [esp + 0xc]
nop dword [eax]
mov edx, dword [esp + 8]
movzx edx, byte [edx + eax]
mov byte [ebx + eax], dl
inc eax
dec ecx
jne 0x4d3fb0
mov edi, dword [esp + 0xc]
add edi, 0xfffffff3
cmp edi, 3
jb 0x4d3ffa
mov edx, dword [esp + 8]
nop
movzx ecx, byte [edx + eax]
mov byte [ebx + eax], cl
movzx ecx, byte [edx + eax + 1]
mov byte [ebx + eax + 1], cl
movzx ecx, byte [edx + eax + 2]
mov byte [ebx + eax + 2], cl
movzx ecx, byte [edx + eax + 3]
mov byte [ebx + eax + 3], cl
add eax, 4
cmp eax, 0x10
jne 0x4d3fd0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret