Function at 0x4ca540
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x4ca929
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
cmp esi, 0x20
setae al
lea ecx, [esi - 0x20]
cmp ecx, edx
mov edi, dword [ebp + 0x18]
xorps xmm0, xmm0
movaps xmmword [esp + 0x30], xmm0
setae cl
cmp esi, edx
jb 0x4ca60d
and al, cl
jne 0x4ca60d
cmp ebx, 0x10
jb 0x4ca669
mov ecx, dword [ebp + 0x14]
nop word cs:[eax + eax]
push ecx
lea eax, [esp + 0x34]
push eax
push esi
mov edi, edx
call dword [ebp + 0x1c]
mov edx, edi
mov edi, dword [ebp + 0x18]
add esp, 0xc
mov eax, dword [esi]
mov ecx, dword [edi]
xor ecx, dword [esp + 0x30]
mov dword [edx], ecx
mov dword [edi], eax
mov eax, dword [esi + 4]
mov ecx, dword [edi + 4]
xor ecx, dword [esp + 0x34]
mov dword [edx + 4], ecx
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [edi + 8]
xor ecx, dword [esp + 0x38]
mov dword [edx + 8], ecx
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [edi + 0xc]
xor ecx, dword [esp + 0x3c]
mov dword [edx + 0xc], ecx
mov ecx, dword [ebp + 0x14]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x1c]
add ebx, 0xfffffff0
add esi, 0x10
add edx, 0x10
cmp ebx, 0xf
ja 0x4ca5a0
test ebx, ebx
jne 0x4ca687
jmp 0x4ca929
cmp ebx, 0x10
jb 0x4ca671
mov ecx, esi
nop word cs:[eax + eax]
mov dword [esp + 0x24], edx
mov esi, ebx
mov ebx, ecx
push dword [ebp + 0x14]
push edx
push ecx
call dword [ebp + 0x1c]
mov edx, dword [esp + 0x30]
add esp, 0xc
mov eax, dword [edi]
xor dword [edx], eax
mov eax, dword [edi + 4]
xor dword [edx + 4], eax
mov eax, dword [edi + 8]
xor dword [edx + 8], eax
mov eax, dword [edi + 0xc]
xor dword [edx + 0xc], eax
add esi, 0xfffffff0
lea ecx, [ebx + 0x10]
add edx, 0x10
mov edi, ebx
mov ebx, esi
cmp esi, 0xf
ja 0x4ca620
lea eax, [ecx - 0x10]
mov edi, dword [ebp + 0x18]
mov esi, ecx
jmp 0x4ca673
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x14]
jmp 0x4ca687
mov eax, edi
movups xmm0, xmmword [eax]
movups xmmword [edi], xmm0
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x14]
test ebx, ebx
je 0x4ca929
mov dword [esp + 0x24], edx
lea edx, [esp + 0x30]
push ecx
push edx
push esi
call eax
add esp, 0xc
cmp ebx, 0x10
mov eax, 0xf
cmovae eax, ebx
sub eax, ebx
mov dword [esp + 0x18], eax
add eax, 2
mov dword [esp + 0xc], eax
xor edx, edx
cmp ebx, 0x20
mov ecx, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], ebx
jae 0x4ca6cb
mov eax, esi
mov esi, dword [esp + 0xc]
jmp 0x4ca7d8
mov ecx, dword [esp + 0x24]
lea edi, [ecx + ebx]
mov eax, dword [ebp + 0x18]
lea esi, [eax + ebx]
mov dword [esp + 0x48], esi
mov eax, ebx
mov ebx, dword [esp + 0x10]
add ebx, eax
mov dword [esp + 0x14], ebx
cmp ecx, esi
setb byte [esp + 0x2c]
cmp edi, dword [ebp + 0x18]
seta byte [esp + 0x23]
cmp ecx, dword [esp + 0x14]
setb byte [esp + 0x22]
mov esi, dword [esp + 0x10]
cmp esi, edi
setb byte [esp + 0x21]
add eax, esp
add eax, 0x30
cmp ecx, eax
setb byte [esp + 0x20]
lea ecx, [esp + 0x30]
cmp ecx, edi
mov edi, dword [ebp + 0x18]
setb byte [esp + 0x1f]
cmp dword [esp + 0x14], edi
seta byte [esp + 0x14]
mov ebx, dword [esp + 0x48]
cmp esi, ebx
setb byte [esp + 0x1e]
cmp eax, edi
seta al
cmp ecx, ebx
setb cl
mov ah, byte [esp + 0x23]
test byte [esp + 0x2c], ah
jne 0x4ca9c6
mov ah, byte [esp + 0x21]
and byte [esp + 0x22], ah
jne 0x4ca9c6
mov ah, byte [esp + 0x1f]
and byte [esp + 0x20], ah
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0xc]
jne 0x4ca7d4
mov ah, byte [esp + 0x1e]
and byte [esp + 0x14], ah
jne 0x4ca7d4
and al, cl
jne 0x4ca7d4
mov edx, ebx
and edx, 0xfffffff0
lea eax, [esi + edx]
mov dword [esp + 0x14], eax
mov eax, edi
xor edi, edi
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
nop word [eax + eax]
movups xmm0, xmmword [esi + edi]
movups xmm1, xmmword [eax + edi]
xorps xmm1, xmmword [esp + edi + 0x30]
movups xmmword [ecx + edi], xmm1
movups xmmword [eax + edi], xmm0
add edi, 0x10
cmp edx, edi
jne 0x4ca7a0
cmp ebx, edx
jne 0x4ca7cd
mov esi, dword [esp + 0xc]
add esi, edx
dec esi
dec edx
jmp 0x4ca892
mov esi, dword [esp + 0x14]
mov edi, dword [ebp + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, edx
or ecx, 1
mov dword [esp + 0x2c], esi
mov dword [esp + 0x14], edx
test bl, 1
jne 0x4ca7fc
cmp ebx, ecx
jne 0x4ca828
cmp edx, 0xe
jbe 0x4ca89e
jmp 0x4ca929
movzx eax, byte [eax + edx]
mov ah, byte [edi + edx]
xor ah, byte [esp + edx + 0x30]
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x24]
mov byte [esi + edx], ah
mov esi, dword [esp + 0xc]
mov byte [edi + edx], al
lea eax, [esi + 1]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], ecx
cmp ebx, ecx
je 0x4ca7ee
mov eax, ebx
mov ebx, dword [esp + 0x14]
sub eax, ebx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
lea edx, [eax + ebx]
inc edx
lea esi, [edi + ebx + 1]
lea eax, [esp + ebx]
add eax, 0x31
mov ecx, dword [esp + 0x10]
lea edi, [ecx + ebx]
inc edi
xor ecx, ecx
movzx ebx, byte [edi + ecx - 1]
mov bh, byte [esi + ecx - 1]
xor bh, byte [eax + ecx - 1]
mov byte [edx + ecx - 1], bh
mov byte [esi + ecx - 1], bl
movzx ebx, byte [edi + ecx]
mov bh, byte [esi + ecx]
xor bh, byte [eax + ecx]
mov byte [edx + ecx], bh
mov byte [esi + ecx], bl
add ecx, 2
cmp dword [esp + 0xc], ecx
jne 0x4ca850
mov eax, dword [esp + 0x2c]
lea esi, [eax + ecx]
dec esi
mov eax, dword [esp + 0x14]
lea edx, [eax + ecx]
dec edx
mov ebx, dword [esp + 0x28]
mov edi, dword [ebp + 0x18]
cmp edx, 0xe
ja 0x4ca929
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 8
jb 0x4ca8c3
mov dword [esp + 0x18], eax
lea edx, [ebx + edi]
mov eax, dword [esp + 0x10]
lea esi, [ebx + eax]
mov eax, edx
sub eax, esi
cmp eax, 0x20
jae 0x4ca931
mov eax, dword [esp + 0xc]
mov edx, eax
sub edx, ebx
mov ecx, ebx
not ecx
add ecx, eax
and edx, 3
je 0x4ca8ed
mov esi, dword [esp + 0x10]
nop word [eax + eax]
movzx eax, byte [esi + ebx]
mov byte [edi + ebx], al
inc ebx
dec edx
jne 0x4ca8e0
jmp 0x4ca8f1
mov esi, dword [esp + 0x10]
cmp ecx, 3
mov edx, dword [esp + 0xc]
jb 0x4ca929
mov ecx, esi
nop dword [eax]
movzx eax, byte [ecx + ebx]
mov byte [edi + ebx], al
movzx eax, byte [ecx + ebx + 1]
mov byte [edi + ebx + 1], al
movzx eax, byte [ecx + ebx + 2]
mov byte [edi + ebx + 2], al
movzx eax, byte [ecx + ebx + 3]
mov byte [edi + ebx + 3], al
add ebx, 4
cmp edx, ebx
jne 0x4ca900
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor ecx, ecx
mov eax, dword [esp + 0x18]
cmp eax, 0x20
jb 0x4ca98e
mov ecx, eax
and ecx, 0xffffffe0
mov eax, edi
mov edi, dword [esp + 0x10]
add edi, ebx
add edi, 0x10
add ebx, eax
add ebx, 0x10
xor eax, eax
nop word cs:[eax + eax]
movups xmm0, xmmword [edi + eax - 0x10]
movups xmm1, xmmword [edi + eax]
movups xmmword [ebx + eax - 0x10], xmm0
movups xmmword [ebx + eax], xmm1
add eax, 0x20
cmp ecx, eax
jne 0x4ca960
cmp dword [esp + 0x18], ecx
mov ebx, dword [esp + 0x28]
mov edi, dword [ebp + 0x18]
je 0x4ca929
mov eax, dword [esp + 0x18]
test al, 0x18
je 0x4ca9d7
mov eax, ebx
mov ebx, dword [esp + 0x18]
and ebx, 0xfffffff8
add eax, ebx
nop dword [eax]
movsd xmm0, qword [esi + ecx]
movsd qword [edx + ecx], xmm0
add ecx, 8
cmp ebx, ecx
jne 0x4ca9a0
cmp dword [esp + 0x18], ebx
mov ebx, eax
mov eax, dword [esp + 0xc]
jne 0x4ca8c7
jmp 0x4ca929
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
jmp 0x4ca7d8
add ebx, ecx
jmp 0x4ca8c3