Function at 0x5d3640
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ebx + 0x38]
add edx, dword [ebp + 0x18]
adc ecx, 0
xor eax, eax
mov edi, 0xffffffe0
cmp edi, edx
mov edi, 0xf
sbb edi, ecx
jb 0x5d3dd7
mov esi, dword [ebx + 0x168]
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], ecx
cmp dword [ebx + 0x174], 0
je 0x5d371a
lea edx, [ebx + 0x60]
movdqu xmm0, xmmword [ebx + 0x40]
pxor xmm2, xmm2
movdqa xmm1, xmm0
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 + 0x18], xmm0
lea ecx, [esp + 0x18]
call fcn.005d4d50
movdqu xmm0, xmmword [esp + 0x18]
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 [ebx + 0x40], xmm0
mov dword [ebx + 0x174], 0
mov edi, dword [ebp + 0x14]
mov eax, ebx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 4], ecx
mov eax, dword [ebx + 0x170]
test eax, eax
mov dword [esp + 0x14], esi
je 0x5d3814
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x5d3dc9
nop word cs:[eax + eax]
mov edx, dword [esp + 4]
movzx ecx, byte [edx]
inc edx
mov dword [esp + 4], edx
mov ebx, dword [ebp + 8]
movzx edx, byte [ebx + eax + 0x10]
xor dl, cl
mov byte [edi], dl
xor byte [ebx + eax + 0x40], cl
inc edi
lea ecx, [esi - 1]
inc eax
and eax, 0xf
je 0x5d377d
cmp esi, 1
mov esi, ecx
jne 0x5d3750
test eax, eax
jne 0x5d3dc9
mov ebx, dword [ebp + 8]
lea edx, [ebx + 0x60]
movdqu xmm0, xmmword [ebx + 0x40]
pxor xmm2, xmm2
movdqa xmm1, xmm0
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 + 0x18], xmm0
mov esi, ecx
lea ecx, [esp + 0x18]
call fcn.005d4d50
mov ecx, esi
movdqu xmm0, xmmword [esp + 0x18]
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 [ebx + 0x40], xmm0
jmp 0x5d3817
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0xc]
bswap edx
cmp ecx, 0xc00
mov esi, dword [esp + 4]
jb 0x5d39e8
mov dword [esp + 0xc], edx
lea ebx, [eax + 0x60]
add eax, 0x10
mov dword [esp + 8], eax
pxor xmm2, xmm2
mov eax, edi
mov dword [esp + 0x28], ebx
nop word [eax + eax]
mov dword [esp], ecx
mov dword [esp + 0x10], eax
mov ecx, esi
mov eax, dword [ebp + 8]
movdqu xmm0, xmmword [eax + 0x40]
movdqa xmm1, xmm0
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 + 0x18], xmm0
mov edi, 0xfffff400
lea esi, [esp + 0x18]
mov dword [esp + 4], ecx
nop word cs:[eax + eax]
movdqu xmm0, xmmword [ecx + edi + 0xc00]
movdqa xmm1, xmm0
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 xmm1, xmmword [esp + 0x18]
pxor xmm1, xmm0
movdqu xmmword [esp + 0x18], xmm1
mov ecx, esi
mov edx, ebx
call fcn.005d4d50
mov ecx, dword [esp + 4]
pxor xmm2, xmm2
add edi, 0x10
jne 0x5d38b0
movdqu xmm0, xmmword [esp + 0x18]
movdqa xmm1, xmm0
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
mov esi, dword [ebp + 8]
movdqu xmmword [esi + 0x40], xmm0
xor edi, edi
mov ebx, dword [esp + 0xc]
nop
push dword [ebp + 0xc]
push dword [esp + 0xc]
mov esi, dword [ebp + 8]
push esi
call dword [esp + 0x20]
mov edx, dword [esp + 0x10]
add esp, 0xc
inc ebx
mov eax, ebx
bswap eax
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x10]
xor eax, dword [edx + edi]
mov ecx, dword [esp + 0x10]
mov dword [ecx + edi], eax
mov eax, dword [esi + 0x14]
xor eax, dword [edx + edi + 4]
mov dword [ecx + edi + 4], eax
mov eax, dword [esi + 0x18]
xor eax, dword [edx + edi + 8]
mov dword [ecx + edi + 8], eax
mov eax, dword [esi + 0x1c]
xor eax, dword [edx + edi + 0xc]
mov dword [ecx + edi + 0xc], eax
add edi, 0x10
cmp edi, 0xc00
jne 0x5d3950
mov dword [esp + 0xc], ebx
mov ecx, dword [esp]
add ecx, 0xfffff400
lea esi, [edx + edi]
mov eax, dword [esp + 0x10]
add eax, edi
cmp ecx, 0xbff
mov ebx, dword [esp + 0x28]
pxor xmm2, xmm2
ja 0x5d3850
add edx, edi
mov eax, dword [esp + 0x10]
add eax, edi
mov dword [esp + 8], eax
mov esi, edx
mov ebx, dword [ebp + 8]
mov edx, dword [esp + 0xc]
jmp 0x5d39ee
mov dword [esp + 8], edi
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov edi, ecx
and edi, 0xff0
je 0x5d3b71
mov dword [esp + 0xc], edx
mov dword [esp], ecx
lea eax, [ebx + 0x60]
mov dword [esp + 4], eax
movdqu xmm0, xmmword [ebx + 0x40]
pxor xmm2, xmm2
movdqa xmm1, xmm0
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 + 0x18], xmm0
xor ebx, ebx
nop dword [eax]
movdqu xmm0, xmmword [esi + ebx]
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 xmm1, xmmword [esp + 0x18]
pxor xmm1, xmm0
movdqu xmmword [esp + 0x18], xmm1
lea ecx, [esp + 0x18]
mov edx, dword [esp + 4]
call fcn.005d4d50
add ebx, 0x10
cmp edi, ebx
jne 0x5d3a50
pxor xmm0, xmm0
movdqu xmm1, xmmword [esp + 0x18]
movdqa xmm2, xmm1
punpcklbw xmm2, xmm0
pshufd xmm2, xmm2, 0x4e
pshuflw xmm2, xmm2, 0x1b
pshufhw xmm2, xmm2, 0x1b
punpckhbw xmm1, xmm0
pshufd xmm0, xmm1, 0x4e
pshuflw xmm0, xmm0, 0x1b
pshufhw xmm0, xmm0, 0x1b
packuswb xmm0, xmm2
mov ebx, dword [ebp + 8]
movdqu xmmword [ebx + 0x40], xmm0
mov ecx, dword [esp]
cmp ecx, 0x10
jb 0x5d3ce8
lea eax, [ebx + 0x10]
mov dword [esp + 0x10], eax
mov edi, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov eax, dword [ebp + 0xc]
nop dword [eax]
mov dword [esp + 4], esi
push eax
push dword [esp + 0x14]
push ebx
mov esi, edi
mov edi, ecx
mov ebx, edx
call dword [esp + 0x20]
mov edx, ebx
mov ecx, edi
mov edi, esi
mov esi, dword [esp + 0x10]
mov ebx, dword [ebp + 8]
add esp, 0xc
inc edx
mov eax, edx
bswap eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0x10]
xor eax, dword [esi]
mov dword [edi], eax
mov eax, dword [ebx + 0x14]
xor eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [ebx + 0x18]
xor eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [ebx + 0x1c]
xor eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0xc]
add edi, 0x10
add esi, 0x10
add ecx, 0xfffffff0
cmp ecx, 0xf
ja 0x5d3b10
jmp 0x5d3b75
mov edi, dword [esp + 8]
test ecx, ecx
je 0x5d3cfb
mov ebx, dword [ebp + 8]
add ebx, 0x10
mov dword [esp + 4], ebx
mov ebx, dword [ebp + 8]
push eax
push dword [esp + 8]
push ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x18], edx
call dword [esp + 0x20]
mov ecx, dword [esp + 0xc]
add esp, 0xc
mov eax, dword [esp + 0xc]
inc eax
bswap eax
mov dword [ebx + 0xc], eax
xor eax, eax
cmp ecx, 8
jb 0x5d3d60
lea edx, [ecx + ebx]
add edx, 0x40
mov dword [esp + 8], edx
mov edx, esi
mov esi, edi
add edi, ecx
mov dword [esp + 0x14], edi
lea ebx, [edx + ecx]
mov ecx, dword [esp + 4]
cmp ecx, edi
setb byte [esp + 0x10]
mov edi, dword [esp + 8]
cmp esi, edi
setb byte [esp + 0xc]
cmp ecx, ebx
setb cl
cmp edx, edi
setb byte [esp + 4]
mov dword [esp + 8], esi
cmp esi, ebx
mov esi, edx
setb dl
cmp esi, dword [esp + 0x14]
setb bl
mov ch, byte [esp + 0xc]
test byte [esp + 0x10], ch
jne 0x5d3d02
and cl, byte [esp + 4]
jne 0x5d3d02
mov ecx, dword [esp]
and dl, bl
mov ebx, dword [ebp + 8]
mov edi, dword [esp + 8]
jne 0x5d3d60
xor eax, eax
mov ecx, dword [esp]
cmp ecx, 0x10
jb 0x5d3d18
lea eax, [ecx - 0x10]
mov edx, eax
shr edx, 4
inc edx
xor ecx, ecx
cmp eax, 0x10
jb 0x5d3cab
mov eax, edx
and eax, 0xfffffffe
xor ecx, ecx
nop word cs:[eax + eax]
movups xmm0, xmmword [esi + ecx]
movups xmm1, xmmword [ebx + ecx + 0x10]
movups xmm2, xmmword [ebx + ecx + 0x40]
xorps xmm2, xmm0
movups xmmword [ebx + ecx + 0x40], xmm2
xorps xmm1, xmm0
movups xmmword [edi + ecx], xmm1
movdqu xmm0, xmmword [esi + ecx + 0x10]
movdqu xmm1, xmmword [ebx + ecx + 0x20]
movdqu xmm2, xmmword [ebx + ecx + 0x50]
pxor xmm2, xmm0
movdqu xmmword [ebx + ecx + 0x50], xmm2
pxor xmm1, xmm0
movdqu xmmword [edi + ecx + 0x10], xmm1
add ecx, 0x20
add eax, 0xfffffffe
jne 0x5d3c60
mov eax, dword [esp]
and eax, 0xfffffff0
test dl, 1
je 0x5d3cda
movdqu xmm0, xmmword [esi + ecx]
movdqu xmm1, xmmword [ebx + ecx + 0x10]
movdqu xmm2, xmmword [ebx + ecx + 0x40]
pxor xmm2, xmm0
movdqu xmmword [ebx + ecx + 0x40], xmm2
pxor xmm1, xmm0
movdqu xmmword [edi + ecx], xmm1
mov ecx, dword [esp]
cmp ecx, eax
jne 0x5d3d0e
mov eax, ecx
jmp 0x5d3dc9
mov edi, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov eax, dword [ebp + 0xc]
test ecx, ecx
jne 0x5d3b7d
xor eax, eax
jmp 0x5d3dc9
mov ecx, dword [esp]
mov ebx, dword [ebp + 8]
mov edi, dword [esp + 8]
jmp 0x5d3d60
test cl, 8
jne 0x5d3d18
and ecx, 0xf
jmp 0x5d3d60
mov edx, eax
mov eax, ecx
and eax, 0xfffffff8
and ecx, 7
nop word cs:[eax + eax]
movq xmm0, qword [esi + edx]
movq xmm1, qword [ebx + edx + 0x10]
movq xmm2, qword [ebx + edx + 0x40]
pxor xmm2, xmm0
movq qword [ebx + edx + 0x40], xmm2
pxor xmm1, xmm0
movq qword [edi + edx], xmm1
add edx, 8
cmp eax, edx
jne 0x5d3d30
cmp dword [esp], eax
je 0x5d3dc6
test cl, 1
jne 0x5d3d6e
mov edx, ecx
cmp ecx, 1
jne 0x5d3d88
jmp 0x5d3dc6
movzx edx, byte [esi + eax]
xor byte [ebx + eax + 0x40], dl
xor dl, byte [ebx + eax + 0x10]
mov byte [edi + eax], dl
lea edx, [ecx - 1]
or eax, 1
cmp ecx, 1
je 0x5d3dc6
lea ecx, [esi + eax]
inc ecx
lea esi, [eax + ebx]
add esi, 0x41
add eax, edi
inc eax
xor edi, edi
nop word [eax + eax]
movzx ebx, byte [ecx + edi - 1]
xor byte [esi + edi - 1], bl
xor bl, byte [esi + edi - 0x31]
mov byte [eax + edi - 1], bl
movzx ebx, byte [ecx + edi]
xor byte [esi + edi], bl
xor bl, byte [esi + edi - 0x30]
mov byte [eax + edi], bl
add edi, 2
cmp edx, edi
jne 0x5d3da0
mov eax, dword [esp]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x170], eax
mov eax, 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret