Function at 0x4d3510
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
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 0x4d3c69
mov esi, dword [edi + 0x168]
mov dword [edi + 0x38], edx
mov dword [edi + 0x3c], ecx
cmp dword [edi + 0x174], 0
je 0x4d35ec
movdqu xmm0, xmmword [edi + 0x40]
pxor xmm2, xmm2
lea edx, [edi + 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 [edi + 0x40], xmm0
mov dword [edi + 0x174], 0
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x10], esi
mov dword [esp + 4], eax
mov eax, dword [edi + 0x170]
test eax, eax
je 0x4d36e6
test ebx, ebx
je 0x4d3c5e
mov edi, dword [esp + 4]
mov esi, edx
mov edx, dword [ebp + 8]
movzx ecx, byte [edi]
movzx edx, byte [edx + eax + 0x10]
inc edi
xor dl, cl
mov byte [esi], dl
mov edx, esi
mov esi, dword [ebp + 8]
inc edx
xor byte [esi + eax + 0x40], cl
inc eax
mov dword [esp + 4], edi
and eax, 0xf
cmp ebx, 1
lea ebx, [ebx - 1]
je 0x4d3644
test eax, eax
jne 0x4d3610
mov edi, dword [ebp + 8]
test eax, eax
jne 0x4d3c5e
mov ecx, dword [ebp + 8]
pxor xmm2, xmm2
mov eax, dword [ebp + 8]
mov edi, edx
movdqu xmm0, xmmword [ecx + 0x40]
lea edx, [eax + 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, edi
mov edi, dword [ebp + 8]
mov esi, dword [esp + 0x10]
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, dword [edi + 0xc]
cmp ebx, 0xc00
bswap eax
mov dword [esp + 0xc], eax
jb 0x4d391b
lea eax, [edi + 0x60]
mov dword [esp], eax
lea eax, [edi + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 4]
jmp 0x4d3734
mov ebx, dword [esp + 0x18]
mov dword [esp + 0xc], edi
mov edi, eax
mov eax, ecx
mov esi, edx
sub eax, edi
sub edx, edi
add ebx, 0xfffff400
cmp ebx, 0xbff
jbe 0x4d3909
mov edi, dword [ebp + 8]
pxor xmm3, xmm3
mov dword [esp + 0x1c], edx
mov edx, dword [esp]
lea ecx, [esp + 0x20]
mov dword [esp + 4], eax
movdqu xmm0, xmmword [edi + 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 [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
mov esi, 0xfffff420
nop dword [eax]
mov eax, dword [esp + 4]
pxor xmm3, xmm3
movdqu xmm0, xmmword [esp + 0x20]
mov edx, dword [esp]
lea ecx, [esp + 0x20]
movdqu xmm1, xmmword [eax + esi + 0xbf0]
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 0x4d3840
add esi, 0x10
jmp 0x4d37d0
movdqu xmm0, xmmword [esp + 0x20]
pxor xmm2, xmm2
mov esi, 0x10
mov dword [esp + 0x18], ebx
mov dword [esp + 8], 0xfffffff0
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 edi, dword [esp + 0xc]
inc edi
nop word cs:[eax + eax]
nop dword [eax]
push dword [ebp + 0xc]
push dword [esp + 0x34]
mov ebx, dword [ebp + 8]
push ebx
call dword [esp + 0x1c]
add esp, 0xc
mov eax, edi
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x1c]
bswap eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0x10]
xor eax, dword [ecx + esi - 0x10]
mov dword [edx + esi - 0x10], eax
mov eax, dword [ebx + 0x14]
xor eax, dword [ecx + esi - 0xc]
mov dword [edx + esi - 0xc], eax
mov eax, dword [ebx + 0x18]
xor eax, dword [ecx + esi - 8]
mov dword [edx + esi - 8], eax
mov eax, dword [ebx + 0x1c]
xor eax, dword [ecx + esi - 4]
mov dword [edx + esi - 4], eax
mov eax, dword [esp + 8]
cmp eax, 0xfffff400
je 0x4d3710
add eax, 0xfffffff0
inc edi
add esi, 0x10
mov dword [esp + 8], eax
jmp 0x4d38a0
mov eax, dword [esp + 8]
sub esi, eax
sub ecx, eax
mov edx, esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], ecx
mov edi, ebx
and edi, 0xfffffff0
je 0x4d3b01
mov eax, dword [ebp + 8]
pxor xmm3, xmm3
mov dword [esp + 8], edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], ebx
movdqu xmm0, xmmword [eax + 0x40]
lea esi, [eax + 0x60]
mov eax, dword [esp + 4]
mov edx, esi
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 edi, 0x10
je 0x4d3a39
mov eax, dword [esp + 4]
mov ebx, 0x10
sub ebx, edi
lea edi, [eax + 0x10]
nop word cs:[eax + eax]
nop dword [eax]
movdqu xmm1, xmmword [edi]
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 edi, 0x10
add ebx, 0x10
jne 0x4d39e0
movdqu xmm0, xmmword [esp + 0x20]
pxor xmm2, xmm2
mov ebx, dword [esp + 0x18]
mov edi, dword [ebp + 8]
movdqa xmm1, xmm0
punpckhbw xmm0, xmm2
cmp ebx, 0x10
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
jb 0x4d3b06
lea eax, [edi + 0x10]
mov edi, dword [esp + 4]
mov edx, dword [esp + 8]
mov esi, dword [esp + 0xc]
mov dword [esp], eax
nop dword [eax + eax]
mov dword [esp + 8], edx
push dword [ebp + 0xc]
push dword [esp + 4]
mov eax, dword [ebp + 8]
push eax
call dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
add esp, 0xc
mov ecx, dword [ebp + 8]
inc esi
add ebx, 0xfffffff0
mov eax, esi
bswap eax
mov dword [ecx + 0xc], eax
mov eax, dword [ecx + 0x10]
xor eax, dword [edi]
mov dword [edx], eax
mov eax, dword [ecx + 0x14]
xor eax, dword [edi + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 0x18]
xor eax, dword [edi + 8]
mov dword [edx + 8], eax
mov eax, dword [ecx + 0x1c]
xor eax, dword [edi + 0xc]
add edi, 0x10
mov dword [edx + 0xc], eax
add edx, 0x10
cmp ebx, 0xf
ja 0x4d3aa0
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], edi
mov edi, dword [ebp + 8]
jmp 0x4d3b0e
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 8]
mov ecx, dword [ebp + 0xc]
test ebx, ebx
je 0x4d3c5c
mov eax, esi
lea esi, [edi + 0x10]
mov dword [esp + 8], edx
push ecx
push esi
push edi
call eax
add esp, 0xc
mov eax, dword [esp + 0xc]
mov ecx, ebx
mov dword [esp], 0
mov dword [esp + 0x18], ebx
inc eax
bswap eax
mov dword [edi + 0xc], eax
xor eax, eax
cmp ebx, 0x10
jb 0x4d3c29
lea ecx, [edi + ebx + 0x40]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 8]
lea edx, [ecx + ebx]
mov dword [esp], edx
mov edx, dword [esp + 4]
cmp dword [esp], esi
lea edi, [edx + ebx]
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0xc]
seta byte [esp + 0x10]
cmp ecx, edi
setb byte [esp + 0x30]
cmp dword [esp + 0x1c], esi
seta byte [esp + 0x17]
cmp edx, edi
mov edi, dword [ebp + 8]
setb byte [esp + 0xc]
cmp ecx, dword [esp + 0x1c]
mov cl, byte [esp + 0x30]
setb byte [esp + 0x1c]
cmp edx, dword [esp]
mov dword [esp], 0
setb dl
test byte [esp + 0x10], cl
mov ecx, ebx
jne 0x4d3c29
mov cl, byte [esp + 0xc]
mov dword [esp], 0
and byte [esp + 0x17], cl
mov ecx, ebx
jne 0x4d3c29
and byte [esp + 0x1c], dl
mov ecx, ebx
mov dword [esp], 0
jne 0x4d3c29
mov ecx, ebx
mov edx, dword [esp + 8]
xor esi, esi
and ecx, 0xfffffff0
mov dword [esp], ecx
mov ecx, ebx
mov ebx, dword [esp + 4]
and ecx, 0xf
nop
movdqu xmm0, xmmword [ebx + esi]
movdqu xmm1, xmmword [edi + esi + 0x10]
movdqu xmm2, xmmword [edi + esi + 0x40]
pxor xmm2, xmm0
pxor xmm1, xmm0
movdqu xmmword [edi + esi + 0x40], xmm2
movdqu xmmword [edx + esi], xmm1
add esi, 0x10
cmp dword [esp], esi
jne 0x4d3bf0
mov ebx, dword [esp + 0x18]
cmp ebx, dword [esp]
jne 0x4d3c29
mov eax, ebx
jmp 0x4d3c5e
mov esi, edi
mov edx, dword [esp]
mov edi, dword [esp + 4]
mov ebx, dword [esp + 8]
add edi, edx
lea esi, [esi + edx + 0x40]
add ebx, edx
nop
movzx edx, byte [edi + eax]
xor byte [esi + eax], dl
xor dl, byte [esi + eax - 0x30]
mov byte [ebx + eax], dl
inc eax
cmp ecx, eax
jne 0x4d3c40
mov eax, dword [esp + 0x18]
mov edi, dword [ebp + 8]
jmp 0x4d3c5e
xor eax, eax
mov dword [edi + 0x170], eax
mov eax, 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret