Function at 0x457080
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x2c]
mov esi, dword [eax]
test esi, esi
setne cl
test edi, edi
setne al
and al, cl
cmp dword [esp + 0x44], 0
je 0x457189
test al, al
je 0x4570de
nop dword [eax + eax]
movzx eax, byte [edx + esi]
xor al, byte [ebp]
inc ebp
mov byte [edx + esi], al
inc esi
mov byte [ebx], al
inc ebx
and esi, 0xf
cmp edi, 1
lea edi, [edi - 1]
je 0x4570de
test esi, esi
jne 0x4570c0
cmp edi, 0x10
jb 0x45713e
mov dword [esp + 8], edi
nop word [eax + eax]
push dword [esp + 0x38]
push edx
push edx
call fcn.00455180
mov edx, dword [esp + 0x48]
add esp, 0xc
cmp esi, 0xf
ja 0x457125
nop word [eax + eax]
mov eax, dword [ebp + esi]
xor eax, dword [edx + esi]
mov dword [edx + esi], eax
mov dword [ebx + esi], eax
add esi, 4
cmp esi, 0x10
jb 0x457110
add edi, 0xfffffff0
add ebx, 0x10
add ebp, 0x10
xor esi, esi
cmp edi, 0xf
ja 0x4570f0
mov edi, dword [esp + 8]
xor esi, esi
and edi, 0xf
test edi, edi
je 0x457236
push dword [esp + 0x38]
push edx
push edx
call fcn.00455180
add esp, 0xc
cmp edi, 0x20
jae 0x45723f
mov eax, edi
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
nop word [eax + eax]
movzx ecx, byte [edx + esi]
xor cl, byte [ebp + esi]
dec eax
mov byte [edx + esi], cl
mov byte [ebx + esi], cl
lea esi, [esi + 1]
jne 0x457170
jmp 0x45748f
test al, al
je 0x4571b1
nop dword [eax]
movzx eax, byte [ebp]
movzx ecx, byte [edx + esi]
inc ebp
xor cl, al
mov byte [ebx], cl
mov byte [edx + esi], al
inc esi
inc ebx
and esi, 0xf
cmp edi, 1
lea edi, [edi - 1]
je 0x4571b1
test esi, esi
jne 0x457190
cmp edi, 0x10
jb 0x457210
mov eax, edi
nop dword [eax + eax]
mov dword [esp + 4], eax
push dword [esp + 0x38]
push edx
push edx
call fcn.00455180
mov edx, dword [esp + 0x48]
add esp, 0xc
cmp esi, 0xf
ja 0x4571f7
nop dword [eax + eax]
mov eax, dword [ebp + esi]
mov ecx, dword [edx + esi]
xor ecx, eax
mov dword [ebx + esi], ecx
mov dword [edx + esi], eax
add esi, 4
cmp esi, 0x10
jb 0x4571e0
mov eax, dword [esp + 4]
add ebx, 0x10
add ebp, 0x10
xor esi, esi
add eax, 0xfffffff0
cmp eax, 0xf
ja 0x4571c0
and edi, 0xf
xor esi, esi
test edi, edi
je 0x457236
push dword [esp + 0x38]
push edx
push edx
call fcn.00455180
add esp, 0xc
cmp edi, 0x20
jae 0x457346
mov eax, edi
mov edi, dword [esp + 0x40]
jmp 0x457470
mov edi, dword [esp + 0x40]
jmp 0x45748f
mov eax, dword [esp + 0x3c]
lea ecx, [edi + esi]
mov dword [esp + 8], edi
lea edi, [ebx + esi]
lea edx, [eax + esi]
lea eax, [eax + ecx]
mov dword [esp + 0x14], eax
lea eax, [ebx + ecx]
add ecx, ebp
cmp edx, eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
setb byte [esp + 4]
cmp edi, eax
setb byte [esp + 0xc]
cmp edx, ecx
lea edx, [ebp + esi]
setb byte [esp + 3]
cmp edx, eax
setb al
cmp edi, ecx
setb cl
cmp edx, dword [esp + 0x10]
mov dl, byte [esp + 0xc]
setb ah
test byte [esp + 4], dl
jne 0x45743b
and byte [esp + 3], al
mov edi, dword [esp + 0x40]
jne 0x45744c
and cl, ah
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 8]
jne 0x457170
mov ecx, eax
lea edi, [edx + esi + 0x10]
xor edx, edx
and ecx, 0xffffffe0
mov dword [esp + 4], ecx
sub eax, ecx
lea ecx, [ebp + esi + 0x10]
mov dword [esp + 0x10], ecx
lea ecx, [ebx + esi + 0x10]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 4]
lea esi, [esi + ecx]
nop word cs:[eax + eax]
nop dword [eax]
mov ecx, dword [esp + 0x10]
movups xmm2, xmmword [edi + edx - 0x10]
movups xmm3, xmmword [edi + edx]
movups xmm0, xmmword [ecx + edx - 0x10]
movups xmm1, xmmword [ecx + edx]
mov ecx, dword [esp + 0xc]
xorps xmm2, xmm0
xorps xmm3, xmm1
movups xmmword [edi + edx - 0x10], xmm2
movups xmmword [edi + edx], xmm3
movups xmmword [ecx + edx - 0x10], xmm2
movups xmmword [ecx + edx], xmm3
add edx, 0x20
cmp dword [esp + 4], edx
jne 0x4572f0
mov ecx, dword [esp + 4]
mov edi, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
cmp dword [esp + 8], ecx
jne 0x457170
jmp 0x45748f
lea ecx, [edi + esi]
lea eax, [ebx + esi]
mov dword [esp + 8], edi
lea edx, [ebx + ecx]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x3c]
lea edi, [edx + esi]
lea edx, [edx + ecx]
add ecx, ebp
cmp eax, edx
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x14]
setb byte [esp + 4]
cmp edi, edx
setb byte [esp + 0xc]
cmp eax, ecx
lea eax, [ebp + esi]
setb byte [esp + 3]
cmp eax, edx
setb dl
cmp edi, ecx
setb cl
cmp eax, dword [esp + 0x10]
mov al, byte [esp + 0xc]
setb ah
test byte [esp + 4], al
jne 0x457459
and byte [esp + 3], dl
mov edi, dword [esp + 0x40]
jne 0x457463
and cl, ah
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 8]
jne 0x457470
mov edi, eax
lea edx, [ecx + esi + 0x10]
lea ecx, [ebp + esi + 0x10]
and edi, 0xffffffe0
mov dword [esp + 0x10], ecx
lea ecx, [ebx + esi + 0x10]
sub eax, edi
mov dword [esp + 4], edi
lea esi, [esi + edi]
xor edi, edi
mov dword [esp + 0xc], ecx
nop word cs:[eax + eax]
nop
mov ecx, dword [esp + 0x10]
movups xmm0, xmmword [edx + edi - 0x10]
movups xmm1, xmmword [edx + edi]
movups xmm2, xmmword [ecx + edi - 0x10]
movups xmm3, xmmword [ecx + edi]
mov ecx, dword [esp + 0xc]
xorps xmm0, xmm2
xorps xmm1, xmm3
movups xmmword [ecx + edi - 0x10], xmm0
movups xmmword [ecx + edi], xmm1
movups xmmword [edx + edi - 0x10], xmm2
movups xmmword [edx + edi], xmm3
add edi, 0x20
cmp dword [esp + 4], edi
jne 0x4573f0
mov ecx, dword [esp + 4]
mov edi, dword [esp + 0x40]
cmp dword [esp + 8], ecx
jne 0x457470
jmp 0x45748f
mov eax, dword [esp + 8]
mov edi, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
jmp 0x457170
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x3c]
jmp 0x457170
mov eax, dword [esp + 8]
mov edi, dword [esp + 0x40]
jmp 0x457470
mov eax, dword [esp + 8]
nop word [eax + eax]
mov edx, dword [esp + 0x3c]
movzx ecx, byte [ebp + esi]
movzx edx, byte [edx + esi]
xor dl, cl
dec eax
mov byte [ebx + esi], dl
mov edx, dword [esp + 0x3c]
mov byte [edx + esi], cl
lea esi, [esi + 1]
jne 0x457470
mov dword [edi], esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret