Function at 0x42cf30
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x140]
mov esi, dword [eax + 0x144]
mov edi, ecx
add edi, ebx
mov edx, esi
adc edx, 0
cmp edi, ecx
mov eax, edx
sbb eax, esi
mov eax, 0xffffffec
jb 0x42d3a9
test edx, 0xe0000000
jne 0x42d3a9
mov ebp, dword [esp + 0x40]
mov eax, ecx
and eax, 0xf
je 0x42d003
mov dword [esp + 8], esi
mov dword [esp + 0x24], ecx
mov edi, 0x10
sub edi, eax
cmp edi, ebx
cmovae edi, ebx
mov esi, dword [esp + 0x3c]
mov dword [esp], eax
lea ecx, [esi + eax]
add ecx, 0x168
xor edx, edx
cmp edi, 3
jbe 0x42cfe5
mov eax, dword [ebp]
xor dword [ecx], eax
mov edx, 4
cmp edi, 8
jb 0x42cfe5
mov eax, dword [ebp + 4]
xor dword [ecx + 4], eax
mov edx, 8
cmp edi, 0xc
jb 0x42cfe5
mov eax, dword [ebp + 8]
xor dword [ecx + 8], eax
mov edx, 0xc
cmp edi, 0x10
jb 0x42cfe5
mov eax, dword [ebp + 0xc]
xor dword [ecx + 0xc], eax
mov edx, 0x10
mov eax, edi
sub eax, edx
mov dword [esp + 0x1c], edi
jbe 0x42d18a
mov dword [esp + 0x10], eax
cmp eax, 8
jae 0x42d00c
mov eax, edx
jmp 0x42d11c
mov esi, dword [esp + 0x3c]
jmp 0x42d1cf
mov dword [esp + 0x18], ecx
lea eax, [esi + edx]
mov ecx, edx
mov edx, dword [esp]
add eax, edx
add eax, 0x168
mov dword [esp + 4], eax
mov dword [esp + 0xc], ecx
lea eax, [ecx + ebp]
lea ecx, [edi + ebp]
cmp dword [esp + 4], ecx
mov ecx, eax
jae 0x42d050
lea eax, [esi + edi]
add eax, edx
add eax, 0x168
cmp ecx, eax
jae 0x42d050
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
jmp 0x42d11c
mov dword [esp + 0x20], ecx
xor eax, eax
mov edx, dword [esp + 0x10]
cmp edx, 0x20
jb 0x42d0c9
mov eax, edx
and eax, 0xffffffe0
mov ecx, dword [esp]
mov edi, dword [esp + 0xc]
add ecx, edi
lea edx, [esi + ecx]
add edx, 0x178
lea ecx, [edi + ebp]
add ecx, 0x10
xor edi, edi
nop
movups xmm0, xmmword [edx + edi - 0x10]
movups xmm1, xmmword [edx + edi]
movups xmm2, xmmword [ecx + edi - 0x10]
xorps xmm2, xmm0
movups xmm0, xmmword [ecx + edi]
xorps xmm0, xmm1
movups xmmword [edx + edi - 0x10], xmm2
movups xmmword [edx + edi], xmm0
add edi, 0x20
cmp eax, edi
jne 0x42d080
mov edx, dword [esp + 0x10]
cmp edx, eax
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
je 0x42d18a
test dl, 0x18
je 0x42d3b1
mov edx, dword [esp + 0x10]
and edx, 0xfffffff8
mov ecx, dword [esp + 0xc]
mov dword [esp + 4], edx
add edx, ecx
mov dword [esp + 0x14], edx
add ecx, dword [esp]
add ecx, esi
add ecx, 0x168
mov edx, dword [esp + 0x20]
nop dword [eax]
movsd xmm0, qword [ecx + eax]
movsd xmm1, qword [edx + eax]
xorps xmm1, xmm0
movlps qword [ecx + eax], xmm1
add eax, 8
cmp dword [esp + 4], eax
jne 0x42d0f0
mov eax, dword [esp + 4]
cmp dword [esp + 0x10], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
je 0x42d18a
mov edx, edi
sub edx, eax
mov dword [esp + 0x14], eax
and edx, 3
je 0x42d140
mov eax, dword [esp + 0x14]
nop dword [eax]
mov edi, ecx
movzx ecx, byte [ebp + eax]
xor byte [edi + eax], cl
mov ecx, edi
inc eax
dec edx
jne 0x42d130
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
sub ecx, edi
cmp ecx, 0xfffffffc
ja 0x42d18a
mov ecx, dword [esp]
add ecx, esi
add ecx, 0x16b
nop word [eax + eax]
movzx edx, byte [ebp + eax]
xor byte [ecx + eax - 3], dl
movzx edx, byte [ebp + eax + 1]
xor byte [ecx + eax - 2], dl
movzx edx, byte [ebp + eax + 2]
xor byte [ecx + eax - 1], dl
movzx edx, byte [ebp + eax + 3]
xor byte [ecx + eax], dl
add eax, 4
cmp edi, eax
jne 0x42d160
mov eax, dword [esp]
add eax, edi
cmp eax, 0x10
mov edi, dword [esp + 0x24]
jne 0x42d1b9
lea edx, [esi + 0x168]
mov ecx, esi
push edx
call fcn.0042cdf0
add esp, 4
mov edi, dword [esi + 0x140]
mov eax, dword [esi + 0x144]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c]
add edi, eax
mov edx, dword [esp + 8]
adc edx, 0
sub ebx, eax
add ebp, eax
add edi, ebx
adc edx, 0
mov dword [esi + 0x140], edi
mov dword [esi + 0x144], edx
cmp ebx, 0x10
jb 0x42d22c
lea edi, [esi + 0x168]
nop word cs:[eax + eax]
mov eax, dword [ebp]
xor dword [esi + 0x168], eax
mov eax, dword [ebp + 4]
xor dword [esi + 0x16c], eax
mov eax, dword [ebp + 8]
xor dword [esi + 0x170], eax
mov eax, dword [ebp + 0xc]
xor dword [esi + 0x174], eax
mov ecx, esi
mov edx, edi
push edi
call fcn.0042cdf0
add esp, 4
add ebx, 0xfffffff0
add ebp, 0x10
cmp ebx, 0xf
ja 0x42d1f0
test ebx, ebx
je 0x42d3a7
mov edx, esi
mov esi, 0
cmp ebx, 4
jb 0x42d267
xor eax, eax
nop word cs:[eax + eax]
mov ecx, dword [ebp + eax]
xor dword [edx + eax + 0x168], ecx
lea esi, [eax + 4]
add eax, 8
cmp eax, ebx
mov eax, esi
jbe 0x42d250
mov eax, ebx
sub eax, esi
jbe 0x42d3a7
cmp eax, 8
jb 0x42d33a
mov dword [esp], eax
mov ecx, dword [esp + 0x3c]
lea eax, [ecx + esi]
add eax, 0x168
lea edi, [esi + ebp]
lea edx, [ebx + ebp]
cmp eax, edx
jae 0x42d2a3
lea eax, [ecx + ebx]
add eax, 0x168
cmp edi, eax
jb 0x42d33a
mov dword [esp + 8], edi
xor edx, edx
mov ecx, dword [esp]
cmp ecx, 0x10
jae 0x42d2f7
mov edi, ecx
and edi, 0xfffffff8
mov eax, dword [esp + 0x3c]
add eax, esi
add eax, 0x168
mov dword [esp + 4], edi
add esi, edi
mov edi, dword [esp + 8]
nop dword [eax + eax]
movsd xmm0, qword [eax + edx]
movsd xmm1, qword [edi + edx]
xorps xmm1, xmm0
movlps qword [eax + edx], xmm1
add edx, 8
cmp dword [esp + 4], edx
jne 0x42d2d0
xor eax, eax
cmp ecx, dword [esp + 4]
jne 0x42d33a
jmp 0x42d3a9
mov edx, ecx
and edx, 0xfffffff0
mov eax, dword [esp + 0x3c]
add eax, esi
add eax, 0x168
xor edi, edi
mov ecx, dword [esp + 8]
nop dword [eax]
movups xmm0, xmmword [eax + edi]
movups xmm1, xmmword [ecx + edi]
xorps xmm1, xmm0
movups xmmword [eax + edi], xmm1
add edi, 0x10
cmp edx, edi
jne 0x42d310
xor eax, eax
mov ecx, dword [esp]
cmp ecx, edx
je 0x42d3a9
test cl, 8
jne 0x42d2b1
add esi, edx
mov edx, ebx
sub edx, esi
mov eax, esi
and edx, 3
mov edi, dword [esp + 0x3c]
je 0x42d360
mov eax, esi
nop dword [eax + eax]
movzx ecx, byte [ebp + eax]
xor byte [edi + eax + 0x168], cl
inc eax
dec edx
jne 0x42d350
sub esi, ebx
cmp esi, 0xfffffffc
ja 0x42d3a7
mov edx, dword [esp + 0x3c]
nop dword [eax + eax]
movzx ecx, byte [ebp + eax]
xor byte [edx + eax + 0x168], cl
movzx ecx, byte [ebp + eax + 1]
xor byte [edx + eax + 0x169], cl
movzx ecx, byte [ebp + eax + 2]
xor byte [edx + eax + 0x16a], cl
movzx ecx, byte [ebp + eax + 3]
xor byte [edx + eax + 0x16b], cl
add eax, 4
cmp ebx, eax
jne 0x42d370
xor eax, eax
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [esp + 0xc]
add edx, eax
jmp 0x42cffc