Function at 0x42fd10
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ebp, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
mov dword [eax], 0
mov ebx, dword [ecx + 0x138]
mov edi, dword [ecx + 0x13c]
mov esi, dword [ecx + 0x140]
mov eax, dword [ecx + 0x144]
mov dword [esp], eax
mov eax, ebx
or eax, edi
jne 0x42fd60
mov eax, esi
and eax, 0xf
je 0x42fd60
lea edx, [ecx + 0x168]
push edx
call fcn.0042ef70
add esp, 4
lea ecx, [ebp - 0x11]
mov eax, 0xffffffec
cmp ecx, 0xfffffff3
jb 0x42fec8
shld edi, ebx, 3
shld dword [esp], esi, 3
shl ebx, 3
shl esi, 3
mov eax, dword [esp + 0x24]
test byte [eax + 0x138], 0xf
je 0x42fda4
lea edx, [eax + 0x168]
mov ecx, dword [esp + 0x24]
push edx
call fcn.0042ef70
mov eax, dword [esp + 0x28]
add esp, 4
add eax, 0x148
push ebp
push eax
push dword [esp + 0x3c]
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ecx, ebx
or ecx, esi
mov edx, edi
or edx, dword [esp]
xor eax, eax
or edx, ecx
je 0x42fec8
mov eax, dword [esp]
bswap eax
bswap esi
mov ecx, dword [esp + 0x24]
xor dword [ecx + 0x168], eax
bswap edi
xor dword [ecx + 0x16c], esi
bswap ebx
xor dword [ecx + 0x170], edi
lea edi, [ecx + 0x168]
xor dword [ecx + 0x174], ebx
mov edx, edi
push edi
call fcn.0042ef70
add esp, 4
xor edx, edx
mov ecx, ebp
mov esi, dword [esp + 0x34]
nop word [eax + eax]
mov eax, edx
mov edx, dword [edi + edx]
xor dword [esi + eax], edx
lea edx, [eax + 4]
add ecx, 0xfffffffc
add eax, 8
cmp eax, ebp
jbe 0x42fe10
mov eax, ebp
sub eax, edx
jbe 0x42fec6
cmp eax, 8
jb 0x42fe5b
mov dword [esp + 8], eax
lea eax, [esi + edx]
mov ebx, esi
mov esi, dword [esp + 0x24]
add esi, ebp
add esi, 0x168
cmp eax, esi
jae 0x42fed0
lea eax, [ebx + ebp]
lea esi, [edi + edx]
cmp esi, eax
jae 0x42fed0
mov ecx, edx
mov edx, ebp
sub edx, ecx
mov eax, ecx
and edx, 3
mov esi, dword [esp + 0x34]
je 0x42fe7b
mov eax, ecx
nop
movzx ebx, byte [edi + eax]
xor byte [esi + eax], bl
inc eax
dec edx
jne 0x42fe70
sub ecx, ebp
cmp ecx, 0xfffffffc
ja 0x42fec6
mov edx, dword [esp + 0x24]
nop word cs:[eax + eax]
movzx ecx, byte [edx + eax + 0x168]
xor byte [esi + eax], cl
movzx ecx, byte [edx + eax + 0x169]
xor byte [esi + eax + 1], cl
movzx ecx, byte [edx + eax + 0x16a]
xor byte [esi + eax + 2], cl
movzx ecx, byte [edx + eax + 0x16b]
xor byte [esi + eax + 3], cl
add eax, 4
cmp ebp, eax
jne 0x42fe90
xor eax, eax
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
mov eax, 0
mov ebx, dword [esp + 8]
cmp ebx, 0x20
jb 0x42ff4b
mov eax, ebx
and eax, 0xffffffe0
mov dword [esp + 4], eax
and ebx, 0xffffffe0
mov dword [esp], ebx
xor ebx, ebx
nop word cs:[eax + eax]
mov eax, dword [esp + 0x34]
add eax, ebx
movups xmm0, xmmword [edx + eax]
movups xmm1, xmmword [edx + eax + 0x10]
lea ebp, [edi + ebx]
movups xmm2, xmmword [edx + ebp]
xorps xmm2, xmm0
movups xmm0, xmmword [edx + ebp + 0x10]
xorps xmm0, xmm1
movups xmmword [edx + eax], xmm2
movups xmmword [edx + eax + 0x10], xmm0
add ebx, 0x20
cmp dword [esp], ebx
jne 0x42ff00
xor eax, eax
mov ebx, dword [esp + 8]
cmp ebx, dword [esp + 4]
mov ebp, dword [esp + 0x38]
je 0x42fec8
test bl, 0x18
mov eax, dword [esp + 4]
je 0x42ffab
and ebx, 0xfffffff8
and ecx, 0xfffffff8
add ecx, edx
mov dword [esp + 0xc], ebx
sub ebx, eax
mov dword [esp], ebx
mov ebx, eax
add eax, edi
mov dword [esp + 4], eax
add ebx, dword [esp + 0x34]
mov eax, ebx
nop word [eax + eax]
lea ebp, [eax + esi]
movsd xmm0, qword [edx + ebp]
mov ebx, dword [esp + 4]
add ebx, esi
movsd xmm1, qword [edx + ebx]
xorps xmm1, xmm0
movlps qword [edx + ebp], xmm1
add esi, 8
cmp dword [esp], esi
jne 0x42ff70
xor eax, eax
mov edx, dword [esp + 0xc]
cmp dword [esp + 8], edx
mov ebp, dword [esp + 0x38]
jne 0x42fe5d
jmp 0x42fec8
and ecx, 0xffffffe0
add ecx, edx
jmp 0x42fe5d