Function at 0x4bd590
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
push ebx
push esi
mov esi, edx
test ecx, ecx
je 0x4bd81b
test esi, esi
je 0x4bd81b
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4bd81b
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x38]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x2c], eax
call fcn.004bd420
mov ecx, dword [ebp - 4]
add ecx, 0x44
mov dword [ebp - 0xc], ecx
cmp edi, 0x10
jb 0x4bd67c
mov eax, esi
sub eax, ebx
mov dword [ebp - 0x10], eax
mov eax, edi
shr eax, 4
mov dword [ebp - 8], eax
nop dword [eax]
call fcn.004bd130
mov edx, dword [ebp - 4]
sub edi, 0x10
mov eax, dword [edx + 0x50]
movzx ecx, word [edx + 0x5a]
shl eax, 0x10
xor ecx, eax
mov eax, dword [ebp - 0x10]
xor ecx, dword [edx + 0x44]
xor ecx, dword [esi]
mov dword [ebx], ecx
movzx ecx, word [edx + 0x62]
xor ecx, dword [ebx + eax + 4]
mov eax, dword [edx + 0x58]
shl eax, 0x10
xor ecx, eax
xor ecx, dword [edx + 0x4c]
mov dword [ebx + 4], ecx
movzx ecx, word [edx + 0x4a]
xor ecx, dword [esi + 8]
mov eax, dword [edx + 0x60]
shl eax, 0x10
xor ecx, eax
xor ecx, dword [edx + 0x54]
mov dword [ebx + 8], ecx
mov eax, dword [edx + 0x48]
movzx ecx, word [edx + 0x52]
shl eax, 0x10
xor ecx, eax
xor ecx, dword [esi + 0xc]
add esi, 0x10
xor ecx, dword [edx + 0x5c]
mov dword [ebx + 0xc], ecx
add ebx, 0x10
sub dword [ebp - 8], 1
lea ecx, [edx + 0x44]
jne 0x4bd600
mov ecx, dword [ebp - 0xc]
mov dword [ebp + 0xc], edi
mov dword [ebp - 8], esi
mov dword [ebp + 8], ebx
test edi, edi
je 0x4bd812
call fcn.004bd130
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x58]
mov ecx, esi
mov edi, dword [eax + 0x50]
mov eax, edi
shl eax, 0x10
shr ecx, 0x10
xor ecx, eax
shl esi, 0x10
mov eax, dword [ebp - 0xc]
shr edi, 0x10
xor ecx, dword [eax]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x60]
mov eax, edx
shr eax, 0x10
xor esi, eax
shl edx, 0x10
xor esi, dword [ecx + 0x4c]
mov ecx, dword [ecx + 0x48]
mov eax, ecx
shr eax, 0x10
xor edx, eax
shl ecx, 0x10
mov eax, dword [ebp - 4]
xor edi, ecx
mov dword [ebp - 0x24], esi
xor edi, dword [eax + 0x5c]
xor edx, dword [eax + 0x54]
xor eax, eax
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20], edx
test edi, edi
je 0x4bd812
cmp edi, 8
jb 0x4bd7f0
lea edx, [edi - 1]
lea ecx, [ebp + edi - 0x29]
add edx, ebx
cmp ebx, ecx
ja 0x4bd70e
lea ecx, [ebp - 0x28]
cmp edx, ecx
jae 0x4bd7f0
mov esi, dword [ebp - 8]
lea ecx, [esi - 1]
add ecx, edi
cmp ebx, ecx
ja 0x4bd722
cmp edx, esi
jae 0x4bd7f3
cmp edi, 0x40
jb 0x4bd7c8
lea edx, [esi + 0x30]
mov ecx, edi
mov edi, esi
and ecx, 0xffffffc0
lea esi, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
sub esi, ebx
lea ecx, [ebx + 0x10]
mov dword [ebp - 0xc], esi
sub edi, ebx
lea esi, [ebp - 0x18]
mov dword [ebp - 0x10], edi
sub esi, ebx
mov dword [ebp - 4], esi
lea esi, [ebp - 8]
sub esi, ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x14], esi
mov esi, edi
nop dword [eax]
movups xmm0, xmmword [edx - 0x30]
mov edi, dword [ebp - 4]
lea edx, [edx + 0x40]
movups xmm1, xmmword [ebp + eax - 0x28]
add eax, 0x40
lea ecx, [ecx + 0x40]
xorps xmm1, xmm0
movups xmmword [ecx - 0x50], xmm1
movups xmm0, xmmword [ecx + esi - 0x40]
movups xmm1, xmmword [ecx + ebx - 0x40]
xorps xmm1, xmm0
movups xmmword [ecx - 0x40], xmm1
movups xmm0, xmmword [edx - 0x50]
movups xmm1, xmmword [ecx + edi - 0x40]
mov edi, dword [ebp - 0x14]
xorps xmm1, xmm0
movups xmmword [ecx - 0x30], xmm1
movups xmm1, xmmword [ecx + edi - 0x40]
mov edi, dword [ebp + 0xc]
movups xmm0, xmmword [edx - 0x40]
xorps xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
cmp eax, dword [ebp - 0x18]
jb 0x4bd760
mov ebx, dword [ebp + 8]
mov ecx, edi
mov esi, dword [ebp - 8]
and cl, 0x3f
cmp cl, 8
jb 0x4bd7ea
mov ecx, edi
and ecx, 0xfffffff8
nop dword [eax]
movq xmm1, qword [esi + eax]
movq xmm0, qword [ebp + eax - 0x28]
xorps xmm1, xmm0
movq qword [ebx + eax], xmm1
add eax, 8
cmp eax, ecx
jb 0x4bd7d0
cmp eax, edi
jae 0x4bd812
jmp 0x4bd7f3
mov esi, dword [ebp - 8]
lea ecx, [ebp - 0x28]
sub esi, ecx
sub ebx, ecx
nop word [eax + eax]
lea edx, [ebp - 0x28]
add edx, eax
inc eax
mov cl, byte [edx + esi]
xor cl, byte [edx]
mov byte [edx + ebx], cl
cmp eax, edi
jb 0x4bd800
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret