Function at 0x5d26c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [edi + 0x174], 0
mov dword [edi + 0x170], 0
pxor xmm0, xmm0
movdqa xmmword [edi], xmm0
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x40], xmm0
cmp ebx, 0xc
jne 0x5d2727
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 8]
mov dword [edi + 8], eax
movq xmm0, qword [edx]
movq qword [edi], xmm0
mov byte [edi + 0xf], 1
mov esi, edi
mov edi, 2
jmp 0x5d2abd
cmp ebx, 0x10
jb 0x5d28f9
xor edx, edx
mov ah, dl
mov al, dl
mov dword [esp + 0x20], eax
mov ah, dl
mov al, dl
mov dword [esp + 0xc], eax
mov ch, dl
mov cl, dl
mov ah, dl
mov dword [esp + 0x2c], 0
mov al, dl
add edi, 0x60
mov dword [esp + 0x34], edi
mov dword [esp + 8], ebx
xor edx, edx
xor esi, esi
xor ebx, ebx
mov dword [esp + 0x30], 0
mov dword [esp + 4], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
nop word cs:[eax + eax]
mov dword [esp + 0x38], edx
mov edx, dword [esp]
xor al, byte [edx]
mov edi, dword [ebp + 8]
mov byte [edi], al
xor ah, byte [edx + 1]
mov byte [edi + 1], ah
mov eax, dword [esp + 0x28]
xor al, byte [edx + 2]
mov byte [edi + 2], al
mov eax, dword [esp + 0x24]
xor al, byte [edx + 3]
mov byte [edi + 3], al
xor cl, byte [edx + 4]
mov byte [edi + 4], cl
xor ch, byte [edx + 5]
mov byte [edi + 5], ch
mov eax, dword [esp + 4]
xor al, byte [edx + 6]
mov byte [edi + 6], al
mov eax, dword [esp + 0x30]
xor al, byte [edx + 7]
mov byte [edi + 7], al
mov eax, dword [esp + 0xc]
xor al, byte [edx + 8]
mov byte [edi + 8], al
xor ah, byte [edx + 9]
mov byte [edi + 9], ah
xor bl, byte [edx + 0xa]
mov byte [edi + 0xa], bl
mov eax, esi
xor al, byte [edx + 0xb]
mov byte [edi + 0xb], al
mov eax, dword [esp + 0x20]
xor al, byte [edx + 0xc]
mov byte [edi + 0xc], al
xor ah, byte [edx + 0xd]
mov byte [edi + 0xd], ah
mov eax, dword [esp + 0x38]
xor al, byte [edx + 0xe]
mov byte [edi + 0xe], al
mov eax, dword [esp + 0x2c]
xor al, byte [edx + 0xf]
mov byte [edi + 0xf], al
movdqu xmm0, xmmword [edi]
movdqa xmm1, xmm0
pxor xmm2, xmm2
punpcklbw xmm1, xmm2
pshufd xmm1, xmm1, 0x4e
pshuflw xmm1, xmm1, 0x1b
pshufhw xmm1, xmm1, 0x1b
punpckhbw xmm0, xmm2
pshufd xmm0, xmm0, 0x4e
pshuflw xmm0, xmm0, 0x1b
pshufhw xmm0, xmm0, 0x1b
packuswb xmm0, xmm1
movdqu xmmword [esp + 0x10], xmm0
lea ecx, [esp + 0x10]
mov edx, dword [esp + 0x34]
call fcn.005d4d50
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
bswap eax
bswap ecx
mov dword [edi + 4], ecx
mov dword [edi], eax
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
bswap esi
bswap edx
mov dword [edi + 8], edx
mov ebx, edx
mov dword [edi + 0xc], esi
add dword [esp], 0x10
add dword [esp + 8], 0xfffffff0
mov edx, ecx
shr edx, 0x10
mov dword [esp + 4], edx
mov edx, eax
shr edx, 0x10
mov dword [esp + 0x28], edx
mov edx, ecx
shr edx, 0x18
mov dword [esp + 0x30], edx
mov edx, eax
shr edx, 0x18
mov dword [esp + 0x24], edx
mov edx, esi
shr edx, 0x10
mov edi, ebx
shr ebx, 0x10
mov dword [esp + 0x20], esi
shr esi, 0x18
mov dword [esp + 0x2c], esi
mov dword [esp + 0xc], edi
shr edi, 0x18
mov esi, edi
cmp dword [esp + 8], 0xf
ja 0x5d2790
mov dword [esp + 4], eax
mov ebx, dword [ebp + 0x14]
mov edx, dword [esp + 8]
mov edi, dword [ebp + 8]
mov eax, dword [esp + 0x20]
test edx, edx
jne 0x5d2917
jmp 0x5d2a26
mov dword [esp + 4], 0
xor ecx, ecx
mov dword [esp + 0xc], 0
xor eax, eax
mov edx, ebx
test edx, edx
je 0x5d2a26
xor eax, eax
cmp edx, 8
jb 0x5d295e
mov ecx, dword [esp]
add ecx, edx
cmp ecx, edi
jbe 0x5d292f
lea ecx, [edi + edx]
cmp dword [esp], ecx
jb 0x5d295e
mov eax, edx
and eax, 8
xor ecx, ecx
mov esi, dword [esp]
nop dword [eax]
movq xmm0, qword [esi + ecx]
movq xmm1, qword [edi + ecx]
pxor xmm1, xmm0
movq qword [edi + ecx], xmm1
add ecx, 8
cmp eax, ecx
jne 0x5d2940
cmp edx, eax
je 0x5d29b9
mov ecx, eax
not ecx
add ecx, edx
mov dword [esp + 8], edx
and edx, 3
je 0x5d297b
mov esi, dword [esp]
movzx ebx, byte [esi + eax]
xor byte [edi + eax], bl
inc eax
dec edx
jne 0x5d2970
cmp ecx, 3
mov ebx, dword [ebp + 0x14]
mov edx, dword [esp + 8]
jb 0x5d29b9
mov esi, dword [esp]
nop word [eax + eax]
movzx ecx, byte [esi + eax]
xor byte [edi + eax], cl
movzx ecx, byte [esi + eax + 1]
xor byte [edi + eax + 1], cl
movzx ecx, byte [esi + eax + 2]
xor byte [edi + eax + 2], cl
movzx ecx, byte [esi + eax + 3]
xor byte [edi + eax + 3], cl
add eax, 4
cmp edx, eax
jne 0x5d2990
lea edx, [edi + 0x60]
movdqu xmm0, xmmword [edi]
pxor xmm1, xmm1
movdqa xmm2, xmm0
punpcklbw xmm2, xmm1
pshufd xmm2, xmm2, 0x4e
pshuflw xmm2, xmm2, 0x1b
pshufhw xmm2, xmm2, 0x1b
punpckhbw xmm0, xmm1
pshufd xmm0, xmm0, 0x4e
pshuflw xmm0, xmm0, 0x1b
pshufhw xmm0, xmm0, 0x1b
packuswb xmm0, xmm2
movdqu xmmword [esp + 0x10], xmm0
lea ecx, [esp + 0x10]
call fcn.005d4d50
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
bswap eax
bswap ecx
mov dword [edi + 4], ecx
mov dword [esp + 4], eax
mov dword [edi], eax
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
bswap eax
bswap edx
mov dword [esp + 0xc], edx
mov edx, eax
mov eax, ebx
shl ebx, 3
bswap ebx
xor ebx, edx
shr eax, 0x1d
bswap eax
xor eax, dword [esp + 0xc]
mov dword [edi + 0xc], ebx
mov dword [edi + 8], eax
bswap eax
mov dword [esp + 0x14], eax
bswap ebx
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 4]
bswap eax
mov dword [esp + 0x1c], eax
bswap ecx
mov dword [esp + 0x18], ecx
lea edx, [edi + 0x60]
lea ecx, [esp + 0x10]
call fcn.005d4d50
pxor xmm0, xmm0
movdqu xmm1, xmmword [esp + 0x10]
movdqa xmm2, xmm1
punpckhbw xmm2, xmm0
pshufd xmm2, xmm2, 0x4e
pshuflw xmm2, xmm2, 0x1b
pshufhw xmm2, xmm2, 0x1b
punpcklbw xmm1, xmm0
pshufd xmm0, xmm1, 0x4e
pshuflw xmm0, xmm0, 0x1b
pshufhw xmm0, xmm0, 0x1b
movdqa xmm1, xmm0
packuswb xmm1, xmm2
packuswb xmm2, xmm0
movdqu xmmword [edi], xmm2
pshufd xmm0, xmm1, 0x55
mov esi, edi
movd edi, xmm0
bswap edi
inc edi
mov ecx, dword [ebp + 0xc]
lea eax, [esi + 0x20]
push ecx
push eax
push esi
call dword [esi + 0x168]
add esp, 0xc
bswap edi
mov dword [esi + 0xc], edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret