Function at 0x42d5d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov esi, edx
mov ebp, ecx
mov dword [esp + 0x18], 0
lea eax, [ecx + 0x158]
lea ecx, [esp + 0x18]
push ecx
push edx
push 0x10
push eax
push ebp
call fcn.004215f0
add esp, 0x14
test eax, eax
je 0x42d613
push 0x10
push esi
mov esi, eax
call fcn.004209e0
mov eax, esi
add esp, 8
jmp 0x42d9bb
mov dword [esp + 8], esi
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
cmp byte [ebp + 0x178], 0
mov dword [esp + 0x10], ebp
jne 0x42d7e9
mov ecx, dword [esp + 0x30]
lea ebx, [ecx + ebp]
add ebx, 0x168
xor edx, edx
cmp edi, 4
jb 0x42d662
xor ecx, ecx
nop word cs:[eax + eax]
mov edx, dword [eax + ecx]
xor dword [ebx + ecx], edx
lea edx, [ecx + 4]
add ecx, 8
cmp ecx, edi
mov ecx, edx
jbe 0x42d650
mov ecx, edi
sub ecx, edx
jbe 0x42d7e9
cmp ecx, 8
jae 0x42d67a
mov edi, dword [esp + 0x34]
jmp 0x42d779
mov dword [esp + 4], ecx
lea ecx, [edx + ebp]
mov esi, dword [esp + 0x30]
add ecx, esi
add ecx, 0x168
mov dword [esp], ecx
lea ecx, [eax + edx]
mov dword [esp + 0xc], ecx
mov edi, dword [esp + 0x34]
lea esi, [eax + edi]
cmp dword [esp], esi
jae 0x42d6bc
lea ecx, [edi + ebp]
mov esi, dword [esp + 0x30]
add ecx, esi
add ecx, 0x168
cmp dword [esp + 0xc], ecx
jb 0x42d779
xor esi, esi
mov ecx, dword [esp + 4]
cmp ecx, 0x20
jb 0x42d731
mov esi, ecx
and esi, 0xffffffe0
mov ecx, dword [esp + 0x30]
add ecx, edx
add ecx, ebp
add ecx, 0x178
lea edi, [edx + eax]
add edi, 0x10
xor ebp, ebp
nop word cs:[eax + eax]
movups xmm0, xmmword [ecx + ebp - 0x10]
movups xmm1, xmmword [ecx + ebp]
movups xmm2, xmmword [edi + ebp - 0x10]
xorps xmm2, xmm0
movups xmm0, xmmword [edi + ebp]
xorps xmm0, xmm1
movups xmmword [ecx + ebp - 0x10], xmm2
movups xmmword [ecx + ebp], xmm0
add ebp, 0x20
cmp esi, ebp
jne 0x42d6f0
mov ecx, dword [esp + 4]
cmp ecx, esi
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x34]
je 0x42d7e9
test cl, 0x18
je 0x42d777
and ecx, 0xfffffff8
lea edi, [edx + ecx]
mov dword [esp], edi
add edx, dword [esp + 0x30]
add edx, ebp
add edx, 0x168
mov edi, dword [esp + 0xc]
nop word [eax + eax]
movsd xmm0, qword [edx + esi]
movsd xmm1, qword [edi + esi]
xorps xmm1, xmm0
movlps qword [edx + esi], xmm1
add esi, 8
cmp ecx, esi
jne 0x42d750
cmp dword [esp + 4], ecx
mov edi, dword [esp + 0x34]
mov edx, dword [esp]
jne 0x42d779
jmp 0x42d7e9
add edx, esi
sub edi, edx
mov dword [esp], edx
and edi, 3
je 0x42d79b
mov edx, dword [esp]
nop word cs:[eax + eax]
movzx ecx, byte [eax + edx]
xor byte [ebx + edx], cl
inc edx
dec edi
jne 0x42d790
mov edi, dword [esp + 0x34]
mov ecx, dword [esp]
sub ecx, edi
cmp ecx, 0xfffffffc
ja 0x42d7e9
mov ecx, dword [esp + 0x30]
add ecx, ebp
add ecx, 0x16b
nop word cs:[eax + eax]
movzx ebx, byte [eax + edx]
xor byte [ecx + edx - 3], bl
movzx ebx, byte [eax + edx + 1]
xor byte [ecx + edx - 2], bl
movzx ebx, byte [eax + edx + 2]
xor byte [ecx + edx - 1], bl
movzx ebx, byte [eax + edx + 3]
xor byte [ecx + edx], bl
add edx, 4
cmp edi, edx
jne 0x42d7c0
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 8]
lea ebp, [edx + ecx]
xor edx, edx
cmp edi, 4
jb 0x42d826
xor ecx, ecx
nop word cs:[eax + eax]
mov edx, dword [eax + ecx]
xor edx, dword [ebp + ecx]
mov dword [ebx + ecx], edx
lea edx, [ecx + 4]
add ecx, 8
cmp ecx, edi
mov ecx, edx
jbe 0x42d810
sub edi, edx
jbe 0x42d8b8
cmp edi, 8
jae 0x42d9c3
mov edi, edx
mov esi, dword [esp + 0x34]
sub esi, edi
mov edx, edi
and esi, 3
je 0x42d85f
mov edx, edi
nop dword [eax + eax]
movzx ecx, byte [eax + edx]
xor cl, byte [ebp + edx]
mov byte [ebx + edx], cl
inc edx
dec esi
jne 0x42d850
mov ecx, edi
mov edi, dword [esp + 0x34]
sub ecx, edi
cmp ecx, 0xfffffffc
ja 0x42d8b8
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 8]
add esi, ecx
add esi, 3
nop dword [eax]
movzx ecx, byte [eax + edx]
xor cl, byte [esi + edx - 3]
mov byte [ebx + edx], cl
movzx ecx, byte [eax + edx + 1]
xor cl, byte [esi + edx - 2]
mov byte [ebx + edx + 1], cl
movzx ecx, byte [eax + edx + 2]
xor cl, byte [esi + edx - 1]
mov byte [ebx + edx + 2], cl
movzx ecx, byte [eax + edx + 3]
xor cl, byte [esi + edx]
mov byte [ebx + edx + 3], cl
add edx, 4
cmp edi, edx
jne 0x42d880
xor eax, eax
mov ebp, dword [esp + 0x10]
cmp byte [ebp + 0x178], 1
jne 0x42d9bb
mov eax, dword [esp + 0x30]
lea edi, [eax + ebp]
add edi, 0x168
mov edx, 0
mov esi, dword [esp + 0x34]
cmp esi, 4
jb 0x42d902
xor eax, eax
nop dword [eax + eax]
mov ecx, dword [ebx + eax]
xor dword [edi + eax], ecx
lea edx, [eax + 4]
add eax, 8
cmp eax, esi
mov eax, edx
jbe 0x42d8f0
mov eax, esi
sub eax, edx
jbe 0x42d9b9
cmp eax, 8
jb 0x42d94c
mov dword [esp], eax
lea eax, [edx + ebp]
mov ecx, dword [esp + 0x30]
add eax, ecx
add eax, 0x168
lea ecx, [ebx + edx]
mov dword [esp + 8], ecx
lea ecx, [ebx + esi]
cmp eax, ecx
mov ecx, dword [esp + 0x30]
jae 0x42dac3
lea eax, [esi + ebp]
add eax, ecx
add eax, 0x168
cmp dword [esp + 8], eax
jae 0x42dac3
mov ebp, edx
mov esi, dword [esp + 0x34]
mov edx, esi
sub edx, ebp
mov eax, ebp
and edx, 3
je 0x42d96b
mov eax, ebp
nop
movzx ecx, byte [ebx + eax]
xor byte [edi + eax], cl
inc eax
dec edx
jne 0x42d960
sub ebp, esi
cmp ebp, 0xfffffffc
ja 0x42d9b9
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
add ecx, edx
add ecx, 0x16b
nop word cs:[eax + eax]
movzx edx, byte [ebx + eax]
xor byte [ecx + eax - 3], dl
movzx edx, byte [ebx + eax + 1]
xor byte [ecx + eax - 2], dl
movzx edx, byte [ebx + eax + 2]
xor byte [ecx + eax - 1], dl
movzx edx, byte [ebx + eax + 3]
xor byte [ecx + eax], dl
add eax, 4
cmp esi, eax
jne 0x42d990
xor eax, eax
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x14], edi
mov ecx, ebx
sub ecx, ebp
cmp ecx, 0x20
jb 0x42d837
mov ecx, ebx
sub ecx, eax
cmp ecx, 0x20
jb 0x42d837
xor esi, esi
mov ecx, dword [esp + 0x14]
cmp ecx, 0x20
jb 0x42da68
mov esi, ecx
and esi, 0xffffffe0
mov ecx, dword [esp + 0x30]
add ecx, edx
mov edi, dword [esp + 8]
lea ecx, [edi + ecx + 0x10]
mov dword [esp], ecx
lea ecx, [eax + edx + 0x10]
mov dword [esp + 4], ecx
lea ecx, [ebx + edx]
add ecx, 0x10
mov dword [esp + 0xc], ecx
xor edi, edi
nop word cs:[eax + eax]
mov ecx, dword [esp]
movups xmm0, xmmword [ecx + edi - 0x10]
movups xmm1, xmmword [ecx + edi]
mov ecx, dword [esp + 4]
movups xmm2, xmmword [ecx + edi - 0x10]
xorps xmm2, xmm0
movups xmm0, xmmword [ecx + edi]
xorps xmm0, xmm1
mov ecx, dword [esp + 0xc]
movups xmmword [ecx + edi - 0x10], xmm2
movups xmmword [ecx + edi], xmm0
add edi, 0x20
cmp esi, edi
jne 0x42da20
mov ecx, dword [esp + 0x14]
cmp ecx, esi
je 0x42d8b8
test cl, 0x18
je 0x42db78
and ecx, 0xfffffff8
mov dword [esp], ecx
add ecx, edx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x30]
lea edi, [edx + ecx]
add edi, dword [esp + 8]
lea ecx, [eax + edx]
add edx, ebx
nop word cs:[eax + eax]
movsd xmm0, qword [edi + esi]
movsd xmm1, qword [ecx + esi]
xorps xmm1, xmm0
movlps qword [edx + esi], xmm1
add esi, 8
cmp dword [esp], esi
jne 0x42da90
mov ecx, dword [esp]
cmp dword [esp + 0x14], ecx
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 4]
jne 0x42d83d
jmp 0x42d8b8
xor esi, esi
mov eax, dword [esp]
cmp eax, 0x20
jb 0x42db30
mov esi, eax
and esi, 0xffffffe0
lea eax, [edx + ecx]
add eax, ebp
add eax, 0x178
lea ecx, [edx + ebx]
add ecx, 0x10
xor ebp, ebp
nop word cs:[eax + eax]
movups xmm0, xmmword [eax + ebp - 0x10]
movups xmm1, xmmword [eax + ebp]
movups xmm2, xmmword [ecx + ebp - 0x10]
xorps xmm2, xmm0
movups xmm0, xmmword [ecx + ebp]
xorps xmm0, xmm1
movups xmmword [eax + ebp - 0x10], xmm2
movups xmmword [eax + ebp], xmm0
add ebp, 0x20
cmp esi, ebp
jne 0x42daf0
xor eax, eax
mov ecx, dword [esp]
cmp ecx, esi
je 0x42d9bb
test cl, 0x18
je 0x42db7f
mov eax, ecx
mov ebp, dword [esp + 0x10]
mov ecx, eax
and ecx, 0xfffffff8
mov eax, ebp
lea ebp, [edx + ecx]
add edx, dword [esp + 0x30]
add eax, edx
add eax, 0x168
mov edx, dword [esp + 8]
nop dword [eax]
movsd xmm0, qword [eax + esi]
movsd xmm1, qword [edx + esi]
xorps xmm1, xmm0
movlps qword [eax + esi], xmm1
add esi, 8
cmp ecx, esi
jne 0x42db50
xor eax, eax
cmp dword [esp], ecx
jne 0x42d94e
jmp 0x42d9bb
add edx, esi
jmp 0x42d837
add edx, esi
jmp 0x42d94c