Function at 0x42a0d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, ecx
mov dword [ebp - 0x18], edx
push esi
xor esi, esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
cmp dword [eax + 0xa4], esi
je 0x42a0f9
mov eax, 0xffffbf80
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + 4]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
push edi
lea edi, [ecx - 3]
test ebx, ebx
je 0x42a15a
mov ecx, ebx
call fcn.00410800
mov edx, eax
test edx, edx
je 0x42a131
mov eax, 0x520da0
cmp dword [0x520da0], esi
je 0x42a131
cmp dword [eax + 0x10], ebx
je 0x42a13d
add eax, 0x14
cmp dword [eax], esi
jne 0x42a125
pop edi
pop ebx
mov eax, 0xffffbf80
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax]
mov esi, dword [eax + 4]
mov eax, 0xfffffff6
sub eax, esi
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0x14]
add edi, eax
movzx eax, byte [edx + 8]
mov dword [ebp - 0xc], esi
jmp 0x42a15d
mov eax, dword [ebp + 0x14]
sub edi, eax
mov dword [ebp - 4], eax
cmp edi, 8
jb 0x42a131
cmp edi, ecx
ja 0x42a131
mov esi, dword [ebp + 0x1c]
push edi
push 0xff
mov word [esi], 0x100
add esi, 2
push esi
call fcn.004d64c0
add esi, edi
add esp, 0xc
mov byte [esi], 0
inc esi
test ebx, ebx
jne 0x42a1a0
push dword [ebp - 4]
push dword [ebp + 0x18]
push esi
call fcn.004d5f40
add esp, 0xc
jmp 0x42a1ee
mov ebx, dword [ebp - 0xc]
mov byte [esi], 0x30
push ebx
push dword [ebp - 8]
lea eax, [ebx + 8]
add al, byte [ebp - 4]
mov byte [esi + 1], al
lea eax, [ebx + 4]
mov byte [esi + 2], 0x30
mov byte [esi + 3], al
mov byte [esi + 4], 6
mov byte [esi + 5], bl
add esi, 6
push esi
call fcn.004d5f40
mov eax, dword [ebp - 4]
add esi, ebx
push eax
push dword [ebp + 0x18]
mov word [esi], 5
mov byte [esi + 2], 4
mov byte [esi + 3], al
add esi, 4
push esi
call fcn.004d5f40
add esp, 0x18
mov esi, dword [ebp - 0x10]
mov edi, dword [esi + 4]
push edi
push 1
call fcn.004e310e
mov ebx, eax
add esp, 8
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x42a223
push edi
push 1
call fcn.004e310e
add esp, 8
mov dword [ebp - 8], eax
push ebx
test eax, eax
jne 0x42a22f
call fcn.004de0a2
add esp, 4
pop edi
pop ebx
mov eax, 0xfffffff0
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0x1c]
mov ecx, esi
mov edx, dword [ebp - 0x18]
push edi
push dword [ebp + 8]
call fcn.00429420
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jne 0x42a366
push dword [ebp - 8]
mov edx, ebx
mov ecx, esi
call fcn.004291a0
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x42a366
mov edx, dword [esi + 4]
xor bl, bl
xor esi, esi
test edx, edx
je 0x42a343
cmp edx, 0x20
jb 0x42a315
mov ecx, dword [ebp - 8]
mov eax, edx
and eax, 0x1f
mov dword [ebp - 0xc], ecx
sub dword [ebp - 0xc], edi
mov ebx, edx
sub ebx, eax
xorps xmm3, xmm3
add ecx, 0x10
mov eax, edi
mov dword [ebp - 0x18], ecx
movaps xmm2, xmm3
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x18]
nop word [eax + eax]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [ecx + eax - 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x10]
por xmm3, xmm1
movups xmm1, xmmword [edi + esi]
add esi, 0x20
pxor xmm1, xmm0
por xmm2, xmm1
cmp esi, ebx
jb 0x42a2b0
mov edi, dword [ebp + 0x1c]
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 2
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 1
por xmm2, xmm0
movd ebx, xmm2
cmp esi, edx
jae 0x42a343
mov eax, dword [ebp - 8]
lea ecx, [esi + edi]
sub eax, edi
sub edx, esi
mov dword [ebp - 0x18], eax
mov edi, eax
nop dword [eax + eax]
mov al, byte [ecx + edi]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
or bl, al
sub edx, 1
jne 0x42a330
mov edi, dword [ebp + 0x1c]
mov byte [ebp + 0x1f], bl
cmp byte [ebp + 0x1f], 0
mov ebx, dword [ebp - 0x14]
je 0x42a356
mov esi, 0xffffbd00
jmp 0x42a369
mov eax, dword [ebp - 0x10]
push dword [eax + 4]
push ebx
push edi
call fcn.004d5f40
add esp, 0xc
mov esi, dword [ebp - 4]
push ebx
call fcn.004de0a2
push dword [ebp - 8]
call fcn.004de0a2
add esp, 8
mov eax, esi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret