Function at 0x42f750
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.00423770
add esp, 0x14
test eax, eax
je 0x42f793
push 0x10
push esi
mov esi, eax
call fcn.00422b60
mov eax, esi
add esp, 8
jmp 0x42fb3b
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 0x42f969
mov ecx, dword [esp + 0x30]
lea ebx, [ecx + ebp]
add ebx, 0x168
xor edx, edx
cmp edi, 4
jb 0x42f7e2
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 0x42f7d0
mov ecx, edi
sub ecx, edx
jbe 0x42f969
cmp ecx, 8
jae 0x42f7fa
mov edi, dword [esp + 0x34]
jmp 0x42f8f9
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 0x42f83c
lea ecx, [edi + ebp]
mov esi, dword [esp + 0x30]
add ecx, esi
add ecx, 0x168
cmp dword [esp + 0xc], ecx
jb 0x42f8f9
xor esi, esi
mov ecx, dword [esp + 4]
cmp ecx, 0x20
jb 0x42f8b1
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 0x42f870
mov ecx, dword [esp + 4]
cmp ecx, esi
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x34]
je 0x42f969
test cl, 0x18
je 0x42f8f7
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 0x42f8d0
cmp dword [esp + 4], ecx
mov edi, dword [esp + 0x34]
mov edx, dword [esp]
jne 0x42f8f9
jmp 0x42f969
add edx, esi
sub edi, edx
mov dword [esp], edx
and edi, 3
je 0x42f91b
mov edx, dword [esp]
nop word cs:[eax + eax]
movzx ecx, byte [eax + edx]
xor byte [ebx + edx], cl
inc edx
dec edi
jne 0x42f910
mov edi, dword [esp + 0x34]
mov ecx, dword [esp]
sub ecx, edi
cmp ecx, 0xfffffffc
ja 0x42f969
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 0x42f940
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 0x42f9a6
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 0x42f990
sub edi, edx
jbe 0x42fa38
cmp edi, 8
jae 0x42fb43
mov edi, edx
mov esi, dword [esp + 0x34]
sub esi, edi
mov edx, edi
and esi, 3
je 0x42f9df
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 0x42f9d0
mov ecx, edi
mov edi, dword [esp + 0x34]
sub ecx, edi
cmp ecx, 0xfffffffc
ja 0x42fa38
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 0x42fa00
xor eax, eax
mov ebp, dword [esp + 0x10]
cmp byte [ebp + 0x178], 1
jne 0x42fb3b
mov eax, dword [esp + 0x30]
lea edi, [eax + ebp]
add edi, 0x168
mov edx, 0
mov esi, dword [esp + 0x34]
cmp esi, 4
jb 0x42fa82
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 0x42fa70
mov eax, esi
sub eax, edx
jbe 0x42fb39
cmp eax, 8
jb 0x42facc
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 0x42fc43
lea eax, [esi + ebp]
add eax, ecx
add eax, 0x168
cmp dword [esp + 8], eax
jae 0x42fc43
mov ebp, edx
mov esi, dword [esp + 0x34]
mov edx, esi
sub edx, ebp
mov eax, ebp
and edx, 3
je 0x42faeb
mov eax, ebp
nop
movzx ecx, byte [ebx + eax]
xor byte [edi + eax], cl
inc eax
dec edx
jne 0x42fae0
sub ebp, esi
cmp ebp, 0xfffffffc
ja 0x42fb39
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 0x42fb10
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 0x42f9b7
mov ecx, ebx
sub ecx, eax
cmp ecx, 0x20
jb 0x42f9b7
xor esi, esi
mov ecx, dword [esp + 0x14]
cmp ecx, 0x20
jb 0x42fbe8
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 0x42fba0
mov ecx, dword [esp + 0x14]
cmp ecx, esi
je 0x42fa38
test cl, 0x18
je 0x42fcf8
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 0x42fc10
mov ecx, dword [esp]
cmp dword [esp + 0x14], ecx
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 4]
jne 0x42f9bd
jmp 0x42fa38
xor esi, esi
mov eax, dword [esp]
cmp eax, 0x20
jb 0x42fcb0
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 0x42fc70
xor eax, eax
mov ecx, dword [esp]
cmp ecx, esi
je 0x42fb3b
test cl, 0x18
je 0x42fcff
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 0x42fcd0
xor eax, eax
cmp dword [esp], ecx
jne 0x42face
jmp 0x42fb3b
add edx, esi
jmp 0x42f9b7
add edx, esi
jmp 0x42facc