Function at 0x4d2a70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [edi + 0x38]
or ecx, dword [edi + 0x3c]
jne 0x4d2d4d
mov ebx, dword [ebp + 0x10]
mov edx, dword [edi + 0x30]
mov ecx, dword [edi + 0x34]
add edx, ebx
mov esi, edx
adc ecx, 0
neg esi
mov esi, 0x20000000
sbb esi, ecx
jb 0x4d2d4d
mov dword [edi + 0x30], edx
mov dword [edi + 0x34], ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [edi + 0x174]
test eax, eax
je 0x4d2b76
test ebx, ebx
je 0x4d2d42
nop dword [eax + eax]
movzx ecx, byte [esi]
inc esi
xor byte [edi + eax + 0x40], cl
inc eax
and eax, 0xf
cmp ebx, 1
lea ebx, [ebx - 1]
je 0x4d2ae8
test eax, eax
jne 0x4d2ad0
test eax, eax
jne 0x4d2d42
movdqu xmm0, xmmword [edi + 0x40]
pxor xmm2, xmm2
lea edx, [edi + 0x60]
lea ecx, [esp + 8]
movdqa xmm1, xmm0
punpckhbw xmm0, xmm2
punpcklbw xmm1, xmm2
pshufd xmm0, xmm0, 0x4e
pshufd xmm1, xmm1, 0x4e
pshuflw xmm0, xmm0, 0x1b
pshuflw xmm1, xmm1, 0x1b
pshufhw xmm0, xmm0, 0x1b
pshufhw xmm1, xmm1, 0x1b
packuswb xmm0, xmm1
movdqu xmmword [esp + 8], xmm0
call fcn.004d4ba0
movdqu xmm0, xmmword [esp + 8]
pxor xmm2, xmm2
movdqa xmm1, xmm0
punpckhbw xmm0, xmm2
punpcklbw xmm1, xmm2
pshufd xmm0, xmm0, 0x4e
pshufd xmm1, xmm1, 0x4e
pshuflw xmm0, xmm0, 0x1b
pshuflw xmm1, xmm1, 0x1b
pshufhw xmm0, xmm0, 0x1b
pshufhw xmm1, xmm1, 0x1b
packuswb xmm0, xmm1
movdqu xmmword [edi + 0x40], xmm0
mov eax, ebx
and eax, 0xfffffff0
je 0x4d2cd6
movdqu xmm0, xmmword [edi + 0x40]
pxor xmm3, xmm3
lea edx, [edi + 0x60]
lea ecx, [esp + 8]
mov dword [esp + 0x1c], ebx
mov edi, eax
mov dword [esp + 0x20], edx
movdqa xmm1, xmm0
movdqa xmm2, xmm0
punpcklbw xmm1, xmm3
punpckhbw xmm2, xmm3
pshufd xmm1, xmm1, 0x4e
pshufd xmm2, xmm2, 0x4e
pshuflw xmm1, xmm1, 0x1b
pshuflw xmm2, xmm2, 0x1b
pshufhw xmm1, xmm1, 0x1b
pshufhw xmm2, xmm2, 0x1b
packuswb xmm2, xmm1
movdqu xmmword [esp + 8], xmm2
movdqu xmm1, xmmword [esi]
pxor xmm1, xmm0
movdqa xmm0, xmm1
punpckhbw xmm1, xmm3
punpcklbw xmm0, xmm3
pshufd xmm1, xmm1, 0x4e
pshufd xmm0, xmm0, 0x4e
pshuflw xmm1, xmm1, 0x1b
pshuflw xmm0, xmm0, 0x1b
pshufhw xmm1, xmm1, 0x1b
pshufhw xmm0, xmm0, 0x1b
packuswb xmm1, xmm0
movdqu xmmword [esp + 8], xmm1
call fcn.004d4ba0
cmp edi, 0x10
mov dword [esp + 4], edi
je 0x4d2c8b
mov ebx, 0x10
lea edi, [esi + 0x10]
sub ebx, dword [esp + 4]
nop dword [eax]
movdqu xmm1, xmmword [edi]
pxor xmm3, xmm3
movdqu xmm0, xmmword [esp + 8]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 8]
movdqa xmm2, xmm1
punpckhbw xmm1, xmm3
punpcklbw xmm2, xmm3
pshufd xmm1, xmm1, 0x4e
pshufd xmm2, xmm2, 0x4e
pshuflw xmm1, xmm1, 0x1b
pshuflw xmm2, xmm2, 0x1b
pshufhw xmm1, xmm1, 0x1b
pshufhw xmm2, xmm2, 0x1b
packuswb xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [esp + 8], xmm1
call fcn.004d4ba0
add edi, 0x10
add ebx, 0x10
jne 0x4d2c30
movdqu xmm0, xmmword [esp + 8]
pxor xmm2, xmm2
mov ebx, dword [esp + 0x1c]
mov edi, dword [ebp + 8]
add esi, dword [esp + 4]
movdqa xmm1, xmm0
punpckhbw xmm0, xmm2
and ebx, 0xf
punpcklbw xmm1, xmm2
pshufd xmm0, xmm0, 0x4e
pshufd xmm1, xmm1, 0x4e
pshuflw xmm0, xmm0, 0x1b
pshuflw xmm1, xmm1, 0x1b
pshufhw xmm0, xmm0, 0x1b
pshufhw xmm1, xmm1, 0x1b
packuswb xmm0, xmm1
movdqu xmmword [edi + 0x40], xmm0
xor eax, eax
test ebx, ebx
je 0x4d2d42
cmp ebx, 0x20
jb 0x4d2d34
lea ecx, [edi + 0x40]
lea edx, [esi + ebx]
cmp edx, ecx
jbe 0x4d2cf3
lea ecx, [edi + ebx + 0x40]
cmp esi, ecx
jb 0x4d2d34
mov eax, ebx
xor ecx, ecx
and eax, 0xffffffe0
nop word [eax + eax]
movdqu xmm0, xmmword [esi + ecx]
movdqu xmm2, xmmword [edi + ecx + 0x40]
movdqu xmm1, xmmword [esi + ecx + 0x10]
movdqu xmm3, xmmword [edi + ecx + 0x50]
pxor xmm2, xmm0
pxor xmm3, xmm1
movdqu xmmword [edi + ecx + 0x40], xmm2
movdqu xmmword [edi + ecx + 0x50], xmm3
add ecx, 0x20
cmp eax, ecx
jne 0x4d2d00
jmp 0x4d2d3c
mov cl, byte [esi + eax]
xor byte [edi + eax + 0x40], cl
inc eax
cmp ebx, eax
jne 0x4d2d34
mov eax, ebx
mov dword [edi + 0x174], eax
mov eax, 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret