Function at 0x4d2d60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x18]
mov esi, 0xffffffe0
mov edx, dword [edi + 0x38]
mov ecx, dword [edi + 0x3c]
add edx, ebx
adc ecx, 0
xor eax, eax
cmp esi, edx
mov esi, 0xf
sbb esi, ecx
jb 0x4d34f9
mov eax, dword [edi + 0x168]
mov dword [edi + 0x38], edx
mov dword [edi + 0x3c], ecx
mov esi, edi
cmp dword [edi + 0x174], 0
mov dword [esp + 0x14], eax
je 0x4d2e42
movdqu xmm0, xmmword [esi + 0x40]
pxor xmm2, xmm2
lea edx, [esi + 0x60]
lea ecx, [esp + 0x20]
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 + 0x20], xmm0
call fcn.004d4ba0
movdqu xmm0, xmmword [esp + 0x20]
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 [esi + 0x40], xmm0
mov dword [esi + 0x174], 0
mov eax, dword [esi + 0x170]
mov edi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
test eax, eax
je 0x4d2f15
test ebx, ebx
je 0x4d34ee
nop
movzx ecx, byte [esi + eax + 0x10]
xor cl, byte [edx]
inc edx
mov byte [edi], cl
xor byte [esi + eax + 0x40], cl
inc eax
inc edi
and eax, 0xf
cmp ebx, 1
lea ebx, [ebx - 1]
je 0x4d2e7f
test eax, eax
jne 0x4d2e60
test eax, eax
jne 0x4d34ee
movdqu xmm0, xmmword [esi + 0x40]
pxor xmm2, xmm2
mov dword [esp + 4], edx
lea edx, [esi + 0x60]
lea ecx, [esp + 0x20]
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 + 0x20], xmm0
call fcn.004d4ba0
movdqu xmm0, xmmword [esp + 0x20]
pxor xmm2, xmm2
mov edx, dword [esp + 4]
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 [esi + 0x40], xmm0
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0x14]
cmp ebx, 0xc00
mov dword [esp + 8], edi
bswap ecx
mov dword [esp + 0x18], ecx
jb 0x4d319c
lea ecx, [esi + 0x10]
add esi, 0x60
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x38], esi
jmp 0x4d2fae
movdqu xmm0, xmmword [esp + 0x20]
mov ebx, dword [esp + 0xc]
pxor xmm2, xmm2
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 4]
movdqa xmm1, xmm0
punpckhbw xmm0, xmm2
add ebx, 0xfffff400
punpcklbw xmm1, xmm2
pshufd xmm0, xmm0, 0x4e
cmp ebx, 0xbff
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 [esi + 0x40], xmm0
jbe 0x4d3183
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 8]
mov edi, 0xfffff410
mov dword [esp + 0xc], ebx
mov dword [esp], edx
inc esi
mov dword [esp + 0x10], ecx
add ecx, 0xfffff420
mov dword [esp + 0x34], ecx
nop word cs:[eax + eax]
nop dword [eax + eax]
push dword [ebp + 0xc]
push dword [esp + 0x20]
mov ebx, dword [ebp + 8]
push ebx
call eax
add esp, 0xc
mov eax, esi
mov ecx, dword [esp]
mov edx, dword [esp + 0x10]
bswap eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0x10]
xor eax, dword [ecx + edi + 0xbf0]
mov dword [edx + edi + 0xbf0], eax
mov eax, dword [ebx + 0x14]
xor eax, dword [ecx + edi + 0xbf4]
mov dword [edx + edi + 0xbf4], eax
mov eax, dword [ebx + 0x18]
xor eax, dword [ecx + edi + 0xbf8]
mov dword [edx + edi + 0xbf8], eax
mov eax, dword [ebx + 0x1c]
xor eax, dword [ecx + edi + 0xbfc]
test edi, edi
mov dword [edx + edi + 0xbfc], eax
je 0x4d3060
add dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x14]
add edi, 0x10
inc esi
jmp 0x4d2fe0
mov eax, dword [ebp + 8]
pxor xmm3, xmm3
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x20]
movdqu xmm0, xmmword [eax + 0x40]
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 + 0x20], xmm2
movdqu xmm1, xmmword [esi + edi]
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 + 0x20], xmm1
call fcn.004d4ba0
lea eax, [esi + edi + 0xc00]
mov ebx, dword [esp + 0x34]
mov esi, 0xfffff420
mov dword [esp + 8], eax
mov eax, dword [esp]
lea eax, [eax + edi + 0xc00]
mov dword [esp + 4], eax
nop dword [eax + eax]
movdqu xmm1, xmmword [ebx]
pxor xmm3, xmm3
movdqu xmm0, xmmword [esp + 0x20]
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x20]
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 + 0x20], xmm1
call fcn.004d4ba0
test esi, esi
je 0x4d2f50
add esi, 0x10
add ebx, 0x10
jmp 0x4d3120
mov ecx, dword [esp + 0x10]
mov edx, dword [esp]
lea ecx, [ecx + edi + 0xc00]
lea edx, [edx + edi + 0xc00]
mov dword [esp + 8], ecx
mov ecx, ebx
and ecx, 0xfffffff0
je 0x4d323b
cmp ebx, 0x10
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], ebx
jb 0x4d3244
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 8]
mov ebx, dword [esp + 0x18]
lea eax, [esi + 0x10]
mov dword [esp], eax
nop word [eax + eax]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], edx
push dword [ebp + 0xc]
push dword [esp + 4]
mov esi, dword [ebp + 8]
push esi
call dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
add esp, 0xc
inc ebx
add ecx, 0xfffffff0
mov eax, ebx
bswap eax
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x10]
xor eax, dword [edx]
mov dword [edi], eax
mov eax, dword [esi + 0x14]
xor eax, dword [edx + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 0x18]
xor eax, dword [edx + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0x1c]
xor eax, dword [edx + 0xc]
add edx, 0x10
mov dword [edi + 0xc], eax
add edi, 0x10
cmp ecx, 0xf
ja 0x4d31d0
mov esi, dword [ebp + 8]
mov dword [esp + 0x18], ebx
mov dword [esp + 4], edx
mov dword [esp + 0xc], ecx
jmp 0x4d324c
mov edi, dword [esp + 8]
jmp 0x4d3393
mov edi, dword [esp + 8]
mov dword [esp + 4], edx
mov ecx, esi
pxor xmm3, xmm3
mov ebx, dword [esp + 0x10]
mov eax, edi
add esi, 0x60
movdqu xmm0, xmmword [ecx + 0x40]
lea ecx, [esp + 0x20]
mov edx, esi
sub eax, ebx
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 + 0x20], xmm2
movdqu xmm1, xmmword [eax]
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 + 0x20], xmm1
call fcn.004d4ba0
cmp ebx, 0x10
je 0x4d3347
mov eax, ebx
mov ebx, 0x10
sub ebx, eax
nop
movdqu xmm1, xmmword [edi + ebx]
pxor xmm3, xmm3
movdqu xmm0, xmmword [esp + 0x20]
lea ecx, [esp + 0x20]
mov edx, esi
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 + 0x20], xmm1
call fcn.004d4ba0
add ebx, 0x10
jne 0x4d32f0
movdqu xmm0, xmmword [esp + 0x20]
pxor xmm2, xmm2
mov esi, dword [ebp + 8]
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 4]
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 [esi + 0x40], xmm0
mov ecx, dword [ebp + 0xc]
test ebx, ebx
je 0x4d34ec
mov dword [esp + 8], edi
mov edi, esi
add esi, 0x10
mov dword [esp + 4], edx
push ecx
push esi
push edi
call eax
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, ebx
mov dword [esp], 0
mov dword [esp + 0xc], ebx
inc eax
bswap eax
mov dword [edi + 0xc], eax
xor eax, eax
cmp ebx, 0x10
jb 0x4d34b9
mov ecx, dword [esp + 8]
mov dword [esp], esi
lea edx, [ecx + ebx]
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 8]
lea edi, [edx + ebx + 0x40]
mov edx, dword [esp + 4]
cmp ecx, edi
mov dword [esp + 0x34], edi
setb byte [esp + 0x38]
lea esi, [edx + ebx]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x10]
cmp esi, dword [esp]
mov esi, dword [esp + 0x1c]
seta byte [esp + 0x14]
cmp ecx, esi
setb byte [esp + 0x18]
cmp edx, dword [esp + 0x10]
mov cl, byte [esp + 0x14]
setb byte [esp + 0x10]
cmp esi, dword [esp]
mov dword [esp], 0
seta byte [esp + 0x1c]
cmp edx, dword [esp + 0x34]
setb dl
test byte [esp + 0x38], cl
mov ecx, ebx
jne 0x4d34b9
mov cl, byte [esp + 0x10]
mov dword [esp], 0
and byte [esp + 0x18], cl
mov ecx, ebx
jne 0x4d34b9
and byte [esp + 0x1c], dl
mov ecx, ebx
mov dword [esp], 0
jne 0x4d34b9
mov ecx, ebx
mov edi, dword [ebp + 8]
mov edx, dword [esp + 4]
xor esi, esi
and ecx, 0xfffffff0
mov dword [esp], ecx
mov ecx, ebx
mov ebx, dword [esp + 8]
and ecx, 0xf
nop
movdqu xmm0, xmmword [edx + esi]
movdqu xmm1, xmmword [edi + esi + 0x10]
pxor xmm1, xmm0
movdqu xmmword [ebx + esi], xmm1
movdqu xmm0, xmmword [edi + esi + 0x40]
pxor xmm0, xmm1
movdqu xmmword [edi + esi + 0x40], xmm0
add esi, 0x10
cmp dword [esp], esi
jne 0x4d3480
mov ebx, dword [esp + 0xc]
cmp ebx, dword [esp]
jne 0x4d34b9
mov eax, ebx
jmp 0x4d34e7
mov ebx, dword [esp + 4]
mov edx, dword [esp]
mov esi, dword [ebp + 8]
mov edi, dword [esp + 8]
add ebx, edx
lea esi, [esi + edx + 0x40]
add edi, edx
nop
movzx edx, byte [esi + eax - 0x30]
xor dl, byte [ebx + eax]
mov byte [edi + eax], dl
xor byte [esi + eax], dl
inc eax
cmp ecx, eax
jne 0x4d34d0
mov eax, dword [esp + 0xc]
mov esi, dword [ebp + 8]
jmp 0x4d34ee
xor eax, eax
mov dword [esi + 0x170], eax
mov eax, 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret